30 30 30 30 30 30 30 31 35 31 36 38 30 00 00 44 [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [21:41:53]Read from MH i2c: E2 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 03 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 03 00 65 01 00 90 00 DA [21:41:53]RAPDU: 90 00 [21:41:53]wFMCommunicate OK [21:41:53]wFMCommunicate request_size=4 [21:41:53]MH_SAM_APDU [21:41:53]CAPDU: 80 15 03 00 [21:41:53]Write to MH i2c: E2 08 00 66 01 80 15 03 00 00 00 00 00 E8 [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [21:41:53]Read from MH i2c: E2 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 40 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 40 00 66 01 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 FE E1 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 A9 02 00 00 35 04 06 00 7A 6E D5 B1 13 49 90 00 77 [21:41:53]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 FE E1 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 A9 02 00 00 35 04 06 00 7A 6E D5 B1 13 49 90 00 [21:41:54]wFMCommunicate OK [21:41:54]SAM_PROTO_ProcessDocument answer len = 59 [21:41:54]SAM_PROTO_ProcessDocument done [21:41:54]SetTLVBufToDocument [21:41:54]Processing tag 1209 (04B9) [21:41:54]Malloc new data [21:41:54]Processing tag 1041 (0411) [21:41:54]Processing tag 1040 (0410) [21:41:54]Malloc new data [21:41:54]Processing tag 1038 (040E) [21:41:54]Malloc new data [21:41:54]Processing tag 1042 (0412) [21:41:54]Malloc new data [21:41:54]Processing tag 1077 (0435) [21:41:54]Malloc new data [21:41:54]SetTLVBufToDocument err=0 [21:41:54]KKMLoadAndSignReceiptData store KKM data [21:41:54]KKMLoadAndSignReceiptData err=0 [21:41:54]wFMCommunicate request_size=4 [21:41:54]MH_SAM_APDU [21:41:54]CAPDU: 80 11 00 00 [21:41:54]Write to MH i2c: E2 08 00 67 01 80 11 00 00 00 00 00 00 E2 [21:41:54]Write i2c OK [21:41:54]MH_I2C_Read... [21:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:54]Read from MH i2c: E2 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: E2 17 00 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: E2 17 00 67 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 35 [21:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:41:54]wFMCommunicate OK [21:41:54]Счет N : (1)543194 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 12 Товар: 2710124130 Аи-92-К-5 8.740 * 66.40 = 580.34 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 580.00 Внесено: 580.00 СДАЧА: 0.00 НСП 1% : 5.14 НДС 12% : 61.63 Наличными: 580.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 681 02.06.2024 21:41 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57854 ФПД: 134616450143049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214152&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57854&fm=134616450143049&tin=02508201610067®Number=0000000000151680&sum=58000 [21:41:54]StoreToDocumentArchive [21:41:54]shift 69 fd 57854 [21:41:54]save to /storage/0069/doc_00057854 [21:41:54]save last doc name /storage/0069/doc_00057854 to /storage/kkm_last_doc_name [21:41:54]OFD Sender: No OFD packet to send [21:41:54]save OK [21:41:54]Clear old archive folders... [21:41:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:54]tlvbuf is 0199C690 [21:41:54]SAM_PROTO_ClearQueue [21:41:54]wFMCommunicate request_size=4 [21:41:54]MH_SAM_APDU [21:41:54]CAPDU: 80 09 00 00 [21:41:54]Write to MH i2c: E2 08 00 68 01 80 09 00 00 00 00 00 00 DB [21:41:54]Write i2c OK [21:41:54]MH_I2C_Read... [21:41:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:54]Read from MH i2c: E2 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: E2 03 00 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: E2 03 00 68 01 00 90 00 DD [21:41:54]RAPDU: 90 00 [21:41:54]wFMCommunicate OK [21:41:54]SAM_PROTO_ClearQueue done [21:41:54]KKMCreateOFDPacket [21:41:54]OFDProtocolAddRootSTLVToBuf [21:41:54]FM_MakeSignedData [21:41:54]FM_MakeSignedData [21:41:54]SAM_PROTO_SignData [21:41:54]wFMCommunicate request_size=4 [21:41:54]MH_SAM_APDU [21:41:54]CAPDU: 80 0D 01 02 [21:41:54]Write to MH i2c: E2 08 00 69 01 80 0D 01 02 00 00 00 00 E3 [21:41:54]Write i2c OK [21:41:54]MH_I2C_Read... [21:41:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:54]Read from MH i2c: E2 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: E2 03 00 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: E2 03 00 69 01 00 90 00 DE [21:41:54]RAPDU: 90 00 [21:41:54]wFMCommunicate OK [21:41:54]wFMCommunicate request_size=255 [21:41:54]MH_SAM_APDU [21:41:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 22 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B2 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 90 E2 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 02 00 00 F4 03 04 00 20 E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 FE E1 00 00 35 04 06 00 7A [21:41:54]Write to MH i2c: E2 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 24 22 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B2 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 90 E2 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 02 00 00 F4 03 04 00 20 E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 FE E1 00 00 35 04 06 00 7A 00 00 F1 [21:41:54]Write i2c OK [21:41:55]MH_I2C_Read... [21:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:55]Read from MH i2c: E2 [21:41:55]MH_I2C_Read... [21:41:55]Read from MH i2c: E2 03 00 [21:41:55]MH_I2C_Read... [21:41:55]Read from MH i2c: E2 03 00 6A 01 00 90 00 DF [21:41:55]RAPDU: 90 00 [21:41:55]wFMCommunicate OK [21:41:55]wFMCommunicate request_size=10 [21:41:55]MH_SAM_APDU [21:41:55]CAPDU: 80 0D 02 02 05 6E D5 B1 13 49 [21:41:55]Write to MH i2c: E2 0D 00 6B 01 80 0D 02 02 05 00 6E D5 B1 13 49 00 00 40 [21:41:55]Write i2c OK [21:41:55]MH_I2C_Read... [21:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:55]Read from MH i2c: E2 [21:41:55]MH_I2C_Read... [21:41:55]Read from MH i2c: E2 03 00 [21:41:55]MH_I2C_Read... [21:41:55]Read from MH i2c: E2 03 00 6B 01 00 90 00 E0 [21:41:55]RAPDU: 90 00 [21:41:55]wFMCommunicate OK [21:41:55]wFMCommunicate request_size=4 [21:41:55]MH_SAM_APDU [21:41:55]CAPDU: 80 0D 03 02 [21:41:55]Write to MH i2c: E2 08 00 6C 01 80 0D 03 02 00 00 00 00 E8 [21:41:55]Write i2c OK [21:41:55]MH_I2C_Read... [21:41:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:55]Read from MH i2c: E2 [21:41:55]MH_I2C_Read... [21:41:55]Read from MH i2c: E2 0B 00 [21:41:55]MH_I2C_Read... [21:41:55]Read from MH i2c: E2 0B 00 6C 01 00 51 E4 E5 E5 39 9E F9 D2 90 00 8A [21:41:55]RAPDU: 51 E4 E5 E5 39 9E F9 D2 90 00 [21:41:55]wFMCommunicate OK [21:41:55]SAM_PROTO_SignData done [21:41:55]FM_MakeSignedData done [21:41:55]CreateOFDProtocolMessage [21:41:55]wFMCommunicate request_size=4 [21:41:55]MH_SAM_APDU [21:41:55]CAPDU: 80 11 00 00 [21:41:55]Write to MH i2c: E2 08 00 6D 01 80 11 00 00 00 00 00 00 E8 [21:41:55]Write i2c OK [21:41:55]MH_I2C_Read... [21:41:55]Read from MH i2c: E2 [21:41:55]MH_I2C_Read... [21:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:55]Read from MH i2c: E2 17 00 [21:41:55]MH_I2C_Read... [21:41:55]Read from MH i2c: E2 17 00 6D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 3B [21:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:41:55]wFMCommunicate OK [21:41:55]CreateOFDProtocolMessage done [21:41:55]OFDSenderStorePacket 57854 [21:41:55]StoreOFDPacket docnum=57854 [21:41:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 3A D9 07 01 9A 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 24 22 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B2 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 90 E2 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 02 00 00 F4 03 04 00 20 E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 FE E1 00 00 35 04 06 00 7A 6E D5 B1 13 49 51 E4 E5 E5 39 9E F9 D2 [21:41:55]CheckFolder [21:41:55]dirname=/storage/ofd_packets [21:41:55]CheckFolder done [21:41:55]ProducePacketName [21:41:55]name=ofd_packets/00057854 [21:41:55]NVStorageSaveData ofd_packets/00057854 [21:41:55]File name is /storage/ofd_packets/00057854 [21:41:55]Write 301 bytes [21:41:55]NVStorageSaveData done [21:41:55]OFDSenderStorePacket done [21:41:55]KKMCreateOFDPacket done [21:41:55]NVStorageSaveData kkm_last_timestamp [21:41:55]File name is /storage/kkm_last_timestamp [21:41:55]Write 4 bytes [21:41:55]NVStorageSaveData done [21:41:55]ExternCall_PrintAddStr [21:41:55]wPrintStart [21:41:55]Write to MH i2c: 01 00 00 6E 01 6F [21:41:55]Write i2c OK [21:41:55]MH_I2C_Read... [21:41:55]Read from MH i2c: 01 [21:41:55]MH_I2C_Read... [21:41:55]Read from MH i2c: 01 07 00 [21:41:55]MH_I2C_Read... [21:41:55]Read from MH i2c: 01 07 00 6E 01 00 00 00 00 00 FF 0F 84 [21:41:55]RasterBufferAndPrint [21:41:55]line Счет N : (1)543194 [21:41:55]line ИНН: 02508201610067 [21:41:55]line Контрольно-Кассовый Чек [21:41:55]line ПРОДАЖА [21:41:55]OFD Sender: Processing packet 57854 [packets to send 50, broken 49] [21:41:55]line ТРК (МРК, ГНК) : 12 [21:41:55]ProducePacketName [21:41:55]line Товар: 2710124130 [21:41:55]name=ofd_packets/00057854 [21:41:55]line Аи-92-К-5 [21:41:55]OFD Sender: To server: pG, [21:41:55]line 8.740 * 66.40 [21:41:55]CommunicateWithHost lk.salyk.kg:30040 [21:41:55]line = 580.34 [21:41:55]ConnectInit lk.salyk.kg [21:41:55]line НДС 12% НСП 1% [21:41:55]line > о реализуемом товаре [21:41:55]line ОКРУГЛЕНИЕ: -0.34 [21:41:55]line ИТОГО: 580.00 [21:41:55]line Внесено: 580.00 [21:41:55]line СДАЧА: 0.00 [21:41:55]line НСП 1% : 5.14 [21:41:55]line НДС 12% : 61.63 [21:41:55]line Наличными: 580.00 [21:41:55]line Безнал.: 0.00 [21:41:55]line Место: АЗС № 117 "Партнер Нефть" [21:41:55]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [21:41:55]line СНО: Общий режим [21:41:55]line Чек 681 02.06.2024 21:41 [21:41:55]line Смена: 69 ФФД: 1.0 [21:41:55]line ЗНМ: 0300000048 [21:41:55]line РНМ: 0000000000151680 [21:41:55]line Версия ККМ: v1.0 [21:41:55]line ФМ: 0000000000959414 [21:41:55]line ФД: 57854 [21:41:55]line ФПД: 134616450143049 [21:41:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214152&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57854&fm=134616450143049&tin=02508201610067®Number=0000000000151680&sum=58000 [21:41:55]written 0, free lines is 4095 [21:41:55]Connected sock=12 [21:41:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 3A D9 07 01 9A 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 24 22 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B2 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 90 E2 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 02 00 00 F4 03 04 00 20 E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 FE E1 00 00 35 04 06 00 7A 6E D5 B1 13 49 51 E4 E5 E5 39 9E F9 D2 [21:41:56]Write to MH i2c: 01 00 00 99 01 9A [21:41:56]Write i2c OK [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: 01 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: 01 07 00 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 A9 0C 56 [21:41:56]RasterBufferAndPrint [21:41:56]line [21:41:56]line [21:41:56]line [21:41:56]line [21:41:56]line [21:41:56]written 0, free lines is 3293 [21:41:56]MH_Cut [21:41:56]Write to MH i2c: D1 01 00 A0 01 01 73 [21:41:56]Write i2c OK [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: D1 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: D1 01 00 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: D1 01 00 A0 01 00 72 [21:41:56]Write to MH i2c: 01 00 00 A1 01 A2 [21:41:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 B6 42 47 00 60 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 FE E1 00 00 F4 03 04 00 F2 91 5C 66 B6 04 01 00 00 E3 24 F7 8E 0E 1A 8F 2C [21:41:56]CommunicateWithHost err = 0 [21:41:56]Write i2c OK [21:41:56]CheckOFDResponse [21:41:56]MH_I2C_Read... [21:41:56]1017 (14) - 77093643461234 [21:41:56]1041 (16) - 0000000000959414 [21:41:56]1040 (4) - 57854 [21:41:56]1012 (4) - 02.06.2024 15:38 [21:41:56]1206 (1) - 0 [21:41:56]OFD Sender: Remove packet 57854 [21:41:56]ProducePacketName [21:41:56]name=ofd_packets/00057854 [21:41:56]NVStorageDeleteData [21:41:57]OFD Sender: No OFD packet to send [21:41:57]*** Cut start [21:41:57]*** Partial cut [21:41:57]*** CUTSNS_PIN = 1 [21:41:57]*** CUTSNS_PIN = 0 [21:41:57]*** Brake cut motor [21:41:57]Read from MH i2c: 01 [21:41:57]MH_I2C_Read... [21:41:57]*** Stop cut motor [21:41:57]*** Cut end [21:41:57]Read from MH i2c: 01 07 00 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: 01 07 00 A1 01 00 00 00 00 00 FF 0F B7 [21:41:57]process_action close_receipt done [21:41:57]requested_data is exist [21:41:57]produce_requested_data [21:41:57]requested_item fm.sn is exist - process it [21:41:57]wFMCommunicate request_size=4 [21:41:57]MH_SAM_APDU [21:41:57]CAPDU: 80 11 00 00 [21:41:57]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [21:41:57]Write i2c OK [21:41:57]MH_I2C_Read... [21:41:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:57]Read from MH i2c: E2 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 17 00 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 70 [21:41:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:41:57]wFMCommunicate OK [21:41:57]requested_item fd.num is exist - process it [21:41:57]SAM_PROTO_GetFieldsCounters [21:41:57]wFMCommunicate request_size=4 [21:41:57]MH_SAM_APDU [21:41:57]CAPDU: 80 13 00 00 [21:41:57]Write to MH i2c: E2 08 00 A3 01 80 13 00 00 00 00 00 00 20 [21:41:58]Write i2c OK [21:41:58]MH_I2C_Read... [21:41:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:58]Read from MH i2c: E2 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 62 00 [21:41:58]MH_I2C_Read... [21:41:58]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 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 FE E1 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 A9 02 00 00 5E 04 04 00 A9 02 00 00 57 04 04 00 AA 02 00 00 19 04 04 00 00 00 00 00 90 00 62 [21:41:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 FE E1 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 A9 02 00 00 5E 04 04 00 A9 02 00 00 57 04 04 00 AA 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:41:58]wFMCommunicate OK [21:41:58]SAM_PROTO_GetFieldsCounters done [21:41:58]requested_item shift.num is exist - process it [21:41:58]requested_item shift.opened is exist - process it [21:41:58]req_shift_opened [21:41:58]FM_GetShiftState [21:41:58]SAM_PROTO_GetShiftState [21:41:58]wFMCommunicate request_size=4 [21:41:58]MH_SAM_APDU [21:41:58]CAPDU: 80 13 01 00 [21:41:58]Write to MH i2c: E2 08 00 A4 01 80 13 01 00 00 00 00 00 22 [21:41:58]Write i2c OK [21:41:58]MH_I2C_Read... [21:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:58]Read from MH i2c: E2 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 0E 00 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 0E 00 A4 01 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 F5 [21:41:58]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:41:58]wFMCommunicate OK [21:41:58]SAM_PROTO_GetShiftState done [21:41:58]FM_GetShiftState done [21:41:58]req_shift_opened done [21:41:58]requested_item shift.open_date is exist - process it [21:41:58]req_shift_open_date [21:41:58]req_shift_open_date done [21:41:58]produce_requested_data done [21:41:58]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57854,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [21:41:58]process_action_free close_receipt [21:41:58]json_value_free [21:41:58]json_value_free done [21:41:58]process_json_proto returns [21:41:58]Send response to host [21:41:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57854,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [21:41:58]free response buf [21:41:58]execute_script done [21:41:58]execute_script returns [21:41:58]free content buf [21:41:58]Sock 10.Close socket [21:41:58]Sock 10.Thread stoped [21:42:02]OFD Sender: No OFD packet to send [21:42:04]accept exits with 9 [21:42:04]New connection [21:42:04]New thread 3066735972 created [21:42:04]Thread 3066592612 joined [21:42:04]Waiting for new connection... [21:42:04] Sock 9.Parse request [21:42:04]Sock 9.Check first char [21:42:04]Sock 9.First char is OK [21:42:04]request: POST /json_proto HTTP/1.0 [21:42:04]Method: POST [21:42:04]URL: /json_proto [21:42:04]Method is POST - this is cgi request [21:42:04]url: /json_proto [21:42:04]query_string will be loaded in cgi processing [21:42:04]execute_cgi json_proto POST (null) [21:42:04]execute_cgi path=json_proto method=POST [21:42:04]POST find Content-Length [21:42:04]Host: 172.17.60.68:8080 [21:42:04]Content-Length: 677 [21:42:04]Content-Type: application/json [21:42:04] [21:42:04]POST finish read [21:42:04]Found Content-Length = 677 [21:42:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543195", "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" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:04]execute_script... [21:42: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)543195", "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" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:04]POST & json_proto [21:42:04]process_json_proto [21:42:04]json parsed OK: [21:42:04]protocol is kg_v1.0 [21:42:04]action value=close_receipt [21:42:04]process_action close_receipt [21:42:04]cmd_close_receipt [21:42:04]MH_GetDate [21:42:04]Write to MH i2c: F0 00 00 A5 01 95 [21:42:04]Write i2c OK [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: F0 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: F0 09 00 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: F0 09 00 A5 01 00 2C E7 5C 66 8D A7 02 66 0F [21:42:04]GetLastDocTimeStamp 1717364512 [21:42:04]current date 1717364524 [21:42:04]FM_GetShiftState [21:42:04]SAM_PROTO_GetShiftState [21:42:04]wFMCommunicate request_size=4 [21:42:04]MH_SAM_APDU [21:42:04]CAPDU: 80 13 01 00 [21:42:04]Write to MH i2c: E2 08 00 A6 01 80 13 01 00 00 00 00 00 24 [21:42:04]Write i2c OK [21:42:04]MH_I2C_Read... [21:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:04]Read from MH i2c: E2 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: E2 0E 00 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: E2 0E 00 A6 01 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 F7 [21:42:04]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:42:04]wFMCommunicate OK [21:42:04]SAM_PROTO_GetShiftState done [21:42:04]FM_GetShiftState done [21:42:04]opened in 1717288520 [21:42:04]opened+sec_in_day 1717374920 [21:42:04]quantity*price = 40039 [21:42:04]sum+1 = 40040 [21:42:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 682 02.06.2024 21:42 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57855 ФПД: 142580506535687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214204&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57855&fm=142580506535687&tin=02508201610067®Number=0000000000151680&sum=40000 [21:42:06]StoreToDocumentArchive [21:42:06]shift 69 fd 57855 [21:42:06]save to /storage/0069/doc_00057855 [21:42:06]save last doc name /storage/0069/doc_00057855 to /storage/kkm_last_doc_name [21:42:06]save OK [21:42:06]Clear old archive folders... [21:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:42:06]tlvbuf is 019DE410 [21:42:06]SAM_PROTO_ClearQueue [21:42:06]wFMCommunicate request_size=4 [21:42:06]MH_SAM_APDU [21:42:06]CAPDU: 80 09 00 00 [21:42:06]Write to MH i2c: E2 08 00 B3 01 80 09 00 00 00 00 00 00 26 [21:42:06]Write i2c OK [21:42:06]MH_I2C_Read... [21:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:06]Read from MH i2c: E2 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: E2 03 00 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: E2 03 00 B3 01 00 90 00 28 [21:42:06]RAPDU: 90 00 [21:42:06]wFMCommunicate OK [21:42:06]SAM_PROTO_ClearQueue done [21:42:06]KKMCreateOFDPacket [21:42:06]OFDProtocolAddRootSTLVToBuf [21:42:06]FM_MakeSignedData [21:42:06]FM_MakeSignedData [21:42:06]SAM_PROTO_SignData [21:42:06]wFMCommunicate request_size=4 [21:42:06]MH_SAM_APDU [21:42:06]CAPDU: 80 0D 01 02 [21:42:06]Write to MH i2c: E2 08 00 B4 01 80 0D 01 02 00 00 00 00 2E [21:42:06]Write i2c OK [21:42:06]MH_I2C_Read... [21:42:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:06]Read from MH i2c: E2 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: E2 03 00 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: E2 03 00 B4 01 00 90 00 29 [21:42:06]RAPDU: 90 00 [21:42:06]wFMCommunicate OK [21:42:06]wFMCommunicate request_size=255 [21:42:06]MH_SAM_APDU [21:42:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 02 00 00 F4 03 04 00 2C E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 FF E1 00 00 35 04 06 00 81 [21:42:06]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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 02 00 00 F4 03 04 00 2C E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 FF E1 00 00 35 04 06 00 81 00 00 D3 [21:42:07]OFD Sender: No OFD packet to send [21:42:07]Write i2c OK [21:42:07]MH_I2C_Read... [21:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:07]Read from MH i2c: E2 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: E2 03 00 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: E2 03 00 B5 01 00 90 00 2A [21:42:07]RAPDU: 90 00 [21:42:07]wFMCommunicate OK [21:42:07]wFMCommunicate request_size=10 [21:42:07]MH_SAM_APDU [21:42:07]CAPDU: 80 0D 02 02 05 AD 1C 71 A7 07 [21:42:07]Write to MH i2c: E2 0D 00 B6 01 80 0D 02 02 05 00 AD 1C 71 A7 07 00 00 23 [21:42:07]Write i2c OK [21:42:07]MH_I2C_Read... [21:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:07]Read from MH i2c: E2 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: E2 03 00 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: E2 03 00 B6 01 00 90 00 2B [21:42:07]RAPDU: 90 00 [21:42:07]wFMCommunicate OK [21:42:07]wFMCommunicate request_size=4 [21:42:07]MH_SAM_APDU [21:42:07]CAPDU: 80 0D 03 02 [21:42:07]Write to MH i2c: E2 08 00 B7 01 80 0D 03 02 00 00 00 00 33 [21:42:07]Write i2c OK [21:42:07]MH_I2C_Read... [21:42:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:07]Read from MH i2c: E2 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: E2 0B 00 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: E2 0B 00 B7 01 00 9D 0C A7 03 0B 08 AA 3B 90 00 7F [21:42:07]RAPDU: 9D 0C A7 03 0B 08 AA 3B 90 00 [21:42:07]wFMCommunicate OK [21:42:07]SAM_PROTO_SignData done [21:42:07]FM_MakeSignedData done [21:42:07]CreateOFDProtocolMessage [21:42:07]wFMCommunicate request_size=4 [21:42:07]MH_SAM_APDU [21:42:07]CAPDU: 80 11 00 00 [21:42:07]Write to MH i2c: E2 08 00 B8 01 80 11 00 00 00 00 00 00 33 [21:42:07]Write i2c OK [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: E2 [21:42:07]MH_I2C_Read... [21:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:07]Read from MH i2c: E2 17 00 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: E2 17 00 B8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 86 [21:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:42:07]wFMCommunicate OK [21:42:07]CreateOFDProtocolMessage done [21:42:07]OFDSenderStorePacket 57855 [21:42:07]StoreOFDPacket docnum=57855 [21:42:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 65 6E 07 01 E8 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 02 00 00 F4 03 04 00 2C E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 FF E1 00 00 35 04 06 00 81 AD 1C 71 A7 07 9D 0C A7 03 0B 08 AA 3B [21:42:07]CheckFolder [21:42:07]dirname=/storage/ofd_packets [21:42:07]CheckFolder done [21:42:07]ProducePacketName [21:42:07]name=ofd_packets/00057855 [21:42:07]NVStorageSaveData ofd_packets/00057855 [21:42:07]File name is /storage/ofd_packets/00057855 [21:42:07]Write 301 bytes [21:42:07]NVStorageSaveData done [21:42:07]OFDSenderStorePacket done [21:42:07]KKMCreateOFDPacket done [21:42:07]NVStorageSaveData kkm_last_timestamp [21:42:07]File name is /storage/kkm_last_timestamp [21:42:07]Write 4 bytes [21:42:07]NVStorageSaveData done [21:42:07]ExternCall_PrintAddStr [21:42:07]wPrintStart [21:42:07]Write to MH i2c: 01 00 00 B9 01 BA [21:42:07]Write i2c OK [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: 01 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: 01 07 00 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 FF 0F CF [21:42:07]RasterBufferAndPrint [21:42:07]line Счет N : (1)543195 [21:42:07]line ИНН: 02508201610067 [21:42:07]line Контрольно-Кассовый Чек [21:42:07]line ПРОДАЖА [21:42:07]line ТРК (МРК, ГНК) : 22 [21:42:07]line Товар: 2710124130 [21:42:07]line Аи-92-К-5 [21:42:07]line 6.030 * 66.40 [21:42:07]line = 400.39 [21:42:07]line НДС 12% НСП 1% [21:42:07]line > о реализуемом товаре [21:42:07]line ОКРУГЛЕНИЕ: -0.39 [21:42:07]line ИТОГО: 400.00 [21:42:07]line Внесено: 400.00 [21:42:07]line СДАЧА: 0.00 [21:42:07]line НСП 1% : 3.54 [21:42:07]line НДС 12% : 42.52 [21:42:07]line Наличными: 400.00 [21:42:07]line Безнал.: 0.00 [21:42:07]line Место: АЗС № 117 "Партнер Нефть" [21:42:07]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [21:42:07]line СНО: Общий режим [21:42:07]line Чек 682 02.06.2024 21:42 [21:42:07]line Смена: 69 ФФД: 1.0 [21:42:07]line ЗНМ: 0300000048 [21:42:08]line РНМ: 0000000000151680 [21:42:08]line Версия ККМ: v1.0 [21:42:08]line ФМ: 0000000000959414 [21:42:08]line ФД: 57855 [21:42:08]line ФПД: 142580506535687 [21:42:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214204&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57855&fm=142580506535687&tin=02508201610067®Number=0000000000151680&sum=40000 [21:42:08]OFD Sender: Processing packet 57855 [packets to send 50, broken 49] [21:42:08]ProducePacketName [21:42:08]name=ofd_packets/00057855 [21:42:08]OFD Sender: To server: pG, [21:42:08]CommunicateWithHost lk.salyk.kg:30040 [21:42:08]ConnectInit lk.salyk.kg [21:42:08]written 0, free lines is 4095 [21:42:08]Connected sock=11 [21:42:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 65 6E 07 01 E8 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 02 00 00 F4 03 04 00 2C E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 FF E1 00 00 35 04 06 00 81 AD 1C 71 A7 07 9D 0C A7 03 0B 08 AA 3B [21:42:08]Write to MH i2c: 01 00 00 E4 01 E5 [21:42:08]Write i2c OK [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: 01 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: 01 07 00 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: 01 07 00 E4 01 00 00 00 00 00 B9 0C B1 [21:42:08]RasterBufferAndPrint [21:42:08]line [21:42:08]line [21:42:08]line [21:42:08]line [21:42:08]line [21:42:08]written 0, free lines is 3314 [21:42:08]MH_Cut [21:42:08]Write to MH i2c: D1 01 00 EB 01 01 BE [21:42:08]Write i2c OK [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: D1 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: D1 01 00 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: D1 01 00 EB 01 00 BD [21:42:08]Write to MH i2c: 01 00 00 EC 01 ED [21:42:08]Write i2c OK [21:42:08]MH_I2C_Read... [21:42:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 04 82 47 00 43 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 FF E1 00 00 F4 03 04 00 FE 91 5C 66 B6 04 01 00 00 1C D5 60 4C E6 CB DC E6 [21:42:08]CommunicateWithHost err = 0 [21:42:08]CheckOFDResponse [21:42:08]1017 (14) - 77093643461234 [21:42:08]1041 (16) - 0000000000959414 [21:42:08]1040 (4) - 57855 [21:42:08]1012 (4) - 02.06.2024 15:38 [21:42:08]1206 (1) - 0 [21:42:08]OFD Sender: Remove packet 57855 [21:42:08]ProducePacketName [21:42:08]name=ofd_packets/00057855 [21:42:08]NVStorageDeleteData [21:42:09]OFD Sender: No OFD packet to send [21:42:09]*** Cut start [21:42:09]*** Partial cut [21:42:09]*** CUTSNS_PIN = 1 [21:42:09]*** CUTSNS_PIN = 0 [21:42:09]*** Brake cut motor [21:42:10]Read from MH i2c: 01 [21:42:10]MH_I2C_Read... [21:42:10]*** Stop cut motor [21:42:10]*** Cut end [21:42:10]Read from MH i2c: 01 07 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [21:42:10]process_action close_receipt done [21:42:10]requested_data is exist [21:42:10]produce_requested_data [21:42:10]requested_item fm.sn is exist - process it [21:42:10]wFMCommunicate request_size=4 [21:42:10]MH_SAM_APDU [21:42:10]CAPDU: 80 11 00 00 [21:42:10]Write to MH i2c: E2 08 00 ED 01 80 11 00 00 00 00 00 00 68 [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:10]Read from MH i2c: E2 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 17 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 17 00 ED 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 BB [21:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:42:10]wFMCommunicate OK [21:42:10]requested_item fd.num is exist - process it [21:42:10]SAM_PROTO_GetFieldsCounters [21:42:10]wFMCommunicate request_size=4 [21:42:10]MH_SAM_APDU [21:42:10]CAPDU: 80 13 00 00 [21:42:10]Write to MH i2c: E2 08 00 EE 01 80 13 00 00 00 00 00 00 6B [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:10]Read from MH i2c: E2 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 62 00 [21:42:10]MH_I2C_Read... [21:42:10]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 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 FF E1 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 AA 02 00 00 5E 04 04 00 AA 02 00 00 57 04 04 00 AB 02 00 00 19 04 04 00 00 00 00 00 90 00 B1 [21:42:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 FF E1 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 AA 02 00 00 5E 04 04 00 AA 02 00 00 57 04 04 00 AB 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:10]wFMCommunicate OK [21:42:10]SAM_PROTO_GetFieldsCounters done [21:42:10]requested_item shift.num is exist - process it [21:42:10]requested_item shift.opened is exist - process it [21:42:10]req_shift_opened [21:42:10]FM_GetShiftState [21:42:10]SAM_PROTO_GetShiftState [21:42:10]wFMCommunicate request_size=4 [21:42:10]MH_SAM_APDU [21:42:10]CAPDU: 80 13 01 00 [21:42:10]Write to MH i2c: E2 08 00 EF 01 80 13 01 00 00 00 00 00 6D [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:10]Read from MH i2c: E2 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 0E 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 0E 00 EF 01 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 40 [21:42:10]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:42:10]wFMCommunicate OK [21:42:10]SAM_PROTO_GetShiftState done [21:42:10]FM_GetShiftState done [21:42:10]req_shift_opened done [21:42:10]requested_item shift.open_date is exist - process it [21:42:10]req_shift_open_date [21:42:10]req_shift_open_date done [21:42:10]produce_requested_data done [21:42:10]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57855,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [21:42:10]process_action_free close_receipt [21:42:10]json_value_free [21:42:10]json_value_free done [21:42:10]process_json_proto returns [21:42:10]Send response to host [21:42:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57855,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [21:42:10]free response buf [21:42:10]execute_script done [21:42:10]execute_script returns [21:42:10]free content buf [21:42:10]Sock 9.Close socket [21:42:10]Sock 9.Thread stoped [21:42:11]accept exits with 10 [21:42:11]New connection [21:42:11]New thread 3066592612 created [21:42:11]Thread 3066735972 joined [21:42:11]Waiting for new connection... [21:42:11] Sock 10.Parse request [21:42:11]Sock 10.Check first char [21:42:11]Sock 10.First char is OK [21:42:11]request: POST /json_proto HTTP/1.0 [21:42:11]Method: POST [21:42:11]URL: /json_proto [21:42:11]Method is POST - this is cgi request [21:42:11]url: /json_proto [21:42:11]query_string will be loaded in cgi processing [21:42:11]execute_cgi json_proto POST (null) [21:42:11]execute_cgi path=json_proto method=POST [21:42:11]POST find Content-Length [21:42:11]Host: 172.17.60.68:8080 [21:42:11]Content-Length: 677 [21:42:11]Content-Type: application/json [21:42:11] [21:42:11]POST finish read [21:42:11]Found Content-Length = 677 [21:42:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:11]execute_script... [21:42:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:11]POST & json_proto [21:42:11]process_json_proto [21:42:11]json parsed OK: [21:42:11]protocol is kg_v1.0 [21:42:11]action value=close_receipt [21:42:11]process_action close_receipt [21:42:11]cmd_close_receipt [21:42:11]MH_GetDate [21:42:11]Write to MH i2c: F0 00 00 F0 01 E0 [21:42:11]Write i2c OK [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: F0 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: F0 09 00 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: F0 09 00 F0 01 00 33 E7 5C 66 8D A7 02 66 61 [21:42:11]GetLastDocTimeStamp 1717364524 [21:42:11]current date 1717364531 [21:42:11]FM_GetShiftState [21:42:11]SAM_PROTO_GetShiftState [21:42:11]wFMCommunicate request_size=4 [21:42:11]MH_SAM_APDU [21:42:11]CAPDU: 80 13 01 00 [21:42:11]Write to MH i2c: E2 08 00 F1 01 80 13 01 00 00 00 00 00 6F [21:42:11]Write i2c OK [21:42:11]MH_I2C_Read... [21:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:11]Read from MH i2c: E2 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: E2 0E 00 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: E2 0E 00 F1 01 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 42 [21:42:11]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:42:11]wFMCommunicate OK [21:42:11]SAM_PROTO_GetShiftState done [21:42:11]FM_GetShiftState done [21:42:11]opened in 1717288520 [21:42:11]opened+sec_in_day 1717374920 [21:42:11]quantity*price = 10026 [21:42:11]sum+1 = 10027 [21:42:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 683 02.06.2024 21:42 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57856 ФПД: 179581490281847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214212&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57856&fm=179581490281847&tin=02508201610067®Number=0000000000151680&sum=10000 [21:42:14]StoreToDocumentArchive [21:42:14]shift 69 fd 57856 [21:42:14]save to /storage/0069/doc_00057856 [21:42:14]save last doc name /storage/0069/doc_00057856 to /storage/kkm_last_doc_name [21:42:14]save OK [21:42:14]Clear old archive folders... [21:42:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:42:14]tlvbuf is 01A064F0 [21:42:14]SAM_PROTO_ClearQueue [21:42:14]wFMCommunicate request_size=4 [21:42:14]MH_SAM_APDU [21:42:14]CAPDU: 80 09 00 00 [21:42:14]Write to MH i2c: E2 08 00 FE 01 80 09 00 00 00 00 00 00 71 [21:42:14]Write i2c OK [21:42:14]MH_I2C_Read... [21:42:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:14]Read from MH i2c: E2 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: E2 03 00 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: E2 03 00 FE 01 00 90 00 73 [21:42:14]RAPDU: 90 00 [21:42:14]wFMCommunicate OK [21:42:14]SAM_PROTO_ClearQueue done [21:42:14]KKMCreateOFDPacket [21:42:14]OFDProtocolAddRootSTLVToBuf [21:42:14]FM_MakeSignedData [21:42:14]FM_MakeSignedData [21:42:14]SAM_PROTO_SignData [21:42:14]wFMCommunicate request_size=4 [21:42:14]MH_SAM_APDU [21:42:14]CAPDU: 80 0D 01 02 [21:42:14]Write to MH i2c: E2 08 00 FF 01 80 0D 01 02 00 00 00 00 79 [21:42:14]Write i2c OK [21:42:14]MH_I2C_Read... [21:42:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:14]Read from MH i2c: E2 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: E2 03 00 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: E2 03 00 FF 01 00 90 00 74 [21:42:14]RAPDU: 90 00 [21:42:14]wFMCommunicate OK [21:42:14]wFMCommunicate request_size=255 [21:42:14]MH_SAM_APDU [21:42:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 OFD Sender: No OFD packet to send [21:42:14]F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 02 00 00 F4 03 04 00 34 E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 00 E2 00 00 35 04 06 00 A3 [21:42:14]Write to MH i2c: E2 02 01 00 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 02 00 00 F4 03 04 00 34 E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 00 E2 00 00 35 04 06 00 A3 00 00 0D [21:42:14]Write i2c OK [21:42:15]MH_I2C_Read... [21:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:15]Read from MH i2c: E2 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: E2 03 00 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: E2 03 00 00 02 00 90 00 76 [21:42:15]RAPDU: 90 00 [21:42:15]wFMCommunicate OK [21:42:15]wFMCommunicate request_size=10 [21:42:15]MH_SAM_APDU [21:42:15]CAPDU: 80 0D 02 02 05 54 12 EF BD 77 [21:42:15]Write to MH i2c: E2 0D 00 01 02 80 0D 02 02 05 00 54 12 EF BD 77 00 00 10 [21:42:15]Write i2c OK [21:42:15]MH_I2C_Read... [21:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:15]Read from MH i2c: E2 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: E2 03 00 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: E2 03 00 01 02 00 90 00 77 [21:42:15]RAPDU: 90 00 [21:42:15]wFMCommunicate OK [21:42:15]wFMCommunicate request_size=4 [21:42:15]MH_SAM_APDU [21:42:15]CAPDU: 80 0D 03 02 [21:42:15]Write to MH i2c: E2 08 00 02 02 80 0D 03 02 00 00 00 00 7F [21:42:15]Write i2c OK [21:42:15]MH_I2C_Read... [21:42:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:15]Read from MH i2c: E2 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: E2 0B 00 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: E2 0B 00 02 02 00 4A AB C2 E1 05 E7 0C 6D 90 00 7D [21:42:15]RAPDU: 4A AB C2 E1 05 E7 0C 6D 90 00 [21:42:15]wFMCommunicate OK [21:42:15]SAM_PROTO_SignData done [21:42:15]FM_MakeSignedData done [21:42:15]CreateOFDProtocolMessage [21:42:15]wFMCommunicate request_size=4 [21:42:15]MH_SAM_APDU [21:42:15]CAPDU: 80 11 00 00 [21:42:15]Write to MH i2c: E2 08 00 03 02 80 11 00 00 00 00 00 00 7F [21:42:15]Write i2c OK [21:42:15]MH_I2C_Read... [21:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:15]Read from MH i2c: E2 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: E2 17 00 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: E2 17 00 03 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 D2 [21:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:42:15]wFMCommunicate OK [21:42:15]CreateOFDProtocolMessage done [21:42:15]OFDSenderStorePacket 57856 [21:42:15]StoreOFDPacket docnum=57856 [21:42:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 F6 98 07 01 52 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 02 00 00 F4 03 04 00 34 E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 00 E2 00 00 35 04 06 00 A3 54 12 EF BD 77 4A AB C2 E1 05 E7 0C 6D [21:42:15]CheckFolder [21:42:15]dirname=/storage/ofd_packets [21:42:15]CheckFolder done [21:42:15]ProducePacketName [21:42:15]name=ofd_packets/00057856 [21:42:15]NVStorageSaveData ofd_packets/00057856 [21:42:15]File name is /storage/ofd_packets/00057856 [21:42:15]Write 301 bytes [21:42:15]NVStorageSaveData done [21:42:15]OFDSenderStorePacket done [21:42:15]KKMCreateOFDPacket done [21:42:15]NVStorageSaveData kkm_last_timestamp [21:42:15]File name is /storage/kkm_last_timestamp [21:42:15]Write 4 bytes [21:42:15]NVStorageSaveData done [21:42:15]ExternCall_PrintAddStr [21:42:15]wPrintStart [21:42:15]Write to MH i2c: 01 00 00 04 02 06 [21:42:15]Write i2c OK [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: 01 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: 01 07 00 [21:42:15]MH_I2C_Read... [21:42:15]Read from MH i2c: 01 07 00 04 02 00 00 00 00 00 FF 0F 1B [21:42:15]RasterBufferAndPrint [21:42:15]line Счет N : (1)543196 [21:42:15]line ИНН: 02508201610067 [21:42:15]line Контрольно-Кассовый Чек [21:42:15]line ПРОДАЖА [21:42:15]line ТРК (МРК, ГНК) : 42 [21:42:15]line Товар: 2710124130 [21:42:15]line Аи-92-К-5 [21:42:15]line 1.510 * 66.40 [21:42:15]line = 100.26 [21:42:15]line НДС 12% НСП 1% [21:42:15]line > о реализуемом товаре [21:42:15]line ОКРУГЛЕНИЕ: -0.26 [21:42:15]line ИТОГО: 100.00 [21:42:15]OFD Sender: Processing packet 57856 [packets to send 50, broken 49] [21:42:15]ProducePacketName [21:42:15]name=ofd_packets/00057856 [21:42:15]OFD Sender: To server: pG, [21:42:15]CommunicateWithHost lk.salyk.kg:30040 [21:42:15]ConnectInit lk.salyk.kg [21:42:15]line Внесено: 100.00 [21:42:15]line СДАЧА: 0.00 [21:42:15]line НСП 1% : 0.89 [21:42:15]line НДС 12% : 10.65 [21:42:15]line Наличными: 100.00 [21:42:15]line Безнал.: 0.00 [21:42:15]line Место: АЗС № 117 "Партнер Нефть" [21:42:15]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [21:42:15]line СНО: Общий режим [21:42:15]line Чек 683 02.06.2024 21:42 [21:42:15]line Смена: 69 ФФД: 1.0 [21:42:15]line ЗНМ: 0300000048 [21:42:15]line РНМ: 0000000000151680 [21:42:15]line Версия ККМ: v1.0 [21:42:15]line ФМ: 0000000000959414 [21:42:15]line ФД: 57856 [21:42:15]line ФПД: 179581490281847 [21:42:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214212&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57856&fm=179581490281847&tin=02508201610067®Number=0000000000151680&sum=10000 [21:42:15]written 0, free lines is 4095 [21:42:15]Connected sock=11 [21:42:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 F6 98 07 01 52 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 02 00 00 F4 03 04 00 34 E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 00 E2 00 00 35 04 06 00 A3 54 12 EF BD 77 4A AB C2 E1 05 E7 Write to MH i2c: 0C 01 6D 00 [21:42:16]00 2F 02 31 [21:42:16]Write i2c OK [21:42:16]MH_I2C_Read... [21:42:16]Read from MH i2c: 01 [21:42:16]MH_I2C_Read... [21:42:16]Read from MH i2c: 01 07 00 [21:42:16]MH_I2C_Read... [21:42:16]Read from MH i2c: 01 07 00 2F 02 00 00 00 00 00 B5 0C F9 [21:42:16]RasterBufferAndPrint [21:42:16]line [21:42:16]line [21:42:16]line [21:42:16]line [21:42:16]line [21:42:16]written 0, free lines is 3315 [21:42:16]MH_Cut [21:42:16]Write to MH i2c: D1 01 00 36 02 01 0A [21:42:16]Write i2c OK [21:42:16]MH_I2C_Read... [21:42:16]Read from MH i2c: D1 [21:42:16]MH_I2C_Read... [21:42:16]Read from MH i2c: D1 01 00 [21:42:16]MH_I2C_Read... [21:42:16]Read from MH i2c: D1 01 00 36 02 00 09 [21:42:16]Write to MH i2c: 01 00 00 37 02 39 [21:42:16]Write i2c OK [21:42:16]MH_I2C_Read... [21:42:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 29 A9 47 00 D3 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 39 35 39 34 31 34 10 04 04 00 00 E2 00 00 F4 03 04 00 06 92 5C 66 B6 04 01 00 00 E4 AA 98 E9 D1 4B 06 7B [21:42:16]CommunicateWithHost err = 0 [21:42:16]CheckOFDResponse [21:42:16]1017 (14) - 77093643461234 [21:42:16]1041 (16) - 0000000000959414 [21:42:16]1040 (4) - 57856 [21:42:16]1012 (4) - 02.06.2024 15:38 [21:42:16]1206 (1) - 0 [21:42:16]OFD Sender: Remove packet 57856 [21:42:16]ProducePacketName [21:42:16]name=ofd_packets/00057856 [21:42:16]NVStorageDeleteData [21:42:17]*** Cut start [21:42:17]*** Partial cut [21:42:17]*** CUTSNS_PIN = 1 [21:42:17]*** CUTSNS_PIN = 0 [21:42:17]OFD Sender: No OFD packet to send [21:42:17]*** Brake cut motor [21:42:17]Read from MH i2c: 01 [21:42:17]MH_I2C_Read... [21:42:17]*** Stop cut motor [21:42:17]*** Cut end [21:42:17]Read from MH i2c: 01 07 00 [21:42:17]MH_I2C_Read... [21:42:17]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [21:42:17]process_action close_receipt done [21:42:17]requested_data is exist [21:42:17]produce_requested_data [21:42:17]requested_item fm.sn is exist - process it [21:42:17]wFMCommunicate request_size=4 [21:42:17]MH_SAM_APDU [21:42:17]CAPDU: 80 11 00 00 [21:42:17]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [21:42:17]Write i2c OK [21:42:17]MH_I2C_Read... [21:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:18]Read from MH i2c: E2 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 17 00 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 17 00 38 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 07 [21:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:42:18]wFMCommunicate OK [21:42:18]requested_item fd.num is exist - process it [21:42:18]SAM_PROTO_GetFieldsCounters [21:42:18]wFMCommunicate request_size=4 [21:42:18]MH_SAM_APDU [21:42:18]CAPDU: 80 13 00 00 [21:42:18]Write to MH i2c: E2 08 00 39 02 80 13 00 00 00 00 00 00 B7 [21:42:18]Write i2c OK [21:42:18]MH_I2C_Read... [21:42:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:18]Read from MH i2c: E2 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 62 00 [21:42:18]MH_I2C_Read... [21:42:18]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 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 00 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 AB 02 00 00 5E 04 04 00 AB 02 00 00 57 04 04 00 AC 02 00 00 19 04 04 00 00 00 00 00 90 00 02 [21:42:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 00 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 AB 02 00 00 5E 04 04 00 AB 02 00 00 57 04 04 00 AC 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:18]wFMCommunicate OK [21:42:18]SAM_PROTO_GetFieldsCounters done [21:42:18]requested_item shift.num is exist - process it [21:42:18]requested_item shift.opened is exist - process it [21:42:18]req_shift_opened [21:42:18]FM_GetShiftState [21:42:18]SAM_PROTO_GetShiftState [21:42:18]wFMCommunicate request_size=4 [21:42:18]MH_SAM_APDU [21:42:18]CAPDU: 80 13 01 00 [21:42:18]Write to MH i2c: E2 08 00 3A 02 80 13 01 00 00 00 00 00 B9 [21:42:18]Write i2c OK [21:42:18]MH_I2C_Read... [21:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:18]Read from MH i2c: E2 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 0E 00 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 0E 00 3A 02 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 8C [21:42:18]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:42:18]wFMCommunicate OK [21:42:18]SAM_PROTO_GetShiftState done [21:42:18]FM_GetShiftState done [21:42:18]req_shift_opened done [21:42:18]requested_item shift.open_date is exist - process it [21:42:18]req_shift_open_date [21:42:18]req_shift_open_date done [21:42:18]produce_requested_data done [21:42:18]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57856,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [21:42:18]process_action_free close_receipt [21:42:18]json_value_free [21:42:18]json_value_free done [21:42:18]process_json_proto returns [21:42:18]Send response to host [21:42:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57856,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [21:42:18]free response buf [21:42:18]execute_script done [21:42:18]execute_script returns [21:42:18]free content buf [21:42:18]Sock 10.Close socket [21:42:18]Sock 10.Thread stoped [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:48]ConnectInit Can't connect to host [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]accept exits with 9 [21:43:02]New connection [21:43:02]New thread 3066735972 created [21:43:02]Thread 3066592612 joined [21:43:02]Waiting for new connection... [21:43:02] Sock 9.Parse request [21:43:02]Sock 9.Check first char [21:43:02]Sock 9.First char is OK [21:43:02]request: POST /json_proto HTTP/1.0 [21:43:02]Method: POST [21:43:02]URL: /json_proto [21:43:02]Method is POST - this is cgi request [21:43:02]url: /json_proto [21:43:02]query_string will be loaded in cgi processing [21:43:02]execute_cgi json_proto POST (null) [21:43:02]execute_cgi path=json_proto method=POST [21:43:02]POST find Content-Length [21:43:02]Host: 172.17.60.68:8080 [21:43:02]Content-Length: 800 [21:43:02]Content-Type: application/json [21:43:02] [21:43:02]POST finish read [21:43:02]Found Content-Length = 800 [21:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:02]execute_script... [21:43:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:02]POST & json_proto [21:43:02]process_json_proto [21:43:02]json parsed OK: [21:43:02]protocol is kg_v1.0 [21:43:02]action value=close_receipt [21:43:02]process_action close_receipt [21:43:02]cmd_close_receipt [21:43:02]MH_GetDate [21:43:02]Write to MH i2c: F0 00 00 3B 02 2C [21:43:02]Write i2c OK [21:43:02]MH_I2C_Read... [21:43:02]Read from MH i2c: F0 [21:43:02]MH_I2C_Read... [21:43:02]Read from MH i2c: F0 09 00 [21:43:02]MH_I2C_Read... [21:43:02]Read from MH i2c: F0 09 00 3B 02 00 66 E7 5C 66 8D A7 02 66 E0 [21:43:02]GetLastDocTimeStamp 1717364532 [21:43:02]current date 1717364582 [21:43:02]FM_GetShiftState [21:43:02]SAM_PROTO_GetShiftState [21:43:02]wFMCommunicate request_size=4 [21:43:02]MH_SAM_APDU [21:43:02]CAPDU: 80 13 01 00 [21:43:02]Write to MH i2c: E2 08 00 3C 02 80 13 01 00 00 00 00 00 BB [21:43:02]Write i2c OK [21:43:02]MH_I2C_Read... [21:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:02]Read from MH i2c: E2 [21:43:02]MH_I2C_Read... [21:43:02]Read from MH i2c: E2 0E 00 [21:43:02]MH_I2C_Read... [21:43:02]Read from MH i2c: E2 0E 00 3C 02 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 8E [21:43:02]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:43:02]wFMCommunicate OK [21:43:02]SAM_PROTO_GetShiftState done [21:43:02]FM_GetShiftState done [21:43:02]opened in 1717288520 [21:43:02]opened+sec_in_day 1717374920 [21:43:02]quantity*price = 30012 [21:43:02]sum+1 = 30014 [21:43:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 684 02.06.2024 21:43 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57857 ФПД: 124329324949878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214302&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57857&fm=124329324949878&tin=02508201610067®Number=0000000000151680&sum=30013 [21:43:04]StoreToDocumentArchive [21:43:04]shift 69 fd 57857 [21:43:04]save to /storage/0069/doc_00057857 [21:43:04]save last doc name /storage/0069/doc_00057857 to /storage/kkm_last_doc_name [21:43:04]save OK [21:43:04]Clear old archive folders... [21:43:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:43:04]tlvbuf is 01A50820 [21:43:04]SAM_PROTO_ClearQueue [21:43:04]wFMCommunicate request_size=4 [21:43:04]MH_SAM_APDU [21:43:04]CAPDU: 80 09 00 00 [21:43:04]Write to MH i2c: E2 08 00 49 02 80 09 00 00 00 00 00 00 BD [21:43:04]Write i2c OK [21:43:04]MH_I2C_Read... [21:43:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:04]Read from MH i2c: E2 [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: E2 03 00 [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: E2 03 00 49 02 00 90 00 BF [21:43:04]RAPDU: 90 00 [21:43:04]wFMCommunicate OK [21:43:04]SAM_PROTO_ClearQueue done [21:43:04]KKMCreateOFDPacket [21:43:04]OFDProtocolAddRootSTLVToBuf [21:43:04]FM_MakeSignedData [21:43:04]FM_MakeSignedData [21:43:04]SAM_PROTO_SignData [21:43:04]wFMCommunicate request_size=4 [21:43:04]MH_SAM_APDU [21:43:04]CAPDU: 80 0D 01 02 [21:43:04]Write to MH i2c: E2 08 00 4A 02 80 0D 01 02 00 00 00 00 C5 [21:43:04]Write i2c OK [21:43:04]MH_I2C_Read... [21:43:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:04]Read from MH i2c: E2 [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: E2 03 00 [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: E2 03 00 4A 02 00 90 00 C0 [21:43:04]RAPDU: 90 00 [21:43:04]wFMCommunicate OK [21:43:04]wFMCommunicate request_size=255 [21:43:04]MH_SAM_APDU [21:43:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AC 02 00 00 F4 03 04 00 66 E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 01 E2 00 00 35 04 06 00 71 [21:43:05]Write to MH i2c: E2 02 01 4B 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 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 AC 02 00 00 F4 03 04 00 66 E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 01 E2 00 00 35 04 06 00 71 00 00 83 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 4B 02 00 90 00 C1 [21:43:05]RAPDU: 90 00 [21:43:05]wFMCommunicate OK [21:43:05]wFMCommunicate request_size=10 [21:43:05]MH_SAM_APDU [21:43:05]CAPDU: 80 0D 02 02 05 13 AD 3F B1 76 [21:43:05]Write to MH i2c: E2 0D 00 4C 02 80 0D 02 02 05 00 13 AD 3F B1 76 00 00 F8 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 4C 02 00 90 00 C2 [21:43:05]RAPDU: 90 00 [21:43:06]wFMCommunicate OK [21:43:06]wFMCommunicate request_size=4 [21:43:06]MH_SAM_APDU [21:43:06]CAPDU: 80 0D 03 02 [21:43:06]Write to MH i2c: E2 08 00 4D 02 80 0D 03 02 00 00 00 00 CA [21:43:06]Write i2c OK [21:43:06]MH_I2C_Read... [21:43:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:06]Read from MH i2c: E2 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: E2 0B 00 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: E2 0B 00 4D 02 00 A2 E4 C3 18 A7 1F 6D 1E 90 00 7D [21:43:06]RAPDU: A2 E4 C3 18 A7 1F 6D 1E 90 00 [21:43:06]wFMCommunicate OK [21:43:06]SAM_PROTO_SignData done [21:43:06]FM_MakeSignedData done [21:43:06]CreateOFDProtocolMessage [21:43:06]wFMCommunicate request_size=4 [21:43:06]MH_SAM_APDU [21:43:06]CAPDU: 80 11 00 00 [21:43:06]Write to MH i2c: E2 08 00 4E 02 80 11 00 00 00 00 00 00 CA [21:43:06]Write i2c OK [21:43:06]MH_I2C_Read... [21:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:06]Read from MH i2c: E2 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: E2 17 00 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: E2 17 00 4E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 1D [21:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:43:06]wFMCommunicate OK [21:43:06]CreateOFDProtocolMessage done [21:43:06]OFDSenderStorePacket 57857 [21:43:06]StoreOFDPacket docnum=57857 [21:43:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 7C 84 07 01 D1 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 AC 02 00 00 F4 03 04 00 66 E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 01 E2 00 00 35 04 06 00 71 13 AD 3F B1 76 A2 E4 C3 18 A7 1F 6D 1E [21:43:06]CheckFolder [21:43:06]dirname=/storage/ofd_packets [21:43:06]CheckFolder done [21:43:06]ProducePacketName [21:43:06]name=ofd_packets/00057857 [21:43:06]NVStorageSaveData ofd_packets/00057857 [21:43:06]File name is /storage/ofd_packets/00057857 [21:43:06]Write 301 bytes [21:43:06]NVStorageSaveData done [21:43:06]OFDSenderStorePacket done [21:43:06]KKMCreateOFDPacket done [21:43:06]NVStorageSaveData kkm_last_timestamp [21:43:06]File name is /storage/kkm_last_timestamp [21:43:06]Write 4 bytes [21:43:06]NVStorageSaveData done [21:43:06]ExternCall_PrintAddStr [21:43:06]wPrintStart [21:43:06]Write to MH i2c: 01 00 00 4F 02 51 [21:43:06]OFD Sender: Processing packet 57857 [packets to send 50, broken 49] [21:43:06]ProducePacketName [21:43:06]name=ofd_packets/00057857 [21:43:06]OFD Sender: To server: pG, [21:43:06]CommunicateWithHost lk.salyk.kg:30040 [21:43:06]ConnectInit lk.salyk.kg [21:43:06]Write i2c OK [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: 01 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: 01 07 00 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: 01 07 00 4F 02 00 00 00 00 00 FF 0F 66 [21:43:06]RasterBufferAndPrint [21:43:06]line Счет N : (1)543197 [21:43:06]line ИНН: 02508201610067 [21:43:06]line Контрольно-Кассовый Чек [21:43:06]line ПРОДАЖА [21:43:06]line ТРК (МРК, ГНК) : 42 [21:43:06]line Товар: 2710124130 [21:43:06]line Аи-92-К-5 [21:43:06]line 4.520 * 66.40 [21:43:06]line = 300.13 [21:43:06]line НДС 12% НСП 1% [21:43:06]line > о реализуемом товаре [21:43:06]line ИТОГО: 300.13 [21:43:06]line НСП 1% : 2.66 [21:43:06]line НДС 12% : 31.87 [21:43:06]line Наличными: 0.00 [21:43:06]line Безнал.: 300.13 [21:43:06]line Место: АЗС № 117 "Партнер Нефть" [21:43:06]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [21:43:06]line СНО: Общий режим [21:43:06]line Чек 684 02.06.2024 21:43 [21:43:06]line Смена: 69 ФФД: 1.0 [21:43:06]line ЗНМ: 0300000048 [21:43:06]line РНМ: 0000000000151680 [21:43:06]line Версия ККМ: v1.0 [21:43:06]line Платежная система: O! деньги [21:43:06]line ФМ: 0000000000959414 [21:43:06]line ФД: 57857 [21:43:06]line ФПД: 124329324949878 [21:43:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214302&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57857&fm=124329324949878&tin=02508201610067®Number=0000000000151680&sum=30013 [21:43:06]Connected sock=11 [21:43:06]Data to sent: 87 95 F6 written 0, free lines is 4095 [21:43:06]70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 7C 84 07 01 D1 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 AC 02 00 00 F4 03 04 00 66 E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 01 E2 00 00 35 04 06 00 71 13 AD 3F B1 76 A2 E4 C3 18 A7 1F 6D 1E [21:43:06]Write to MH i2c: 01 00 00 79 02 7B [21:43:06]Write i2c OK [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: 01 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 07 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 07 00 79 02 00 00 00 00 00 D2 0C 60 [21:43:07]RasterBufferAndPrint [21:43:07]line [21:43:07]line [21:43:07]line [21:43:07]line [21:43:07]line [21:43:07]written 0, free lines is 3346 [21:43:07]MH_Cut [21:43:07]Write to MH i2c: D1 01 00 80 02 01 54 [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: D1 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: D1 01 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: D1 01 00 80 02 00 53 [21:43:07]Write to MH i2c: 01 00 00 81 02 83 [21:43:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 0F 32 47 00 B5 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 Write i2c OK [21:43:07]10 MH_I2C_Read... [21:43:07]04 04 00 01 E2 00 00 F4 03 04 00 39 92 5C 66 B6 04 01 00 00 04 B2 5D 3A 3B E8 3B 18 [21:43:07]CommunicateWithHost err = 0 [21:43:07]CheckOFDResponse [21:43:07]1017 (14) - 77093643461234 [21:43:07]1041 (16) - 0000000000959414 [21:43:07]1040 (4) - 57857 [21:43:07]1012 (4) - 02.06.2024 15:39 [21:43:07]1206 (1) - 0 [21:43:07]OFD Sender: Remove packet 57857 [21:43:07]ProducePacketName [21:43:07]name=ofd_packets/00057857 [21:43:07]NVStorageDeleteData [21:43:07]*** Cut start [21:43:07]*** Partial cut [21:43:07]*** CUTSNS_PIN = 1 [21:43:07]OFD Sender: No OFD packet to send [21:43:07]*** CUTSNS_PIN = 0 [21:43:08]*** Brake cut motor [21:43:08]Read from MH i2c: 01 [21:43:08]MH_I2C_Read... [21:43:08]*** Stop cut motor [21:43:08]*** Cut end [21:43:08]Read from MH i2c: 01 07 00 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 FF 0F 98 [21:43:08]process_action close_receipt done [21:43:08]requested_data is exist [21:43:08]produce_requested_data [21:43:08]requested_item fm.sn is exist - process it [21:43:08]wFMCommunicate request_size=4 [21:43:08]MH_SAM_APDU [21:43:08]CAPDU: 80 11 00 00 [21:43:08]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [21:43:08]Write i2c OK [21:43:08]MH_I2C_Read... [21:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:08]Read from MH i2c: E2 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 17 00 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 51 [21:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:43:08]wFMCommunicate OK [21:43:08]requested_item fd.num is exist - process it [21:43:08]SAM_PROTO_GetFieldsCounters [21:43:08]wFMCommunicate request_size=4 [21:43:08]MH_SAM_APDU [21:43:08]CAPDU: 80 13 00 00 [21:43:08]Write to MH i2c: E2 08 00 83 02 80 13 00 00 00 00 00 00 01 [21:43:08]Write i2c OK [21:43:08]MH_I2C_Read... [21:43:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:08]Read from MH i2c: E2 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 62 00 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 62 00 83 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 01 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 AC 02 00 00 5E 04 04 00 AC 02 00 00 57 04 04 00 AD 02 00 00 19 04 04 00 00 00 00 00 90 00 50 [21:43:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 01 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 AC 02 00 00 5E 04 04 00 AC 02 00 00 57 04 04 00 AD 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:09]wFMCommunicate OK [21:43:09]SAM_PROTO_GetFieldsCounters done [21:43:09]requested_item shift.num is exist - process it [21:43:09]requested_item shift.opened is exist - process it [21:43:09]req_shift_opened [21:43:09]FM_GetShiftState [21:43:09]SAM_PROTO_GetShiftState [21:43:09]wFMCommunicate request_size=4 [21:43:09]MH_SAM_APDU [21:43:09]CAPDU: 80 13 01 00 [21:43:09]Write to MH i2c: E2 08 00 84 02 80 13 01 00 00 00 00 00 03 [21:43:09]Write i2c OK [21:43:09]MH_I2C_Read... [21:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:09]Read from MH i2c: E2 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: E2 0E 00 [21:43:09]MH_I2C_Read... [21:43:09]Read from MH i2c: E2 0E 00 84 02 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 D6 [21:43:09]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:43:09]wFMCommunicate OK [21:43:09]SAM_PROTO_GetShiftState done [21:43:09]FM_GetShiftState done [21:43:09]req_shift_opened done [21:43:09]requested_item shift.open_date is exist - process it [21:43:09]req_shift_open_date [21:43:09]req_shift_open_date done [21:43:09]produce_requested_data done [21:43:09]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57857,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [21:43:09]process_action_free close_receipt [21:43:09]json_value_free [21:43:09]json_value_free done [21:43:09]process_json_proto returns [21:43:09]Send response to host [21:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57857,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [21:43:09]free response buf [21:43:09]execute_script done [21:43:09]execute_script returns [21:43:09]free content buf [21:43:09]Sock 9.Close socket [21:43:09]Sock 9.Thread stoped [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]accept exits with 10 [21:44:12]New connection [21:44:12]New thread 3066592612 created [21:44:12]Thread 3066735972 joined [21:44:12]Waiting for new connection... [21:44:12] Sock 10.Parse request [21:44:12]Sock 10.Check first char [21:44:12]Sock 10.First char is OK [21:44:12]request: POST /json_proto HTTP/1.0 [21:44:12]Method: POST [21:44:12]URL: /json_proto [21:44:12]Method is POST - this is cgi request [21:44:12]url: /json_proto [21:44:12]query_string will be loaded in cgi processing [21:44:12]execute_cgi json_proto POST (null) [21:44:12]execute_cgi path=json_proto method=POST [21:44:12]POST find Content-Length [21:44:12]Host: 172.17.60.68:8080 [21:44:12]Content-Length: 677 [21:44:12]Content-Type: application/json [21:44:12] [21:44:12]POST finish read [21:44:12]Found Content-Length = 677 [21:44:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543198", "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" : 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" ] } } [21:44:12]execute_script... [21:44:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543198", "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" : 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" ] } } [21:44:12]POST & json_proto [21:44:12]process_json_proto [21:44:12]json parsed OK: [21:44:12]protocol is kg_v1.0 [21:44:12]action value=close_receipt [21:44:12]process_action close_receipt [21:44:12]cmd_close_receipt [21:44:12]MH_GetDate [21:44:12]Write to MH i2c: F0 00 00 85 02 76 [21:44:12]Write i2c OK [21:44:12]MH_I2C_Read... [21:44:12]Read from MH i2c: F0 [21:44:12]MH_I2C_Read... [21:44:12]Read from MH i2c: F0 09 00 [21:44:12]MH_I2C_Read... [21:44:12]Read from MH i2c: F0 09 00 85 02 00 AC E7 5C 66 8D A7 02 66 70 [21:44:12]GetLastDocTimeStamp 1717364582 [21:44:12]current date 1717364652 [21:44:12]FM_GetShiftState [21:44:12]SAM_PROTO_GetShiftState [21:44:12]wFMCommunicate request_size=4 [21:44:12]MH_SAM_APDU [21:44:12]CAPDU: 80 13 01 00 [21:44:12]Write to MH i2c: E2 08 00 86 02 80 13 01 00 00 00 00 00 05 [21:44:12]Write i2c OK [21:44:12]MH_I2C_Read... [21:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:12]Read from MH i2c: E2 [21:44:12]MH_I2C_Read... [21:44:12]Read from MH i2c: E2 0E 00 [21:44:12]MH_I2C_Read... [21:44:12]Read from MH i2c: E2 0E 00 86 02 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 D8 [21:44:12]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:44:12]wFMCommunicate OK [21:44:12]SAM_PROTO_GetShiftState done [21:44:12]FM_GetShiftState done [21:44:12]opened in 1717288520 [21:44:12]opened+sec_in_day 1717374920 [21:44:12]quantity*price = 20052 [21:44:12]sum+1 = 20054 [21:44:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 685 02.06.2024 21:44 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57858 ФПД: 165522312089642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214412&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57858&fm=165522312089642&tin=02508201610067®Number=0000000000151680&sum=20000 [21:44:14]StoreToDocumentArchive [21:44:14]shift 69 fd 57858 [21:44:14]save to /storage/0069/doc_00057858 [21:44:14]save last doc name /storage/0069/doc_00057858 to /storage/kkm_last_doc_name [21:44:14]save OK [21:44:14]Clear old archive folders... [21:44:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:44:14]tlvbuf is 01A52460 [21:44:14]SAM_PROTO_ClearQueue [21:44:14]wFMCommunicate request_size=4 [21:44:14]MH_SAM_APDU [21:44:14]CAPDU: 80 09 00 00 [21:44:14]Write to MH i2c: E2 08 00 93 02 80 09 00 00 00 00 00 00 07 [21:44:14]Write i2c OK [21:44:14]MH_I2C_Read... [21:44:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:14]Read from MH i2c: E2 [21:44:14]MH_I2C_Read... [21:44:14]Read from MH i2c: E2 03 00 [21:44:14]MH_I2C_Read... [21:44:14]Read from MH i2c: E2 03 00 93 02 00 90 00 09 [21:44:14]RAPDU: 90 00 [21:44:14]wFMCommunicate OK [21:44:14]SAM_PROTO_ClearQueue done [21:44:14]KKMCreateOFDPacket [21:44:14]OFDProtocolAddRootSTLVToBuf [21:44:14]FM_MakeSignedData [21:44:14]FM_MakeSignedData [21:44:14]SAM_PROTO_SignData [21:44:14]wFMCommunicate request_size=4 [21:44:14]MH_SAM_APDU [21:44:14]CAPDU: 80 0D 01 02 [21:44:14]Write to MH i2c: E2 08 00 94 02 80 0D 01 02 00 00 00 00 0F [21:44:14]Write i2c OK [21:44:14]MH_I2C_Read... [21:44:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:14]Read from MH i2c: E2 [21:44:14]MH_I2C_Read... [21:44:14]Read from MH i2c: E2 03 00 [21:44:14]MH_I2C_Read... [21:44:14]Read from MH i2c: E2 03 00 94 02 00 90 00 0A [21:44:14]RAPDU: 90 00 [21:44:14]wFMCommunicate OK [21:44:15]wFMCommunicate request_size=255 [21:44:15]MH_SAM_APDU [21:44: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 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 AD 02 00 00 F4 03 04 00 AC E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 02 E2 00 00 35 04 06 00 96 [21:44:15]Write to MH i2c: E2 02 01 95 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 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 AD 02 00 00 F4 03 04 00 AC E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 02 E2 00 00 35 04 06 00 96 00 00 41 [21:44:15]Write i2c OK [21:44:15]MH_I2C_Read... [21:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:16]Read from MH i2c: E2 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: E2 03 00 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: E2 03 00 95 02 00 90 00 0B [21:44:16]RAPDU: 90 00 [21:44:16]wFMCommunicate OK [21:44:16]wFMCommunicate request_size=10 [21:44:16]MH_SAM_APDU [21:44:16]CAPDU: 80 0D 02 02 05 8A AA 9D 50 2A [21:44:16]Write to MH i2c: E2 0D 00 96 02 80 0D 02 02 05 00 8A AA 9D 50 2A 00 00 67 [21:44:16]Write i2c OK [21:44:16]MH_I2C_Read... [21:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:16]Read from MH i2c: E2 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: E2 03 00 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: E2 03 00 96 02 00 90 00 0C [21:44:16]RAPDU: 90 00 [21:44:16]wFMCommunicate OK [21:44:16]wFMCommunicate request_size=4 [21:44:16]MH_SAM_APDU [21:44:16]CAPDU: 80 0D 03 02 [21:44:16]Write to MH i2c: E2 08 00 97 02 80 0D 03 02 00 00 00 00 14 [21:44:16]Write i2c OK [21:44:16]MH_I2C_Read... [21:44:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:16]Read from MH i2c: E2 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: E2 0B 00 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: E2 0B 00 97 02 00 94 78 99 6B F5 12 75 12 90 00 B3 [21:44:16]RAPDU: 94 78 99 6B F5 12 75 12 90 00 [21:44:16]wFMCommunicate OK [21:44:16]SAM_PROTO_SignData done [21:44:16]FM_MakeSignedData done [21:44:16]CreateOFDProtocolMessage [21:44:16]wFMCommunicate request_size=4 [21:44:16]MH_SAM_APDU [21:44:16]CAPDU: 80 11 00 00 [21:44:16]Write to MH i2c: E2 08 00 98 02 80 11 00 00 00 00 00 00 14 [21:44:16]Write i2c OK [21:44:16]MH_I2C_Read... [21:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:16]Read from MH i2c: E2 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: E2 17 00 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: E2 17 00 98 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 67 [21:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:44:16]wFMCommunicate OK [21:44:16]CreateOFDProtocolMessage done [21:44:16]OFDSenderStorePacket 57858 [21:44:16]StoreOFDPacket docnum=57858 [21:44:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 97 B8 07 01 6A A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 AD 02 00 00 F4 03 04 00 AC E7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 02 E2 00 00 35 04 06 00 96 8A AA 9D 50 2A 94 78 99 6B F5 12 75 12 [21:44:16]CheckFolder [21:44:16]dirname=/storage/ofd_packets [21:44:16]CheckFolder done [21:44:16]ProducePacketName [21:44:16]name=ofd_packets/00057858 [21:44:16]NVStorageSaveData ofd_packets/00057858 [21:44:16]File name is /storage/ofd_packets/00057858 [21:44:16]Write 301 bytes [21:44:16]NVStorageSaveData done [21:44:16]OFDSenderStorePacket done [21:44:16]KKMCreateOFDPacket done [21:44:16]NVStorageSaveData kkm_last_timestamp [21:44:16]File name is /storage/kkm_last_timestamp [21:44:16]Write 4 bytes [21:44:16]NVStorageSaveData done [21:44:16]ExternCall_PrintAddStr [21:44:16]wPrintStart [21:44:16]Write to MH i2c: 01 00 00 99 02 9B [21:44:16]Write i2c OK [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: 01 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: 01 07 00 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: 01 07 00 99 02 00 00 00 00 00 FF 0F B0 [21:44:16]RasterBufferAndPrint [21:44:16]line Счет N : (1)543198 [21:44:16]line ИНН: 02508201610067 [21:44:16]line Контрольно-Кассовый Чек [21:44:16]OFD Sender: Processing packet 57858 [packets to send 50, broken 49] [21:44:16]line ПРОДАЖА [21:44:16]ProducePacketName [21:44:16]line ТРК (МРК, ГНК) : 22 [21:44:16]name=ofd_packets/00057858 [21:44:16]line Товар: 2710124130 [21:44:16]OFD Sender: To server: pG, [21:44:16]line Аи-92-К-5 [21:44:16]CommunicateWithHost lk.salyk.kg:30040 [21:44:16]line 3.020 * 66.40 [21:44:16]ConnectInit lk.salyk.kg [21:44:16]line = 200.53 [21:44:16]line НДС 12% НСП 1% [21:44:16]line > о реализуемом товаре [21:44:16]line ОКРУГЛЕНИЕ: -0.53 [21:44:16]line ИТОГО: 200.00 [21:44:16]line Внесено: 200.00 [21:44:16]line СДАЧА: 0.00 [21:44:16]line НСП 1% : 1.77 [21:44:16]line НДС 12% : 21.29 [21:44:16]line Наличными: 200.00 [21:44:16]line Безнал.: 0.00 [21:44:16]line Место: АЗС № 117 "Партнер Нефть" [21:44:16]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [21:44:16]line СНО: Общий режим [21:44:16]line Чек 685 02.06.2024 21:44 [21:44:16]line Смена: 69 ФФД: 1.0 [21:44:16]line ЗНМ: 0300000048 [21:44:16]line РНМ: 0000000000151680 [21:44:16]line Версия ККМ: v1.0 [21:44:16]line ФМ: 0000000000959414 [21:44:16]line ФД: 57858 [21:44:16]line ФПД: 165522312089642 [21:44:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214412&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57858&fm=165522312089642&tin=02508201610067®Number=0000000000151680&sum=20000 [21:44:16]written 0, free lines is 4095 [21:44:16]Connected sock=11 [21:44:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 97 B8 07 01 6A A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 AD 02 00 00 F4 03 04 00 AC E7 5C 66 0E 04 Write to MH i2c: 04 01 00 00 45 00 00 C4 00 02 00 C6 B9 04 01 00 01 0D 04 [21:44:17]10 Write i2c OK [21:44:17]00 MH_I2C_Read... [21:44:17]30 30 30 30 30 30 30 30 Read from MH i2c: 01 30 [21:44:17]30 MH_I2C_Read... [21:44:17]31 Read from MH i2c: 35 01 31 07 36 38 30 11 04 10 00 30 00 30 [21:44:17]30 MH_I2C_Read... [21:44:17]30 30 30 30 30 30 30 39 Read from MH i2c: 35 01 39 07 34 31 34 10 04 04 00 02 00 C4 E2 02 00 00 00 35 04 06 00 96 8A 00 AA 00 9D 00 50 00 2A 23 94 0D 78 FD 99 6B F5 12 75 12 [21:44:17] [21:44:17]RasterBufferAndPrint [21:44:17]line [21:44:17]line [21:44:17]line [21:44:17]line [21:44:17]line [21:44:17]written 0, free lines is 3554 [21:44:17]MH_Cut [21:44:17]Write to MH i2c: D1 01 00 CB 02 01 9F [21:44:17]Write i2c OK [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: D1 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: D1 01 00 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: D1 01 00 CB 02 00 9E [21:44:17]Write to MH i2c: 01 00 00 CC 02 CE [21:44:17]Write i2c OK [21:44:17]MH_I2C_Read... [21:44:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 48 86 47 00 CF BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 02 E2 00 00 F4 03 04 00 7F 92 5C 66 B6 04 01 00 00 D7 9E 00 55 E6 F3 AB 51 [21:44:17]CommunicateWithHost err = 0 [21:44:17]CheckOFDResponse [21:44:17]1017 (14) - 77093643461234 [21:44:17]1041 (16) - 0000000000959414 [21:44:17]1040 (4) - 57858 [21:44:17]1012 (4) - 02.06.2024 15:40 [21:44:17]1206 (1) - 0 [21:44:17]OFD Sender: Remove packet 57858 [21:44:17]ProducePacketName [21:44:17]name=ofd_packets/00057858 [21:44:17]NVStorageDeleteData [21:44:18]*** Cut start [21:44:18]*** Partial cut [21:44:18]*** CUTSNS_PIN = 1 [21:44:18]*** CUTSNS_PIN = 0 [21:44:18]OFD Sender: No OFD packet to send [21:44:18]*** Brake cut motor [21:44:18]Read from MH i2c: 01 [21:44:18]MH_I2C_Read... [21:44:18]*** Stop cut motor [21:44:18]*** Cut end [21:44:18]Read from MH i2c: 01 07 00 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: 01 07 00 CC 02 00 00 00 00 00 FF 0F E3 [21:44:18]process_action close_receipt done [21:44:18]requested_data is exist [21:44:18]produce_requested_data [21:44:18]requested_item fm.sn is exist - process it [21:44:18]wFMCommunicate request_size=4 [21:44:18]MH_SAM_APDU [21:44:18]CAPDU: 80 11 00 00 [21:44:18]Write to MH i2c: E2 08 00 CD 02 80 11 00 00 00 00 00 00 49 [21:44:18]Write i2c OK [21:44:18]MH_I2C_Read... [21:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:18]Read from MH i2c: E2 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: E2 17 00 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: E2 17 00 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 9C [21:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:44:18]wFMCommunicate OK [21:44:18]requested_item fd.num is exist - process it [21:44:18]SAM_PROTO_GetFieldsCounters [21:44:18]wFMCommunicate request_size=4 [21:44:18]MH_SAM_APDU [21:44:18]CAPDU: 80 13 00 00 [21:44:18]Write to MH i2c: E2 08 00 CE 02 80 13 00 00 00 00 00 00 4C [21:44:18]Write i2c OK [21:44:19]MH_I2C_Read... [21:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:19]Read from MH i2c: E2 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: E2 62 00 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: E2 62 00 CE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 02 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 AD 02 00 00 5E 04 04 00 AD 02 00 00 57 04 04 00 AE 02 00 00 19 04 04 00 00 00 00 00 90 00 9F [21:44:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 02 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 AD 02 00 00 5E 04 04 00 AD 02 00 00 57 04 04 00 AE 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:44:19]wFMCommunicate OK [21:44:19]SAM_PROTO_GetFieldsCounters done [21:44:19]requested_item shift.num is exist - process it [21:44:19]requested_item shift.opened is exist - process it [21:44:19]req_shift_opened [21:44:19]FM_GetShiftState [21:44:19]SAM_PROTO_GetShiftState [21:44:19]wFMCommunicate request_size=4 [21:44:19]MH_SAM_APDU [21:44:19]CAPDU: 80 13 01 00 [21:44:19]Write to MH i2c: E2 08 00 CF 02 80 13 01 00 00 00 00 00 4E [21:44:19]Write i2c OK [21:44:19]MH_I2C_Read... [21:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:19]Read from MH i2c: E2 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: E2 0E 00 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: E2 0E 00 CF 02 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 21 [21:44:19]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:44:19]wFMCommunicate OK [21:44:19]SAM_PROTO_GetShiftState done [21:44:19]FM_GetShiftState done [21:44:19]req_shift_opened done [21:44:19]requested_item shift.open_date is exist - process it [21:44:19]req_shift_open_date [21:44:19]req_shift_open_date done [21:44:19]produce_requested_data done [21:44:19]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57858,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [21:44:19]process_action_free close_receipt [21:44:19]json_value_free [21:44:19]json_value_free done [21:44:19]process_json_proto returns [21:44:19]Send response to host [21:44:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57858,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [21:44:19]free response buf [21:44:19]execute_script done [21:44:19]execute_script returns [21:44:19]free content buf [21:44:19]Sock 10.Close socket [21:44:19]Sock 10.Thread stoped [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:06]ConnectInit Can't connect to host [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:04]accept exits with 9 [21:46:04]New connection [21:46:04]New thread 3066735972 created [21:46:04]Thread 3066592612 joined [21:46:04]Waiting for new connection... [21:46:04] Sock 9.Parse request [21:46:04]Sock 9.Check first char [21:46:04]Sock 9.First char is OK [21:46:04]request: POST /json_proto HTTP/1.0 [21:46:04]Method: POST [21:46:04]URL: /json_proto [21:46:04]Method is POST - this is cgi request [21:46:04]url: /json_proto [21:46:04]query_string will be loaded in cgi processing [21:46:04]execute_cgi json_proto POST (null) [21:46:04]execute_cgi path=json_proto method=POST [21:46:04]POST find Content-Length [21:46:04]Host: 172.17.60.68:8080 [21:46:04]Content-Length: 677 [21:46:04]Content-Type: application/json [21:46:04] [21:46:04]POST finish read [21:46:04]Found Content-Length = 677 [21:46:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543199", "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" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:04]execute_script... [21:46: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)543199", "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" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:04]POST & json_proto [21:46:04]process_json_proto [21:46:04]json parsed OK: [21:46:04]protocol is kg_v1.0 [21:46:04]action value=close_receipt [21:46:04]process_action close_receipt [21:46:04]cmd_close_receipt [21:46:04]MH_GetDate [21:46:04]Write to MH i2c: F0 00 00 D0 02 C1 [21:46:04]Write i2c OK [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: F0 [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: F0 09 00 [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: F0 09 00 D0 02 00 1D E8 5C 66 8D A7 02 66 2D [21:46:04]GetLastDocTimeStamp 1717364652 [21:46:04]current date 1717364765 [21:46:04]FM_GetShiftState [21:46:04]SAM_PROTO_GetShiftState [21:46:04]wFMCommunicate request_size=4 [21:46:04]MH_SAM_APDU [21:46:04]CAPDU: 80 13 01 00 [21:46:04]Write to MH i2c: E2 08 00 D1 02 80 13 01 00 00 00 00 00 50 [21:46:04]Write i2c OK [21:46:04]MH_I2C_Read... [21:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:04]Read from MH i2c: E2 [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: E2 0E 00 [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: E2 0E 00 D1 02 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 23 [21:46:04]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:46:04]wFMCommunicate OK [21:46:04]SAM_PROTO_GetShiftState done [21:46:04]FM_GetShiftState done [21:46:04]opened in 1717288520 [21:46:04]opened+sec_in_day 1717374920 [21:46:04]quantity*price = 40039 [21:46:04]sum+1 = 40040 [21:46:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 686 02.06.2024 21:46 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57859 ФПД: 219908044856587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214605&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57859&fm=219908044856587&tin=02508201610067®Number=0000000000151680&sum=40000 [21:46:07]StoreToDocumentArchive [21:46:07]shift 69 fd 57859 [21:46:07]save to /storage/0069/doc_00057859 [21:46:07]save last doc name /storage/0069/doc_00057859 to /storage/kkm_last_doc_name [21:46:07]save OK [21:46:07]Clear old archive folders... [21:46:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:46:07]tlvbuf is 01A6EBA0 [21:46:07]SAM_PROTO_ClearQueue [21:46:07]wFMCommunicate request_size=4 [21:46:07]MH_SAM_APDU [21:46:07]CAPDU: 80 09 00 00 [21:46:07]Write to MH i2c: E2 08 00 DE 02 80 09 00 00 00 00 00 00 52 [21:46:07]Write i2c OK [21:46:07]MH_I2C_Read... [21:46:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:46:07]Read from MH i2c: E2 [21:46:07]MH_I2C_Read... [21:46:07]Read from MH i2c: E2 03 00 [21:46:07]MH_I2C_Read... [21:46:07]Read from MH i2c: E2 03 00 DE 02 00 90 00 54 [21:46:07]RAPDU: 90 00 [21:46:07]wFMCommunicate OK [21:46:07]SAM_PROTO_ClearQueue done [21:46:07]KKMCreateOFDPacket [21:46:07]OFDProtocolAddRootSTLVToBuf [21:46:07]FM_MakeSignedData [21:46:07]FM_MakeSignedData [21:46:07]SAM_PROTO_SignData [21:46:07]wFMCommunicate request_size=4 [21:46:07]MH_SAM_APDU [21:46:07]CAPDU: 80 0D 01 02 [21:46:07]Write to MH i2c: E2 08 00 DF 02 80 0D 01 02 00 00 00 00 5A [21:46:07]Write i2c OK [21:46:07]MH_I2C_Read... [21:46:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:46:07]Read from MH i2c: E2 [21:46:07]MH_I2C_Read... [21:46:07]Read from MH i2c: E2 03 00 [21:46:07]MH_I2C_Read... [21:46:07]Read from MH i2c: E2 03 00 DF 02 00 90 00 55 [21:46:07]RAPDU: 90 00 [21:46:07]wFMCommunicate OK [21:46:07]wFMCommunicate request_size=255 [21:46:07]MH_SAM_APDU [21:46:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 02 00 00 F4 03 04 00 1D E8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 03 E2 00 00 35 04 06 00 C8 [21:46:08]Write to MH i2c: E2 02 01 E0 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 02 00 00 F4 03 04 00 1D E8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 03 E2 00 00 35 04 06 00 C8 00 00 41 [21:46:08]Write i2c OK [21:46:08]MH_I2C_Read... [21:46:08]OFD Sender: No OFD packet to send [21:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:08]Read from MH i2c: E2 [21:46:08]MH_I2C_Read... [21:46:08]Read from MH i2c: E2 03 00 [21:46:08]MH_I2C_Read... [21:46:08]Read from MH i2c: E2 03 00 E0 02 00 90 00 56 [21:46:08]RAPDU: 90 00 [21:46:08]wFMCommunicate OK [21:46:08]wFMCommunicate request_size=10 [21:46:08]MH_SAM_APDU [21:46:08]CAPDU: 80 0D 02 02 05 01 54 E5 9D 0B [21:46:08]Write to MH i2c: E2 0D 00 E1 02 80 0D 02 02 05 00 01 54 E5 9D 0B 00 00 49 [21:46:08]Write i2c OK [21:46:08]MH_I2C_Read... [21:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:08]Read from MH i2c: E2 [21:46:08]MH_I2C_Read... [21:46:08]Read from MH i2c: E2 03 00 [21:46:08]MH_I2C_Read... [21:46:08]Read from MH i2c: E2 03 00 E1 02 00 90 00 57 [21:46:08]RAPDU: 90 00 [21:46:08]wFMCommunicate OK [21:46:08]wFMCommunicate request_size=4 [21:46:08]MH_SAM_APDU [21:46:08]CAPDU: 80 0D 03 02 [21:46:08]Write to MH i2c: E2 08 00 E2 02 80 0D 03 02 00 00 00 00 5F [21:46:08]Write i2c OK [21:46:08]MH_I2C_Read... [21:46:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:09]Read from MH i2c: E2 [21:46:09]MH_I2C_Read... [21:46:09]Read from MH i2c: E2 0B 00 [21:46:09]MH_I2C_Read... [21:46:09]Read from MH i2c: E2 0B 00 E2 02 00 3E DC EA D6 BB 5D 72 FF 90 00 C3 [21:46:09]RAPDU: 3E DC EA D6 BB 5D 72 FF 90 00 [21:46:09]wFMCommunicate OK [21:46:09]SAM_PROTO_SignData done [21:46:09]FM_MakeSignedData done [21:46:09]CreateOFDProtocolMessage [21:46:09]wFMCommunicate request_size=4 [21:46:09]MH_SAM_APDU [21:46:09]CAPDU: 80 11 00 00 [21:46:09]Write to MH i2c: E2 08 00 E3 02 80 11 00 00 00 00 00 00 5F [21:46:09]Write i2c OK [21:46:09]MH_I2C_Read... [21:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:09]Read from MH i2c: E2 [21:46:09]MH_I2C_Read... [21:46:09]Read from MH i2c: E2 17 00 [21:46:09]MH_I2C_Read... [21:46:09]Read from MH i2c: E2 17 00 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 B2 [21:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:46:09]wFMCommunicate OK [21:46:09]CreateOFDProtocolMessage done [21:46:09]OFDSenderStorePacket 57859 [21:46:09]StoreOFDPacket docnum=57859 [21:46:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 18 49 07 01 27 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 02 00 00 F4 03 04 00 1D E8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 03 E2 00 00 35 04 06 00 C8 01 54 E5 9D 0B 3E DC EA D6 BB 5D 72 FF [21:46:09]CheckFolder [21:46:09]dirname=/storage/ofd_packets [21:46:09]CheckFolder done [21:46:09]ProducePacketName [21:46:09]name=ofd_packets/00057859 [21:46:09]NVStorageSaveData ofd_packets/00057859 [21:46:09]File name is /storage/ofd_packets/00057859 [21:46:09]Write 301 bytes [21:46:09]NVStorageSaveData done [21:46:09]OFDSenderStorePacket done [21:46:09]KKMCreateOFDPacket done [21:46:09]NVStorageSaveData kkm_last_timestamp [21:46:09]File name is /storage/kkm_last_timestamp [21:46:09]Write 4 bytes [21:46:09]NVStorageSaveData done [21:46:09]ExternCall_PrintAddStr [21:46:09]wPrintStart [21:46:09]Write to MH i2c: 01 00 00 E4 02 E6 [21:46:09]Write i2c OK [21:46:09]MH_I2C_Read... [21:46:09]Read from MH i2c: 01 [21:46:09]MH_I2C_Read... [21:46:09]OFD Sender: Processing packet 57859 [packets to send 50, broken 49] [21:46:09]ProducePacketName [21:46:09]name=ofd_packets/00057859 [21:46:09]OFD Sender: To server: pG, [21:46:09]CommunicateWithHost lk.salyk.kg:30040 [21:46:09]ConnectInit lk.salyk.kg [21:46:09]Read from MH i2c: 01 07 00 [21:46:09]MH_I2C_Read... [21:46:09]Read from MH i2c: 01 07 00 E4 02 00 00 00 00 00 FF 0F FB [21:46:09]RasterBufferAndPrint [21:46:09]line Счет N : (1)543199 [21:46:09]line ИНН: 02508201610067 [21:46:09]line Контрольно-Кассовый Чек [21:46:09]line ПРОДАЖА [21:46:09]line ТРК (МРК, ГНК) : 12 [21:46:09]line Товар: 2710124130 [21:46:09]line Аи-92-К-5 [21:46:09]line 6.030 * 66.40 [21:46:09]line = 400.39 [21:46:09]line НДС 12% НСП 1% [21:46:09]line > о реализуемом товаре [21:46:09]line ОКРУГЛЕНИЕ: -0.39 [21:46:09]line ИТОГО: 400.00 [21:46:09]line Внесено: 400.00 [21:46:09]line СДАЧА: 0.00 [21:46:09]line НСП 1% : 3.54 [21:46:09]line НДС 12% : 42.52 [21:46:09]line Наличными: 400.00 [21:46:09]line Безнал.: 0.00 [21:46:09]line Место: АЗС № 117 "Партнер Нефть" [21:46:09]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [21:46:09]line СНО: Общий режим [21:46:09]line Чек 686 02.06.2024 21:46 [21:46:09]line Смена: 69 ФФД: 1.0 [21:46:09]line ЗНМ: 0300000048 [21:46:09]line РНМ: 0000000000151680 [21:46:09]line Версия ККМ: v1.0 [21:46:09]line ФМ: 0000000000959414 [21:46:09]line ФД: 57859 [21:46:09]line ФПД: 219908044856587 [21:46:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214605&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57859&fm=219908044856587&tin=02508201610067®Number=0000000000151680&sum=40000 [21:46:09]Connected sock=11 [21:46:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 18 49 07 01 27 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D written 0, free lines is 4095 [21:46:09]35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 02 00 00 F4 03 04 00 1D E8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 03 E2 00 00 35 04 06 00 C8 01 54 E5 9D 0B 3E DC EA D6 BB 5D 72 FF [21:46:10]Write to MH i2c: 01 00 00 0F 03 12 [21:46:10]Write i2c OK [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: 01 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: 01 07 00 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: 01 07 00 0F 03 00 00 00 00 00 B7 0C DC [21:46:10]RasterBufferAndPrint [21:46:10]line [21:46:10]line [21:46:10]line [21:46:10]line [21:46:10]line [21:46:10]written 0, free lines is 3335 [21:46:10]MH_Cut [21:46:10]Write to MH i2c: D1 01 00 16 03 01 EB [21:46:10]Write i2c OK [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: D1 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: D1 01 00 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: D1 01 00 16 03 00 EA [21:46:10]Write to MH i2c: 01 00 00 17 03 1A [21:46:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 1C 50 47 00 BA 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 Write i2c OK [21:46:10]30 MH_I2C_Read... [21:46:10]39 35 39 34 31 34 10 04 04 00 03 E2 00 00 F4 03 04 00 F0 92 5C 66 B6 04 01 00 00 C8 59 D3 F4 F2 0E F0 50 [21:46:10]CommunicateWithHost err = 0 [21:46:10]CheckOFDResponse [21:46:10]1017 (14) - 77093643461234 [21:46:10]1041 (16) - 0000000000959414 [21:46:10]1040 (4) - 57859 [21:46:10]1012 (4) - 02.06.2024 15:42 [21:46:10]1206 (1) - 0 [21:46:10]OFD Sender: Remove packet 57859 [21:46:10]ProducePacketName [21:46:10]name=ofd_packets/00057859 [21:46:10]NVStorageDeleteData [21:46:11]*** Cut start [21:46:11]*** Partial cut [21:46:11]*** CUTSNS_PIN = 1 [21:46:11]*** CUTSNS_PIN = 0 [21:46:11]OFD Sender: No OFD packet to send [21:46:11]*** Brake cut motor [21:46:11]Read from MH i2c: 01 [21:46:11]MH_I2C_Read... [21:46:11]*** Stop cut motor [21:46:11]*** Cut end [21:46:11]Read from MH i2c: 01 07 00 [21:46:11]MH_I2C_Read... [21:46:11]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 FF 0F 2F [21:46:11]process_action close_receipt done [21:46:11]requested_data is exist [21:46:11]produce_requested_data [21:46:11]requested_item fm.sn is exist - process it [21:46:11]wFMCommunicate request_size=4 [21:46:11]MH_SAM_APDU [21:46:11]CAPDU: 80 11 00 00 [21:46:11]Write to MH i2c: E2 08 00 18 03 80 11 00 00 00 00 00 00 95 [21:46:11]Write i2c OK [21:46:11]MH_I2C_Read... [21:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:11]Read from MH i2c: E2 [21:46:11]MH_I2C_Read... [21:46:11]Read from MH i2c: E2 17 00 [21:46:11]MH_I2C_Read... [21:46:11]Read from MH i2c: E2 17 00 18 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 E8 [21:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:46:12]wFMCommunicate OK [21:46:12]requested_item fd.num is exist - process it [21:46:12]SAM_PROTO_GetFieldsCounters [21:46:12]wFMCommunicate request_size=4 [21:46:12]MH_SAM_APDU [21:46:12]CAPDU: 80 13 00 00 [21:46:12]Write to MH i2c: E2 08 00 19 03 80 13 00 00 00 00 00 00 98 [21:46:12]Write i2c OK [21:46:12]MH_I2C_Read... [21:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:12]Read from MH i2c: E2 [21:46:12]MH_I2C_Read... [21:46:12]Read from MH i2c: E2 62 00 [21:46:12]MH_I2C_Read... [21:46:12]Read from MH i2c: E2 62 00 19 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 03 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 AE 02 00 00 5E 04 04 00 AE 02 00 00 57 04 04 00 AF 02 00 00 19 04 04 00 00 00 00 00 90 00 EF [21:46:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 03 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 AE 02 00 00 5E 04 04 00 AE 02 00 00 57 04 04 00 AF 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:46:12]wFMCommunicate OK [21:46:12]SAM_PROTO_GetFieldsCounters done [21:46:12]requested_item shift.num is exist - process it [21:46:12]requested_item shift.opened is exist - process it [21:46:12]req_shift_opened [21:46:12]FM_GetShiftState [21:46:12]SAM_PROTO_GetShiftState [21:46:12]wFMCommunicate request_size=4 [21:46:12]MH_SAM_APDU [21:46:12]CAPDU: 80 13 01 00 [21:46:12]Write to MH i2c: E2 08 00 1A 03 80 13 01 00 00 00 00 00 9A [21:46:12]Write i2c OK [21:46:12]MH_I2C_Read... [21:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:12]Read from MH i2c: E2 [21:46:12]MH_I2C_Read... [21:46:12]Read from MH i2c: E2 0E 00 [21:46:12]MH_I2C_Read... [21:46:12]Read from MH i2c: E2 0E 00 1A 03 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 6D [21:46:12]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:46:12]wFMCommunicate OK [21:46:12]SAM_PROTO_GetShiftState done [21:46:12]FM_GetShiftState done [21:46:12]req_shift_opened done [21:46:12]requested_item shift.open_date is exist - process it [21:46:12]req_shift_open_date [21:46:12]req_shift_open_date done [21:46:12]produce_requested_data done [21:46:12]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57859,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [21:46:12]process_action_free close_receipt [21:46:12]json_value_free [21:46:12]json_value_free done [21:46:12]process_json_proto returns [21:46:12]Send response to host [21:46:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57859,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [21:46:12]free response buf [21:46:12]execute_script done [21:46:12]execute_script returns [21:46:12]free content buf [21:46:12]Sock 9.Close socket [21:46:12]Sock 9.Thread stoped [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:24]ConnectInit Can't connect to host [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:30]accept exits with 10 [21:48:30]New connection [21:48:30]New thread 3066592612 created [21:48:30]Thread 3066735972 joined [21:48:30]Waiting for new connection... [21:48:30] Sock 10.Parse request [21:48:30]Sock 10.Check first char [21:48:30]Sock 10.First char is OK [21:48:30]request: POST /json_proto HTTP/1.0 [21:48:30]Method: POST [21:48:30]URL: /json_proto [21:48:30]Method is POST - this is cgi request [21:48:30]url: /json_proto [21:48:30]query_string will be loaded in cgi processing [21:48:30]execute_cgi json_proto POST (null) [21:48:30]execute_cgi path=json_proto method=POST [21:48:30]POST find Content-Length [21:48:30]Host: 172.17.60.68:8080 [21:48:30]Content-Length: 803 [21:48:30]Content-Type: application/json [21:48:30] [21:48:30]POST finish read [21:48:30]Found Content-Length = 803 [21:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543200", "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" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:30]execute_script... [21:48: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)543200", "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" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:30]POST & json_proto [21:48:30]process_json_proto [21:48:30]json parsed OK: [21:48:30]protocol is kg_v1.0 [21:48:30]action value=close_receipt [21:48:30]process_action close_receipt [21:48:30]cmd_close_receipt [21:48:30]MH_GetDate [21:48:30]Write to MH i2c: F0 00 00 1B 03 0D [21:48:30]Write i2c OK [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: F0 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: F0 09 00 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: F0 09 00 1B 03 00 AE E8 5C 66 8D A7 02 66 0A [21:48:30]GetLastDocTimeStamp 1717364765 [21:48:30]current date 1717364910 [21:48:30]FM_GetShiftState [21:48:30]SAM_PROTO_GetShiftState [21:48:30]wFMCommunicate request_size=4 [21:48:30]MH_SAM_APDU [21:48:30]CAPDU: 80 13 01 00 [21:48:30]Write to MH i2c: E2 08 00 1C 03 80 13 01 00 00 00 00 00 9C [21:48:30]Write i2c OK [21:48:30]MH_I2C_Read... [21:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:30]Read from MH i2c: E2 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 0E 00 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 0E 00 1C 03 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 6F [21:48:30]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:48:30]wFMCommunicate OK [21:48:30]SAM_PROTO_GetShiftState done [21:48:30]FM_GetShiftState done [21:48:30]opened in 1717288520 [21:48:30]opened+sec_in_day 1717374920 [21:48:30]quantity*price = 120051 [21:48:30]sum+1 = 120052 [21:48:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.51 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 0.00 Безнал.: 1200.51 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 687 02.06.2024 21:48 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57860 ФПД: 82169722018292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214830&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57860&fm=82169722018292&tin=02508201610067®Number=0000000000151680&sum=120051 [21:48:32]StoreToDocumentArchive [21:48:32]shift 69 fd 57860 [21:48:32]save to /storage/0069/doc_00057860 [21:48:32]save last doc name /storage/0069/doc_00057860 to /storage/kkm_last_doc_name [21:48:32]save OK [21:48:32]Clear old archive folders... [21:48:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:48:32]tlvbuf is 01A7AAF0 [21:48:32]SAM_PROTO_ClearQueue [21:48:32]wFMCommunicate request_size=4 [21:48:32]MH_SAM_APDU [21:48:32]CAPDU: 80 09 00 00 [21:48:32]Write to MH i2c: E2 08 00 29 03 80 09 00 00 00 00 00 00 9E [21:48:32]Write i2c OK [21:48:32]MH_I2C_Read... [21:48:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:32]Read from MH i2c: E2 [21:48:32]MH_I2C_Read... [21:48:32]Read from MH i2c: E2 03 00 [21:48:32]MH_I2C_Read... [21:48:32]Read from MH i2c: E2 03 00 29 03 00 90 00 A0 [21:48:32]RAPDU: 90 00 [21:48:33]wFMCommunicate OK [21:48:33]SAM_PROTO_ClearQueue done [21:48:33]KKMCreateOFDPacket [21:48:33]OFDProtocolAddRootSTLVToBuf [21:48:33]FM_MakeSignedData [21:48:33]FM_MakeSignedData [21:48:33]SAM_PROTO_SignData [21:48:33]wFMCommunicate request_size=4 [21:48:33]MH_SAM_APDU [21:48:33]CAPDU: 80 0D 01 02 [21:48:33]Write to MH i2c: E2 08 00 2A 03 80 0D 01 02 00 00 00 00 A6 [21:48:33]Write i2c OK [21:48:33]MH_I2C_Read... [21:48:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:33]Read from MH i2c: E2 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 03 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 03 00 2A 03 00 90 00 A1 [21:48:33]RAPDU: 90 00 [21:48:33]wFMCommunicate OK [21:48:33]wFMCommunicate request_size=255 [21:48:33]MH_SAM_APDU [21:48:33]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 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 02 00 00 F4 03 04 00 AE E8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 04 E2 00 00 35 04 06 00 4A [21:48:33]Write to MH i2c: E2 02 01 2B 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 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 02 00 00 F4 03 04 00 AE E8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 04 E2 00 00 35 04 06 00 4A 00 00 99 [21:48:34]Write i2c OK [21:48:34]MH_I2C_Read... [21:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:34]Read from MH i2c: E2 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: E2 03 00 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: E2 03 00 2B 03 00 90 00 A2 [21:48:34]RAPDU: 90 00 [21:48:34]wFMCommunicate OK [21:48:34]wFMCommunicate request_size=10 [21:48:34]MH_SAM_APDU [21:48:34]CAPDU: 80 0D 02 02 05 BB A1 17 99 F4 [21:48:34]Write to MH i2c: E2 0D 00 2C 03 80 0D 02 02 05 00 BB A1 17 99 F4 00 00 B3 [21:48:34]Write i2c OK [21:48:34]MH_I2C_Read... [21:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:34]Read from MH i2c: E2 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: E2 03 00 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: E2 03 00 2C 03 00 90 00 A3 [21:48:34]RAPDU: 90 00 [21:48:34]wFMCommunicate OK [21:48:34]wFMCommunicate request_size=4 [21:48:34]MH_SAM_APDU [21:48:34]CAPDU: 80 0D 03 02 [21:48:34]Write to MH i2c: E2 08 00 2D 03 80 0D 03 02 00 00 00 00 AB [21:48:34]Write i2c OK [21:48:34]MH_I2C_Read... [21:48:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:34]Read from MH i2c: E2 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: E2 0B 00 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: E2 0B 00 2D 03 00 17 BE 14 FB 8B C7 FC E3 90 00 C1 [21:48:34]RAPDU: 17 BE 14 FB 8B C7 FC E3 90 00 [21:48:34]wFMCommunicate OK [21:48:34]SAM_PROTO_SignData done [21:48:34]FM_MakeSignedData done [21:48:34]CreateOFDProtocolMessage [21:48:34]wFMCommunicate request_size=4 [21:48:34]MH_SAM_APDU [21:48:34]CAPDU: 80 11 00 00 [21:48:34]Write to MH i2c: E2 08 00 2E 03 80 11 00 00 00 00 00 00 AB [21:48:34]Write i2c OK [21:48:34]MH_I2C_Read... [21:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:34]Read from MH i2c: E2 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: E2 17 00 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: E2 17 00 2E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 FE [21:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:48:34]wFMCommunicate OK [21:48:34]CreateOFDProtocolMessage done [21:48:34]OFDSenderStorePacket 57860 [21:48:34]StoreOFDPacket docnum=57860 [21:48:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 3B F9 07 01 0C 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 02 00 00 F4 03 04 00 AE E8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 04 E2 00 00 35 04 06 00 4A BB A1 17 99 F4 17 BE 14 FB 8B C7 FC E3 [21:48:34]CheckFolder [21:48:34]dirname=/storage/ofd_packets [21:48:34]CheckFolder done [21:48:34]ProducePacketName [21:48:34]name=ofd_packets/00057860 [21:48:34]NVStorageSaveData ofd_packets/00057860 [21:48:34]File name is /storage/ofd_packets/00057860 [21:48:34]Write 301 bytes [21:48:34]NVStorageSaveData done [21:48:34]OFDSenderStorePacket done [21:48:34]KKMCreateOFDPacket done [21:48:34]NVStorageSaveData kkm_last_timestamp [21:48:34]File name is /storage/kkm_last_timestamp [21:48:34]Write 4 bytes [21:48:34]NVStorageSaveData done [21:48:34]ExternCall_PrintAddStr [21:48:34]wPrintStart [21:48:34]Write to MH i2c: 01 00 00 2F 03 32 [21:48:34]Write i2c OK [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: 01 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: 01 07 00 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: 01 07 00 2F 03 00 00 00 00 00 FF 0F 47 [21:48:34]RasterBufferAndPrint [21:48:34]line Счет N : (1)543200 [21:48:34]line ИНН: 02508201610067 [21:48:34]line Контрольно-Кассовый Чек [21:48:34]line ПРОДАЖА [21:48:34]line ТРК (МРК, ГНК) : 22 [21:48:34]line Товар: 2710124130 [21:48:34]line Аи-92-К-5 [21:48:34]line 18.080 * 66.40 [21:48:34]line = 1200.51 [21:48:34]line НДС 12% НСП 1% [21:48:34]line > о реализуемом товаре [21:48:34]line ИТОГО: 1200.51 [21:48:34]line НСП 1% : 10.62 [21:48:34]line НДС 12% : 127.49 [21:48:34]OFD Sender: Processing packet 57860 [packets to send 50, broken 49] [21:48:34]line Наличными: 0.00 [21:48:34]ProducePacketName [21:48:34]line Безнал.: 1200.51 [21:48:34]name=ofd_packets/00057860 [21:48:35]line Место: АЗС № 117 "Партнер Нефть" [21:48:35]OFD Sender: To server: pG, [21:48:35]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [21:48:35]CommunicateWithHost lk.salyk.kg:30040 [21:48:35]line СНО: Общий режим [21:48:35]ConnectInit lk.salyk.kg [21:48:35]line Чек 687 02.06.2024 21:48 [21:48:35]line Смена: 69 ФФД: 1.0 [21:48:35]line ЗНМ: 0300000048 [21:48:35]line РНМ: 0000000000151680 [21:48:35]line Версия ККМ: v1.0 [21:48:35]line Платежная система: O! деньги [21:48:35]line ФМ: 0000000000959414 [21:48:35]line ФД: 57860 [21:48:35]line ФПД: 82169722018292 [21:48:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214830&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57860&fm=82169722018292&tin=02508201610067®Number=0000000000151680&sum=120051 [21:48:35]written 0, free lines is 4095 [21:48:35]Connected sock=11 [21:48:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 3B F9 07 01 0C 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 02 00 00 F4 03 04 00 AE E8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 Write to MH i2c: 10 01 00 00 30 30 30 30 30 30 30 00 30 59 30 03 30 39 35 39 34 31 34 5C 10 [21:48:35]04 Write i2c OK [21:48:35]04 MH_I2C_Read... [21:48:35]00 04 E2 00 Read from MH i2c: 00 01 35 [21:48:35]04 06 00 4A BB A1 17 MH_I2C_Read... [21:48:35]99 F4 17 BE 14 Read from MH i2c: FB 01 8B 07 C7 FC E3 [21:48:35]00 [21:48:35]MH_I2C_Read... [21:48:35]Read from MH i2c: 01 07 00 59 03 00 00 00 00 00 20 0E 91 [21:48:35]RasterBufferAndPrint [21:48:35]line [21:48:35]line [21:48:35]line [21:48:35]line [21:48:35]line [21:48:35]written 0, free lines is 3733 [21:48:35]MH_Cut [21:48:35]Write to MH i2c: D1 01 00 60 03 01 35 [21:48:35]Write i2c OK [21:48:35]MH_I2C_Read... [21:48:35]Read from MH i2c: D1 [21:48:35]MH_I2C_Read... [21:48:35]Read from MH i2c: D1 01 00 [21:48:35]MH_I2C_Read... [21:48:35]Read from MH i2c: D1 01 00 60 03 00 34 [21:48:35]Write to MH i2c: 01 00 00 61 03 64 [21:48:35]Write i2c OK [21:48:36]MH_I2C_Read... [21:48:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 BB 97 47 00 5C 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 04 E2 00 00 F4 03 04 00 82 93 5C 66 B6 04 01 00 00 3C FA 8A 8F E7 B1 80 0E [21:48:36]CommunicateWithHost err = 0 [21:48:36]CheckOFDResponse [21:48:36]1017 (14) - 77093643461234 [21:48:36]1041 (16) - 0000000000959414 [21:48:36]1040 (4) - 57860 [21:48:36]1012 (4) - 02.06.2024 15:45 [21:48:36]1206 (1) - 0 [21:48:36]OFD Sender: Remove packet 57860 [21:48:36]ProducePacketName [21:48:36]name=ofd_packets/00057860 [21:48:36]NVStorageDeleteData [21:48:36]*** Cut start [21:48:36]*** Partial cut [21:48:36]*** CUTSNS_PIN = 1 [21:48:36]*** CUTSNS_PIN = 0 [21:48:36]*** Brake cut motor [21:48:36]OFD Sender: No OFD packet to send [21:48:37]Read from MH i2c: 01 [21:48:37]MH_I2C_Read... [21:48:37]*** Stop cut motor [21:48:37]*** Cut end [21:48:37]Read from MH i2c: 01 07 00 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [21:48:37]process_action close_receipt done [21:48:37]requested_data is exist [21:48:37]produce_requested_data [21:48:37]requested_item fm.sn is exist - process it [21:48:37]wFMCommunicate request_size=4 [21:48:37]MH_SAM_APDU [21:48:37]CAPDU: 80 11 00 00 [21:48:37]Write to MH i2c: E2 08 00 62 03 80 11 00 00 00 00 00 00 DF [21:48:37]Write i2c OK [21:48:37]MH_I2C_Read... [21:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:37]Read from MH i2c: E2 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: E2 17 00 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: E2 17 00 62 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 32 [21:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:48:37]wFMCommunicate OK [21:48:37]requested_item fd.num is exist - process it [21:48:37]SAM_PROTO_GetFieldsCounters [21:48:37]wFMCommunicate request_size=4 [21:48:37]MH_SAM_APDU [21:48:37]CAPDU: 80 13 00 00 [21:48:37]Write to MH i2c: E2 08 00 63 03 80 13 00 00 00 00 00 00 E2 [21:48:37]Write i2c OK [21:48:37]MH_I2C_Read... [21:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:37]Read from MH i2c: E2 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: E2 62 00 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: E2 62 00 63 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 04 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 AF 02 00 00 5E 04 04 00 AF 02 00 00 57 04 04 00 B0 02 00 00 19 04 04 00 00 00 00 00 90 00 3D [21:48:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 04 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 AF 02 00 00 5E 04 04 00 AF 02 00 00 57 04 04 00 B0 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:37]wFMCommunicate OK [21:48:37]SAM_PROTO_GetFieldsCounters done [21:48:37]requested_item shift.num is exist - process it [21:48:37]requested_item shift.opened is exist - process it [21:48:37]req_shift_opened [21:48:37]FM_GetShiftState [21:48:37]SAM_PROTO_GetShiftState [21:48:37]wFMCommunicate request_size=4 [21:48:37]MH_SAM_APDU [21:48:37]CAPDU: 80 13 01 00 [21:48:37]Write to MH i2c: E2 08 00 64 03 80 13 01 00 00 00 00 00 E4 [21:48:37]Write i2c OK [21:48:37]MH_I2C_Read... [21:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:37]Read from MH i2c: E2 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: E2 0E 00 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: E2 0E 00 64 03 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 B7 [21:48:38]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:48:38]wFMCommunicate OK [21:48:38]SAM_PROTO_GetShiftState done [21:48:38]FM_GetShiftState done [21:48:38]req_shift_opened done [21:48:38]requested_item shift.open_date is exist - process it [21:48:38]req_shift_open_date [21:48:38]req_shift_open_date done [21:48:38]produce_requested_data done [21:48:38]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57860,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [21:48:38]process_action_free close_receipt [21:48:38]json_value_free [21:48:38]json_value_free done [21:48:38]process_json_proto returns [21:48:38]Send response to host [21:48:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57860,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [21:48:38]free response buf [21:48:38]execute_script done [21:48:38]execute_script returns [21:48:38]free content buf [21:48:38]Sock 10.Close socket [21:48:38]Sock 10.Thread stoped [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:31]OFD Sender: No OFD packet to send [21:49:36]OFD Sender: No OFD packet to send [21:49:41]OFD Sender: No OFD packet to send [21:49:42]ConnectInit Can't connect to host [21:49:46]OFD Sender: No OFD packet to send [21:49:51]OFD Sender: No OFD packet to send [21:49:56]OFD Sender: No OFD packet to send [21:50:01]OFD Sender: No OFD packet to send [21:50:06]OFD Sender: No OFD packet to send [21:50:11]OFD Sender: No OFD packet to send [21:50:16]OFD Sender: No OFD packet to send [21:50:21]OFD Sender: No OFD packet to send [21:50:26]OFD Sender: No OFD packet to send [21:50:31]OFD Sender: No OFD packet to send [21:50:36]OFD Sender: No OFD packet to send [21:50:41]accept exits with 9 [21:50:41]New connection [21:50:41]New thread 3066735972 created [21:50:41]Thread 3066592612 joined [21:50:41]Waiting for new connection... [21:50:41] Sock 9.Parse request [21:50:41]Sock 9.Check first char [21:50:41]Sock 9.First char is OK [21:50:41]request: POST /json_proto HTTP/1.0 [21:50:41]Method: POST [21:50:41]URL: /json_proto [21:50:41]Method is POST - this is cgi request [21:50:41]url: /json_proto [21:50:41]query_string will be loaded in cgi processing [21:50:41]execute_cgi json_proto POST (null) [21:50:41]execute_cgi path=json_proto method=POST [21:50:41]POST find Content-Length [21:50:41]Host: 172.17.60.68:8080 [21:50:41]Content-Length: 681 [21:50:41]Content-Type: application/json [21:50:41] [21:50:41]POST finish read [21:50:41]Found Content-Length = 681 [21:50:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 11.470, "sum" : 400.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:41]execute_script... [21:50: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)543201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 11.470, "sum" : 400.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:41]POST & json_proto [21:50:41]process_json_proto [21:50:41]json parsed OK: [21:50:41]protocol is kg_v1.0 [21:50:41]action value=close_receipt [21:50:41]process_action close_receipt [21:50:41]cmd_close_receipt [21:50:41]MH_GetDate [21:50:41]Write to MH i2c: F0 00 00 65 03 57 [21:50:41]Write i2c OK [21:50:41]MH_I2C_Read... [21:50:41]Read from MH i2c: F0 [21:50:41]MH_I2C_Read... [21:50:41]Read from MH i2c: F0 09 00 [21:50:41]MH_I2C_Read... [21:50:41]Read from MH i2c: F0 09 00 65 03 00 31 E9 5C 66 8D A7 02 66 D8 [21:50:41]GetLastDocTimeStamp 1717364910 [21:50:41]current date 1717365041 [21:50:41]FM_GetShiftState [21:50:41]SAM_PROTO_GetShiftState [21:50:41]wFMCommunicate request_size=4 [21:50:41]MH_SAM_APDU [21:50:41]CAPDU: 80 13 01 00 [21:50:41]Write to MH i2c: E2 08 00 66 03 80 13 01 00 00 00 00 00 E6 [21:50:41]Write i2c OK [21:50:41]MH_I2C_Read... [21:50:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:41]Read from MH i2c: E2 [21:50:41]MH_I2C_Read... [21:50:41]Read from MH i2c: E2 0E 00 [21:50:41]MH_I2C_Read... [21:50:41]Read from MH i2c: E2 0E 00 66 03 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 B9 [21:50:41]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:50:41]wFMCommunicate OK [21:50:41]SAM_PROTO_GetShiftState done [21:50:41]FM_GetShiftState done [21:50:41]opened in 1717288520 [21:50:41]opened+sec_in_day 1717374920 [21:50:41]quantity*price = 40030 [21:50:41]sum+1 = 40031 [21:50:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 688 02.06.2024 21:50 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57861 ФПД: 159278443393817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T215042&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57861&fm=159278443393817&tin=02508201610067®Number=0000000000151680&sum=40000 [21:50:44]StoreToDocumentArchive [21:50:44]shift 69 fd 57861 [21:50:44]save to /storage/0069/doc_00057861 [21:50:44]save last doc name /storage/0069/doc_00057861 to /storage/kkm_last_doc_name [21:50:44]save OK [21:50:44]Clear old archive folders... [21:50:44]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:50:44]tlvbuf is 018E79C0 [21:50:44]SAM_PROTO_ClearQueue [21:50:44]wFMCommunicate request_size=4 [21:50:44]MH_SAM_APDU [21:50:44]CAPDU: 80 09 00 00 [21:50:44]Write to MH i2c: E2 08 00 73 03 80 09 00 00 00 00 00 00 E8 [21:50:44]Write i2c OK [21:50:44]MH_I2C_Read... [21:50:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:44]Read from MH i2c: E2 [21:50:44]MH_I2C_Read... [21:50:44]Read from MH i2c: E2 03 00 [21:50:44]MH_I2C_Read... [21:50:44]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [21:50:44]RAPDU: 90 00 [21:50:44]wFMCommunicate OK [21:50:44]SAM_PROTO_ClearQueue done [21:50:44]KKMCreateOFDPacket [21:50:44]OFDProtocolAddRootSTLVToBuf [21:50:44]FM_MakeSignedData [21:50:44]FM_MakeSignedData [21:50:44]SAM_PROTO_SignData [21:50:44]wFMCommunicate request_size=4 [21:50:44]MH_SAM_APDU [21:50:44]CAPDU: 80 0D 01 02 [21:50:44]Write to MH i2c: E2 08 00 74 03 80 0D 01 02 00 00 00 00 F0 [21:50:44]Write i2c OK [21:50:44]MH_I2C_Read... [21:50:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:44]Read from MH i2c: E2 [21:50:44]MH_I2C_Read... [21:50:44]Read from MH i2c: E2 03 00 [21:50:44]MH_I2C_Read... [21:50:44]Read from MH i2c: E2 03 00 74 03 00 90 00 EB [21:50:44]RAPDU: 90 00 [21:50:44]wFMCommunicate OK [21:50:44]wFMCommunicate request_size=255 [21:50:44]MH_SAM_APDU [21:50:44]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CE 2C 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 5E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 02 00 00 F4 03 04 00 32 E9 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 05 E2 00 00 35 04 06 00 90 DC [21:50:44]Write to MH i2c: E2 02 01 75 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CE 2C 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 5E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 02 00 00 F4 03 04 00 32 E9 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 05 E2 00 00 35 04 06 00 90 DC 00 00 2D [21:50:45]Write i2c OK [21:50:45]MH_I2C_Read... [21:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:45]Read from MH i2c: E2 [21:50:45]MH_I2C_Read... [21:50:45]Read from MH i2c: E2 03 00 [21:50:45]MH_I2C_Read... [21:50:45]Read from MH i2c: E2 03 00 75 03 00 90 00 EC [21:50:45]RAPDU: 90 00 [21:50:45]wFMCommunicate OK [21:50:45]wFMCommunicate request_size=9 [21:50:45]MH_SAM_APDU [21:50:45]CAPDU: 80 0D 02 02 04 E7 09 F3 19 [21:50:45]Write to MH i2c: E2 0C 00 76 03 80 0D 02 02 04 00 E7 09 F3 19 00 00 F7 [21:50:45]Write i2c OK [21:50:45]MH_I2C_Read... [21:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:45]Read from MH i2c: E2 [21:50:45]MH_I2C_Read... [21:50:45]Read from MH i2c: E2 03 00 [21:50:45]MH_I2C_Read... [21:50:45]Read from MH i2c: E2 03 00 76 03 00 90 00 ED [21:50:45]RAPDU: 90 00 [21:50:45]wFMCommunicate OK [21:50:45]wFMCommunicate request_size=4 [21:50:45]MH_SAM_APDU [21:50:45]CAPDU: 80 0D 03 02 [21:50:45]Write to MH i2c: E2 08 00 77 03 80 0D 03 02 00 00 00 00 F5 [21:50:45]Write i2c OK [21:50:45]MH_I2C_Read... [21:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:45]Read from MH i2c: E2 [21:50:45]MH_I2C_Read... [21:50:45]Read from MH i2c: E2 0B 00 [21:50:45]MH_I2C_Read... [21:50:45]Read from MH i2c: E2 0B 00 77 03 00 68 AD 00 11 93 CC 9E 2E 90 00 47 [21:50:45]RAPDU: 68 AD 00 11 93 CC 9E 2E 90 00 [21:50:45]wFMCommunicate OK [21:50:45]SAM_PROTO_SignData done [21:50:45]FM_MakeSignedData done [21:50:45]CreateOFDProtocolMessage [21:50:45]wFMCommunicate request_size=4 [21:50:45]MH_SAM_APDU [21:50:45]CAPDU: 80 11 00 00 [21:50:45]Write to MH i2c: E2 08 00 78 03 80 11 00 00 00 00 00 00 F5 [21:50:45]Write i2c OK [21:50:45]MH_I2C_Read... [21:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:46]Read from MH i2c: E2 [21:50:46]MH_I2C_Read... [21:50:46]Read from MH i2c: E2 17 00 [21:50:46]MH_I2C_Read... [21:50:46]Read from MH i2c: E2 17 00 78 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 48 [21:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:50:46]wFMCommunicate OK [21:50:46]CreateOFDProtocolMessage done [21:50:46]OFDSenderStorePacket 57861 [21:50:46]StoreOFDPacket docnum=57861 [21:50:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 65 ED 06 01 F1 58 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CE 2C 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 5E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 02 00 00 F4 03 04 00 32 E9 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 05 E2 00 00 35 04 06 00 90 DC E7 09 F3 19 68 AD 00 11 93 CC 9E 2E [21:50:46]CheckFolder [21:50:46]dirname=/storage/ofd_packets [21:50:46]CheckFolder done [21:50:46]ProducePacketName [21:50:46]name=ofd_packets/00057861 [21:50:46]NVStorageSaveData ofd_packets/00057861 [21:50:46]File name is /storage/ofd_packets/00057861 [21:50:46]Write 300 bytes [21:50:46]NVStorageSaveData done [21:50:46]OFDSenderStorePacket done [21:50:46]KKMCreateOFDPacket done [21:50:46]NVStorageSaveData kkm_last_timestamp [21:50:46]File name is /storage/kkm_last_timestamp [21:50:46]Write 4 bytes [21:50:46]NVStorageSaveData done [21:50:46]ExternCall_PrintAddStr [21:50:46]wPrintStart [21:50:46]Write to MH i2c: 01 00 00 79 03 7C [21:50:46]Write i2c OK [21:50:46]MH_I2C_Read... [21:50:46]Read from MH i2c: 01 [21:50:46]MH_I2C_Read... [21:50:46]Read from MH i2c: 01 07 00 [21:50:46]MH_I2C_Read... [21:50:46]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 FF 0F 91 [21:50:46]RasterBufferAndPrint [21:50:46]line Счет N : (1)543201 [21:50:46]line ИНН: 02508201610067 [21:50:46]line Контрольно-Кассовый Чек [21:50:46]line ПРОДАЖА [21:50:46]line ТРК (МРК, ГНК) : 71 [21:50:46]line Товар: 2711190000 [21:50:46]line ГАЗ-К-5 [21:50:46]OFD Sender: Processing packet 57861 [packets to send 50, broken 49] [21:50:46]ProducePacketName [21:50:46]name=ofd_packets/00057861 [21:50:46]OFD Sender: To server: pG, [21:50:46]CommunicateWithHost lk.salyk.kg:30040 [21:50:46]ConnectInit lk.salyk.kg [21:50:46]line 11.470 * 34.90 [21:50:46]line = 400.30 [21:50:46]line НДС 12% НСП 1% [21:50:46]line > о реализуемом товаре [21:50:46]line ОКРУГЛЕНИЕ: -0.30 [21:50:46]line ИТОГО: 400.00 [21:50:46]line Внесено: 400.00 [21:50:46]line СДАЧА: 0.00 [21:50:46]line НСП 1% : 3.54 [21:50:46]line НДС 12% : 42.51 [21:50:46]line Наличными: 400.00 [21:50:46]line Безнал.: 0.00 [21:50:46]line Место: АЗС № 117 "Партнер Нефть" [21:50:46]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [21:50:46]line СНО: Общий режим [21:50:46]line Чек 688 02.06.2024 21:50 [21:50:46]line Смена: 69 ФФД: 1.0 [21:50:46]line ЗНМ: 0300000048 [21:50:46]line РНМ: 0000000000151680 [21:50:46]line Версия ККМ: v1.0 [21:50:46]line ФМ: 0000000000959414 [21:50:46]line ФД: 57861 [21:50:46]line ФПД: 159278443393817 [21:50:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T215042&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57861&fm=159278443393817&tin=02508201610067®Number=0000000000151680&sum=40000 [21:50:46]written 0, free lines is 4095 [21:50:46]Connected sock=11 [21:50:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 65 ED 06 01 F1 58 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CE 2C 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 5E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 02 00 00 F4 03 04 00 32 E9 5C 66 0E 04 04 00 45 00 00 00 Write to MH i2c: B9 01 04 00 01 00 01 0D 04 10 00 00 A4 30 03 30 30 30 30 30 30 30 A7 30 [21:50:46]30 31 35 31 36 38 30 11 Write i2c OK [21:50:46]04 MH_I2C_Read... [21:50:46]10 00 30 30 30 30 30 30 Read from MH i2c: 30 01 30 [21:50:46]30 MH_I2C_Read... [21:50:46]30 39 35 39 Read from MH i2c: 34 01 31 07 34 10 04 04 00 05 E2 00 00 [21:50:46]00 MH_I2C_Read... [21:50:46]35 Read from MH i2c: 04 01 06 07 00 00 90 A4 DC 03 00 E7 00 09 00 F3 19 68 AD 00 11 00 93 00 CC D3 9E 2E [21:50:47]0C 8D [21:50:47]RasterBufferAndPrint [21:50:47]line [21:50:47]line [21:50:47]line [21:50:47]line [21:50:47]line [21:50:47]written 0, free lines is 3517 [21:50:47]MH_Cut [21:50:47]Write to MH i2c: D1 01 00 AB 03 01 80 [21:50:47]Write i2c OK [21:50:47]MH_I2C_Read... [21:50:47]Read from MH i2c: D1 [21:50:47]MH_I2C_Read... [21:50:47]Read from MH i2c: D1 01 00 [21:50:47]MH_I2C_Read... [21:50:47]Read from MH i2c: D1 01 00 AB 03 00 7F [21:50:47]Write to MH i2c: 01 00 00 AC 03 AF [21:50:47]Write i2c OK [21:50:47]MH_I2C_Read... [21:50:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 5B 42 47 00 40 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 39 35 39 34 31 34 10 04 04 00 05 E2 00 00 F4 03 04 00 05 94 5C 66 B6 04 01 00 00 6B EA C1 FB 38 07 BC 22 [21:50:47]CommunicateWithHost err = 0 [21:50:47]CheckOFDResponse [21:50:47]1017 (14) - 77093643461234 [21:50:47]1041 (16) - 0000000000959414 [21:50:47]1040 (4) - 57861 [21:50:47]1012 (4) - 02.06.2024 15:47 [21:50:47]1206 (1) - 0 [21:50:47]OFD Sender: Remove packet 57861 [21:50:47]ProducePacketName [21:50:47]name=ofd_packets/00057861 [21:50:47]NVStorageDeleteData [21:50:47]*** Cut start [21:50:47]*** Partial cut [21:50:47]*** CUTSNS_PIN = 1 [21:50:47]*** CUTSNS_PIN = 0 [21:50:47]OFD Sender: No OFD packet to send [21:50:48]*** Brake cut motor [21:50:48]Read from MH i2c: 01 [21:50:48]MH_I2C_Read... [21:50:48]*** Stop cut motor [21:50:48]*** Cut end [21:50:48]Read from MH i2c: 01 07 00 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: 01 07 00 AC 03 00 00 00 00 00 FF 0F C4 [21:50:48]process_action close_receipt done [21:50:48]requested_data is exist [21:50:48]produce_requested_data [21:50:48]requested_item fm.sn is exist - process it [21:50:48]wFMCommunicate request_size=4 [21:50:48]MH_SAM_APDU [21:50:48]CAPDU: 80 11 00 00 [21:50:48]Write to MH i2c: E2 08 00 AD 03 80 11 00 00 00 00 00 00 2A [21:50:48]Write i2c OK [21:50:48]MH_I2C_Read... [21:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:48]Read from MH i2c: E2 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 17 00 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 17 00 AD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 7D [21:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:50:48]wFMCommunicate OK [21:50:48]requested_item fd.num is exist - process it [21:50:48]SAM_PROTO_GetFieldsCounters [21:50:48]wFMCommunicate request_size=4 [21:50:48]MH_SAM_APDU [21:50:48]CAPDU: 80 13 00 00 [21:50:48]Write to MH i2c: E2 08 00 AE 03 80 13 00 00 00 00 00 00 2D [21:50:48]Write i2c OK [21:50:48]MH_I2C_Read... [21:50:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:48]Read from MH i2c: E2 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 62 00 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 62 00 AE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 05 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B0 02 00 00 5E 04 04 00 B0 02 00 00 57 04 04 00 B1 02 00 00 19 04 04 00 00 00 00 00 90 00 8C [21:50:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 05 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B0 02 00 00 5E 04 04 00 B0 02 00 00 57 04 04 00 B1 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:49]wFMCommunicate OK [21:50:49]SAM_PROTO_GetFieldsCounters done [21:50:49]requested_item shift.num is exist - process it [21:50:49]requested_item shift.opened is exist - process it [21:50:49]req_shift_opened [21:50:49]FM_GetShiftState [21:50:49]SAM_PROTO_GetShiftState [21:50:49]wFMCommunicate request_size=4 [21:50:49]MH_SAM_APDU [21:50:49]CAPDU: 80 13 01 00 [21:50:49]Write to MH i2c: E2 08 00 AF 03 80 13 01 00 00 00 00 00 2F [21:50:49]Write i2c OK [21:50:49]MH_I2C_Read... [21:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:49]Read from MH i2c: E2 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: E2 0E 00 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: E2 0E 00 AF 03 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 02 [21:50:49]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:50:49]wFMCommunicate OK [21:50:49]SAM_PROTO_GetShiftState done [21:50:49]FM_GetShiftState done [21:50:49]req_shift_opened done [21:50:49]requested_item shift.open_date is exist - process it [21:50:49]req_shift_open_date [21:50:49]req_shift_open_date done [21:50:49]produce_requested_data done [21:50:49]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57861,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [21:50:49]process_action_free close_receipt [21:50:49]json_value_free [21:50:49]json_value_free done [21:50:49]process_json_proto returns [21:50:49]Send response to host [21:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57861,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [21:50:49]free response buf [21:50:49]execute_script done [21:50:49]execute_script returns [21:50:49]free content buf [21:50:49]Sock 9.Close socket [21:50:49]Sock 9.Thread stoped [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:54]accept exits with 10 [21:51:54]New connection [21:51:54]New thread 3066592612 created [21:51:54]Thread 3066735972 joined [21:51:54]Waiting for new connection... [21:51:54] Sock 10.Parse request [21:51:54]Sock 10.Check first char [21:51:54]Sock 10.First char is OK [21:51:54]request: POST /json_proto HTTP/1.0 [21:51:54]Method: POST [21:51:54]URL: /json_proto [21:51:54]Method is POST - this is cgi request [21:51:54]url: /json_proto [21:51:54]query_string will be loaded in cgi processing [21:51:54]execute_cgi json_proto POST (null) [21:51:54]execute_cgi path=json_proto method=POST [21:51:54]POST find Content-Length [21:51:54]Host: 172.17.60.68:8080 [21:51:54]Content-Length: 677 [21:51:54]Content-Type: application/json [21:51:54] [21:51:54]POST finish read [21:51:54]Found Content-Length = 677 [21:51:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543202", "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" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:54]execute_script... [21:51:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543202", "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" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:54]POST & json_proto [21:51:54]process_json_proto [21:51:54]json parsed OK: [21:51:54]protocol is kg_v1.0 [21:51:54]action value=close_receipt [21:51:54]process_action close_receipt [21:51:54]cmd_close_receipt [21:51:54]MH_GetDate [21:51:54]Write to MH i2c: F0 00 00 B0 03 A2 [21:51:54]Write i2c OK [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: F0 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: F0 09 00 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: F0 09 00 B0 03 00 7B E9 5C 66 8D A7 02 66 6D [21:51:54]GetLastDocTimeStamp 1717365042 [21:51:54]current date 1717365115 [21:51:54]FM_GetShiftState [21:51:54]SAM_PROTO_GetShiftState [21:51:54]wFMCommunicate request_size=4 [21:51:54]MH_SAM_APDU [21:51:54]CAPDU: 80 13 01 00 [21:51:54]Write to MH i2c: E2 08 00 B1 03 80 13 01 00 00 00 00 00 31 [21:51:54]Write i2c OK [21:51:54]MH_I2C_Read... [21:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:54]Read from MH i2c: E2 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: E2 0E 00 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: E2 0E 00 B1 03 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 04 [21:51:54]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:51:54]wFMCommunicate OK [21:51:54]SAM_PROTO_GetShiftState done [21:51:54]FM_GetShiftState done [21:51:54]opened in 1717288520 [21:51:54]opened+sec_in_day 1717374920 [21:51:54]quantity*price = 40039 [21:51:54]sum+1 = 40040 [21:51:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 689 02.06.2024 21:51 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57862 ФПД: 200591765446799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T215155&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57862&fm=200591765446799&tin=02508201610067®Number=0000000000151680&sum=40000 [21:51:57]StoreToDocumentArchive [21:51:57]shift 69 fd 57862 [21:51:57]save to /storage/0069/doc_00057862 [21:51:57]save last doc name /storage/0069/doc_00057862 to /storage/kkm_last_doc_name [21:51:57]save OK [21:51:57]Clear old archive folders... [21:51:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:51:57]tlvbuf is 01AB7A60 [21:51:57]SAM_PROTO_ClearQueue [21:51:57]wFMCommunicate request_size=4 [21:51:57]MH_SAM_APDU [21:51:57]CAPDU: 80 09 00 00 [21:51:57]Write to MH i2c: E2 08 00 BE 03 80 09 00 00 00 00 00 00 33 [21:51:57]Write i2c OK [21:51:57]MH_I2C_Read... [21:51:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:57]Read from MH i2c: E2 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [21:51:57]RAPDU: 90 00 [21:51:57]wFMCommunicate OK [21:51:57]SAM_PROTO_ClearQueue done [21:51:57]KKMCreateOFDPacket [21:51:57]OFDProtocolAddRootSTLVToBuf [21:51:57]FM_MakeSignedData [21:51:57]FM_MakeSignedData [21:51:57]SAM_PROTO_SignData [21:51:57]wFMCommunicate request_size=4 [21:51:57]MH_SAM_APDU [21:51:57]CAPDU: 80 0D 01 02 [21:51:57]Write to MH i2c: E2 08 00 BF 03 80 0D 01 02 00 00 00 00 3B [21:51:57]Write i2c OK [21:51:57]MH_I2C_Read... [21:51:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:57]Read from MH i2c: E2 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 BF 03 00 90 00 36 [21:51:57]RAPDU: 90 00 [21:51:57]wFMCommunicate OK [21:51:57]wFMCommunicate request_size=255 [21:51:57]MH_SAM_APDU [21:51:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 OFD Sender: No OFD packet to send [21:51:58]9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 02 00 00 F4 03 04 00 7B E9 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 06 E2 00 00 35 04 06 00 B6 [21:51:58]Write to MH i2c: E2 02 01 C0 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 02 00 00 F4 03 04 00 7B E9 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 06 E2 00 00 35 04 06 00 B6 00 00 75 [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:59]Read from MH i2c: E2 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: E2 03 00 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: E2 03 00 C0 03 00 90 00 37 [21:51:59]RAPDU: 90 00 [21:51:59]wFMCommunicate OK [21:51:59]wFMCommunicate request_size=10 [21:51:59]MH_SAM_APDU [21:51:59]CAPDU: 80 0D 02 02 05 6F E8 EC A0 8F [21:51:59]Write to MH i2c: E2 0D 00 C1 03 80 0D 02 02 05 00 6F E8 EC A0 8F 00 00 BA [21:51:59]Write i2c OK [21:51:59]MH_I2C_Read... [21:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:59]Read from MH i2c: E2 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: E2 03 00 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: E2 03 00 C1 03 00 90 00 38 [21:51:59]RAPDU: 90 00 [21:51:59]wFMCommunicate OK [21:51:59]wFMCommunicate request_size=4 [21:51:59]MH_SAM_APDU [21:51:59]CAPDU: 80 0D 03 02 [21:51:59]Write to MH i2c: E2 08 00 C2 03 80 0D 03 02 00 00 00 00 40 [21:51:59]Write i2c OK [21:51:59]MH_I2C_Read... [21:51:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:59]Read from MH i2c: E2 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: E2 0B 00 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: E2 0B 00 C2 03 00 3D 10 97 CE 53 B1 5E 1A 90 00 6F [21:51:59]RAPDU: 3D 10 97 CE 53 B1 5E 1A 90 00 [21:51:59]wFMCommunicate OK [21:51:59]SAM_PROTO_SignData done [21:51:59]FM_MakeSignedData done [21:51:59]CreateOFDProtocolMessage [21:51:59]wFMCommunicate request_size=4 [21:51:59]MH_SAM_APDU [21:51:59]CAPDU: 80 11 00 00 [21:51:59]Write to MH i2c: E2 08 00 C3 03 80 11 00 00 00 00 00 00 40 [21:51:59]Write i2c OK [21:51:59]MH_I2C_Read... [21:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:59]Read from MH i2c: E2 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: E2 17 00 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: E2 17 00 C3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 93 [21:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:51:59]wFMCommunicate OK [21:51:59]CreateOFDProtocolMessage done [21:51:59]OFDSenderStorePacket 57862 [21:51:59]StoreOFDPacket docnum=57862 [21:51:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 B0 5F 07 01 79 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 02 00 00 F4 03 04 00 7B E9 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 06 E2 00 00 35 04 06 00 B6 6F E8 EC A0 8F 3D 10 97 CE 53 B1 5E 1A [21:51:59]CheckFolder [21:51:59]dirname=/storage/ofd_packets [21:51:59]CheckFolder done [21:51:59]ProducePacketName [21:51:59]name=ofd_packets/00057862 [21:51:59]NVStorageSaveData ofd_packets/00057862 [21:51:59]File name is /storage/ofd_packets/00057862 [21:51:59]Write 301 bytes [21:51:59]NVStorageSaveData done [21:51:59]OFDSenderStorePacket done [21:51:59]KKMCreateOFDPacket done [21:51:59]NVStorageSaveData kkm_last_timestamp [21:51:59]File name is /storage/kkm_last_timestamp [21:51:59]Write 4 bytes [21:51:59]NVStorageSaveData done [21:51:59]ExternCall_PrintAddStr [21:51:59]wPrintStart [21:51:59]Write to MH i2c: 01 00 00 C4 03 C7 [21:51:59]OFD Sender: Processing packet 57862 [packets to send 50, broken 49] [21:51:59]ProducePacketName [21:51:59]name=ofd_packets/00057862 [21:51:59]OFD Sender: To server: pG, [21:51:59]CommunicateWithHost lk.salyk.kg:30040 [21:51:59]ConnectInit lk.salyk.kg [21:51:59]Write i2c OK [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: 01 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: 01 07 00 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 FF 0F DC [21:51:59]RasterBufferAndPrint [21:51:59]line Счет N : (1)543202 [21:52:00]line ИНН: 02508201610067 [21:52:00]line Контрольно-Кассовый Чек [21:52:00]line ПРОДАЖА [21:52:00]line ТРК (МРК, ГНК) : 12 [21:52:00]line Товар: 2710124130 [21:52:00]line Аи-92-К-5 [21:52:00]line 6.030 * 66.40 [21:52:00]line = 400.39 [21:52:00]line НДС 12% НСП 1% [21:52:00]line > о реализуемом товаре [21:52:00]line ОКРУГЛЕНИЕ: -0.39 [21:52:00]line ИТОГО: 400.00 [21:52:00]line Внесено: 400.00 [21:52:00]line СДАЧА: 0.00 [21:52:00]line НСП 1% : 3.54 [21:52:00]line НДС 12% : 42.52 [21:52:00]line Наличными: 400.00 [21:52:00]line Безнал.: 0.00 [21:52:00]line Место: АЗС № 117 "Партнер Нефть" [21:52:00]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [21:52:00]line СНО: Общий режим [21:52:00]line Чек 689 02.06.2024 21:51 [21:52:00]line Смена: 69 ФФД: 1.0 [21:52:00]line ЗНМ: 0300000048 [21:52:00]line РНМ: 0000000000151680 [21:52:00]line Версия ККМ: v1.0 [21:52:00]line ФМ: 0000000000959414 [21:52:00]line ФД: 57862 [21:52:00]line ФПД: 200591765446799 [21:52:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T215155&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57862&fm=200591765446799&tin=02508201610067®Number=0000000000151680&sum=40000 [21:52:00]Connected sock=11 [21:52:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 B0 5F 07 01 79 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 written 0, free lines is 4095 [21:52:00]33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 02 00 00 F4 03 04 00 7B E9 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 06 E2 00 00 35 04 06 00 B6 6F E8 EC A0 8F 3D 10 97 CE 53 B1 5E Write to MH i2c: 1A 01 [21:52:00]00 00 EF 03 F2 [21:52:00]Write i2c OK [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: 01 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: 01 07 00 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: 01 07 00 EF 03 00 00 00 00 00 C7 0C CC [21:52:00]RasterBufferAndPrint [21:52:00]line [21:52:00]line [21:52:00]line [21:52:00]line [21:52:00]line [21:52:00]written 0, free lines is 3363 [21:52:00]MH_Cut [21:52:00]Write to MH i2c: D1 01 00 F6 03 01 CB [21:52:00]Write i2c OK [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: D1 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: D1 01 00 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: D1 01 00 F6 03 00 CA [21:52:00]Write to MH i2c: 01 00 00 F7 03 FA [21:52:00]Received data: 87 95 F6 70 47 ConnectInit Can't connect to host [21:52:01]2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 C7 18 47 Write i2c OK [21:52:01]00 0E MH_I2C_Read... [21:52:01]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 39 35 39 34 31 34 10 04 04 00 06 E2 00 00 F4 03 04 00 4F 94 5C 66 B6 04 01 00 00 F5 2E 21 84 7F F7 B6 B1 [21:52:01]CommunicateWithHost err = 0 [21:52:01]CheckOFDResponse [21:52:01]1017 (14) - 77093643461234 [21:52:01]1041 (16) - 0000000000959414 [21:52:01]1040 (4) - 57862 [21:52:01]1012 (4) - 02.06.2024 15:48 [21:52:01]1206 (1) - 0 [21:52:01]OFD Sender: Remove packet 57862 [21:52:01]ProducePacketName [21:52:01]name=ofd_packets/00057862 [21:52:01]NVStorageDeleteData [21:52:01]*** Cut start [21:52:01]*** Partial cut [21:52:01]*** CUTSNS_PIN = 1 [21:52:01]*** CUTSNS_PIN = 0 [21:52:01]OFD Sender: No OFD packet to send [21:52:01]*** Brake cut motor [21:52:02]Read from MH i2c: 01 [21:52:02]MH_I2C_Read... [21:52:02]*** Stop cut motor [21:52:02]*** Cut end [21:52:02]Read from MH i2c: 01 07 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: 01 07 00 F7 03 00 00 00 00 00 FF 0F 0F [21:52:02]process_action close_receipt done [21:52:02]requested_data is exist [21:52:02]produce_requested_data [21:52:02]requested_item fm.sn is exist - process it [21:52:02]wFMCommunicate request_size=4 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 11 00 00 [21:52:02]Write to MH i2c: E2 08 00 F8 03 80 11 00 00 00 00 00 00 75 [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 17 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 17 00 F8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 C8 [21:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:52:02]wFMCommunicate OK [21:52:02]requested_item fd.num is exist - process it [21:52:02]SAM_PROTO_GetFieldsCounters [21:52:02]wFMCommunicate request_size=4 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 13 00 00 [21:52:02]Write to MH i2c: E2 08 00 F9 03 80 13 00 00 00 00 00 00 78 [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 62 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 62 00 F9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 06 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B1 02 00 00 5E 04 04 00 B1 02 00 00 57 04 04 00 B2 02 00 00 19 04 04 00 00 00 00 00 90 00 DB [21:52:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 06 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B1 02 00 00 5E 04 04 00 B1 02 00 00 57 04 04 00 B2 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:03]wFMCommunicate OK [21:52:03]SAM_PROTO_GetFieldsCounters done [21:52:03]requested_item shift.num is exist - process it [21:52:03]requested_item shift.opened is exist - process it [21:52:03]req_shift_opened [21:52:03]FM_GetShiftState [21:52:03]SAM_PROTO_GetShiftState [21:52:03]wFMCommunicate request_size=4 [21:52:03]MH_SAM_APDU [21:52:03]CAPDU: 80 13 01 00 [21:52:03]Write to MH i2c: E2 08 00 FA 03 80 13 01 00 00 00 00 00 7A [21:52:03]Write i2c OK [21:52:03]MH_I2C_Read... [21:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:03]Read from MH i2c: E2 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: E2 0E 00 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: E2 0E 00 FA 03 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 4D [21:52:03]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:52:03]wFMCommunicate OK [21:52:03]SAM_PROTO_GetShiftState done [21:52:03]FM_GetShiftState done [21:52:03]req_shift_opened done [21:52:03]requested_item shift.open_date is exist - process it [21:52:03]req_shift_open_date [21:52:03]req_shift_open_date done [21:52:03]produce_requested_data done [21:52:03]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57862,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [21:52:03]process_action_free close_receipt [21:52:03]json_value_free [21:52:03]json_value_free done [21:52:03]process_json_proto returns [21:52:03]Send response to host [21:52:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57862,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [21:52:03]free response buf [21:52:03]execute_script done [21:52:03]execute_script returns [21:52:03]free content buf [21:52:03]Sock 10.Close socket [21:52:03]Sock 10.Thread stoped [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:19]ConnectInit Can't connect to host [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:27]accept exits with 9 [21:56:27]New connection [21:56:27]New thread 3066735972 created [21:56:27]Thread 3066592612 joined [21:56:27]Waiting for new connection... [21:56:27] Sock 9.Parse request [21:56:27]Sock 9.Check first char [21:56:27]Sock 9.First char is OK [21:56:27]request: POST /json_proto HTTP/1.0 [21:56:27]Method: POST [21:56:27]URL: /json_proto [21:56:27]Method is POST - this is cgi request [21:56:27]url: /json_proto [21:56:27]query_string will be loaded in cgi processing [21:56:27]execute_cgi json_proto POST (null) [21:56:27]execute_cgi path=json_proto method=POST [21:56:27]POST find Content-Length [21:56:27]Host: 172.17.60.68:8080 [21:56:27]Content-Length: 1215 [21:56:27]Content-Type: application/json [21:56:27] [21:56:27]POST finish read [21:56:27]Found Content-Length = 1215 [21:56:27]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 117\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420.\u000A\u0421\u0447\u0435\u0442 N : (1)543203\u000A02.06.2024 21:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 74.860 x 72.90\u000A\u0418\u0422\u041E\u0413: 5457.29\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\u000A72612\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:27]execute_script... [21:56:27]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 117\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420.\u000A\u0421\u0447\u0435\u0442 N : (1)543203\u000A02.06.2024 21:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 74.860 x 72.90\u000A\u0418\u0422\u041E\u0413: 5457.29\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\u000A72612\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:27]POST & json_proto [21:56:27]process_json_proto [21:56:27]json parsed OK: [21:56:27]protocol is kg_v1.0 [21:56:27]action value=print_text [21:56:27]process_action print_text [21:56:27]cmd_print_text [21:56:27]ExternCall_PrintAddStr [21:56:27]wPrintStart [21:56:27]Write to MH i2c: 01 00 00 FB 03 FE [21:56:27]Write i2c OK [21:56:27]MH_I2C_Read... [21:56:27]Read from MH i2c: 01 [21:56:27]MH_I2C_Read... [21:56:27]Read from MH i2c: 01 07 00 [21:56:27]MH_I2C_Read... [21:56:27]Read from MH i2c: 01 07 00 FB 03 00 00 00 00 00 FF 0F 13 [21:56:27]RasterBufferAndPrint [21:56:27]line *****ТОВАРНЫЙ ЧЕК***** [21:56:27]line АЗС 117 [21:56:27]line Партнер нефть [21:56:27]line 02508201610067 [21:56:27]line Кассир : Койгельдиева Р. [21:56:27]line Счет N : (1)543203 [21:56:27]line 02.06.2024 21:46 [21:56:27]line ПРОДАЖА [21:56:27]line ТРК (МРК, ГНК): 41 [21:56:27]line Вид ГСМ : 2710194210 [21:56:27]line ДТ-К-5 [21:56:27]line 74.860 x 72.90 [21:56:27]line ИТОГ: 5457.29 [21:56:27]line Тип оплаты: Талоны: Топливная Карта [21:56:27]line 72612 [21:56:27]line ______________________ [21:56:27]line (подпись) [21:56:27]written 0, free lines is 4095 [21:56:28]Write to MH i2c: 01 00 00 10 04 14 [21:56:28]Write i2c OK [21:56:28]MH_I2C_Read... [21:56:28]Read from MH i2c: 01 [21:56:28]MH_I2C_Read... [21:56:28]Read from MH i2c: 01 07 00 [21:56:28]MH_I2C_Read... [21:56:28]Read from MH i2c: 01 07 00 10 04 00 00 00 00 00 01 0E 2A [21:56:28]RasterBufferAndPrint [21:56:28]line [21:56:28]line [21:56:28]line [21:56:28]line [21:56:28]line [21:56:28]written 0, free lines is 3658 [21:56:28]MH_Cut [21:56:28]Write to MH i2c: D1 01 00 17 04 01 ED [21:56:28]Write i2c OK [21:56:28]MH_I2C_Read... [21:56:28]Read from MH i2c: D1 [21:56:28]MH_I2C_Read... [21:56:28]Read from MH i2c: D1 01 00 [21:56:28]MH_I2C_Read... [21:56:28]Read from MH i2c: D1 01 00 17 04 00 EC [21:56:28]Write to MH i2c: 01 00 00 18 04 1C [21:56:28]Write i2c OK [21:56:28]MH_I2C_Read... [21:56:28]*** Cut start [21:56:28]*** Partial cut [21:56:28]*** CUTSNS_PIN = 1 [21:56:28]*** CUTSNS_PIN = 0 [21:56:29]*** Brake cut motor [21:56:29]Read from MH i2c: 01 [21:56:29]MH_I2C_Read... [21:56:29]*** Stop cut motor [21:56:29]*** Cut end [21:56:29]Read from MH i2c: 01 07 00 [21:56:29]MH_I2C_Read... [21:56:29]Read from MH i2c: 01 07 00 18 04 00 00 00 00 00 FF 0F 31 [21:56:29]process_action print_text done [21:56:29]requested_data is exist [21:56:29]produce_requested_data [21:56:29]requested_item fm.sn is exist - process it [21:56:29]wFMCommunicate request_size=4 [21:56:29]MH_SAM_APDU [21:56:29]CAPDU: 80 11 00 00 [21:56:29]Write to MH i2c: E2 08 00 19 04 80 11 00 00 00 00 00 00 97 [21:56:29]Write i2c OK [21:56:29]MH_I2C_Read... [21:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:29]Read from MH i2c: E2 [21:56:29]MH_I2C_Read... [21:56:29]Read from MH i2c: E2 17 00 [21:56:29]MH_I2C_Read... [21:56:29]Read from MH i2c: E2 17 00 19 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 EA [21:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:56:29]wFMCommunicate OK [21:56:29]requested_item fd.num is exist - process it [21:56:29]SAM_PROTO_GetFieldsCounters [21:56:29]wFMCommunicate request_size=4 [21:56:29]MH_SAM_APDU [21:56:29]CAPDU: 80 13 00 00 [21:56:29]Write to MH i2c: E2 08 00 1A 04 80 13 00 00 00 00 00 00 9A [21:56:29]Write i2c OK [21:56:29]MH_I2C_Read... [21:56:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:29]Read from MH i2c: E2 [21:56:29]MH_I2C_Read... [21:56:29]Read from MH i2c: E2 62 00 [21:56:29]MH_I2C_Read... [21:56:29]Read from MH i2c: E2 62 00 1A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 06 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B1 02 00 00 5E 04 04 00 B1 02 00 00 57 04 04 00 B2 02 00 00 19 04 04 00 00 00 00 00 90 00 FD [21:56:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 06 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B1 02 00 00 5E 04 04 00 B1 02 00 00 57 04 04 00 B2 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:30]wFMCommunicate OK [21:56:30]SAM_PROTO_GetFieldsCounters done [21:56:30]requested_item shift.num is exist - process it [21:56:30]requested_item shift.opened is exist - process it [21:56:30]req_shift_opened [21:56:30]FM_GetShiftState [21:56:30]SAM_PROTO_GetShiftState [21:56:30]wFMCommunicate request_size=4 [21:56:30]MH_SAM_APDU [21:56:30]CAPDU: 80 13 01 00 [21:56:30]Write to MH i2c: E2 08 00 1B 04 80 13 01 00 00 00 00 00 9C [21:56:30]Write i2c OK [21:56:30]MH_I2C_Read... [21:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:30]Read from MH i2c: E2 [21:56:30]MH_I2C_Read... [21:56:30]Read from MH i2c: E2 0E 00 [21:56:30]MH_I2C_Read... [21:56:30]Read from MH i2c: E2 0E 00 1B 04 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 6F [21:56:30]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:56:30]wFMCommunicate OK [21:56:30]SAM_PROTO_GetShiftState done [21:56:30]FM_GetShiftState done [21:56:30]req_shift_opened done [21:56:30]requested_item shift.open_date is exist - process it [21:56:30]req_shift_open_date [21:56:30]req_shift_open_date done [21:56:30]produce_requested_data done [21:56:30]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57862,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [21:56:30]process_action_free print_text [21:56:30]json_value_free [21:56:30]json_value_free done [21:56:30]process_json_proto returns [21:56:30]Send response to host [21:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57862,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [21:56:30]free response buf [21:56:30]execute_script done [21:56:30]execute_script returns [21:56:30]free content buf [21:56:30]Sock 9.Close socket [21:56:30]Sock 9.Thread stoped [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:37]ConnectInit Can't connect to host [21:56:42]accept exits with 10 [21:56:42]New connection [21:56:42]New thread 3066592612 created [21:56:42]Thread 3066735972 joined [21:56:42]Waiting for new connection... [21:56:42] Sock 10.Parse request [21:56:42]Sock 10.Check first char [21:56:42]Sock 10.First char is OK [21:56:42]request: POST /json_proto HTTP/1.0 [21:56:42]Method: POST [21:56:42]URL: /json_proto [21:56:42]Method is POST - this is cgi request [21:56:42]url: /json_proto [21:56:42]query_string will be loaded in cgi processing [21:56:42]execute_cgi json_proto POST (null) [21:56:42]execute_cgi path=json_proto method=POST [21:56:42]POST find Content-Length [21:56:42]Host: 172.17.60.68:8080 [21:56:42]Content-Length: 804 [21:56:42]Content-Type: application/json [21:56:42] [21:56:42]POST finish read [21:56:42]Found Content-Length = 804 [21:56:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 20.060, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:42]execute_script... [21:56:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 20.060, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:42]POST & json_proto [21:56:42]process_json_proto [21:56:42]json parsed OK: [21:56:42]protocol is kg_v1.0 [21:56:42]action value=close_receipt [21:56:42]process_action close_receipt [21:56:42]cmd_close_receipt [21:56:42]MH_GetDate [21:56:42]Write to MH i2c: F0 00 00 1C 04 0F [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: F0 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: F0 09 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: F0 09 00 1C 04 00 9A EA 5C 66 8D A7 02 66 FA [21:56:42]GetLastDocTimeStamp 1717365115 [21:56:42]current date 1717365402 [21:56:42]FM_GetShiftState [21:56:42]SAM_PROTO_GetShiftState [21:56:42]wFMCommunicate request_size=4 [21:56:42]MH_SAM_APDU [21:56:42]CAPDU: 80 13 01 00 [21:56:42]Write to MH i2c: E2 08 00 1D 04 80 13 01 00 00 00 00 00 9E [21:56:42]OFD Sender: No OFD packet to send [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:42]Read from MH i2c: E2 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 0E 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 0E 00 1D 04 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 71 [21:56:42]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:56:42]wFMCommunicate OK [21:56:42]SAM_PROTO_GetShiftState done [21:56:42]FM_GetShiftState done [21:56:42]opened in 1717288520 [21:56:42]opened+sec_in_day 1717374920 [21:56:42]quantity*price = 70009 [21:56:42]sum+1 = 70010 [21:56:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.09 НСП 1% : 6.19 НДС 12% : 74.35 Наличными: 0.00 Безнал.: 700.09 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 690 02.06.2024 21:56 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57863 ФПД: 214914820633299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T215642&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57863&fm=214914820633299&tin=02508201610067®Number=0000000000151680&sum=70009 [21:56:45]StoreToDocumentArchive [21:56:45]shift 69 fd 57863 [21:56:45]save to /storage/0069/doc_00057863 [21:56:45]save last doc name /storage/0069/doc_00057863 to /storage/kkm_last_doc_name [21:56:45]save OK [21:56:45]Clear old archive folders... [21:56:45]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:56:45]tlvbuf is 0190B080 [21:56:45]SAM_PROTO_ClearQueue [21:56:45]wFMCommunicate request_size=4 [21:56:45]MH_SAM_APDU [21:56:45]CAPDU: 80 09 00 00 [21:56:45]Write to MH i2c: E2 08 00 2A 04 80 09 00 00 00 00 00 00 A0 [21:56:45]Write i2c OK [21:56:45]MH_I2C_Read... [21:56:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:45]Read from MH i2c: E2 [21:56:45]MH_I2C_Read... [21:56:45]Read from MH i2c: E2 03 00 [21:56:45]MH_I2C_Read... [21:56:45]Read from MH i2c: E2 03 00 2A 04 00 90 00 A2 [21:56:45]RAPDU: 90 00 [21:56:45]wFMCommunicate OK [21:56:45]SAM_PROTO_ClearQueue done [21:56:45]KKMCreateOFDPacket [21:56:45]OFDProtocolAddRootSTLVToBuf [21:56:45]FM_MakeSignedData [21:56:45]FM_MakeSignedData [21:56:45]SAM_PROTO_SignData [21:56:45]wFMCommunicate request_size=4 [21:56:45]MH_SAM_APDU [21:56:45]CAPDU: 80 0D 01 02 [21:56:45]Write to MH i2c: E2 08 00 2B 04 80 0D 01 02 00 00 00 00 A8 [21:56:45]Write i2c OK [21:56:45]MH_I2C_Read... [21:56:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:45]Read from MH i2c: E2 [21:56:45]MH_I2C_Read... [21:56:45]Read from MH i2c: E2 03 00 [21:56:45]MH_I2C_Read... [21:56:45]Read from MH i2c: E2 03 00 2B 04 00 90 00 A3 [21:56:45]RAPDU: 90 00 [21:56:45]wFMCommunicate OK [21:56:45]wFMCommunicate request_size=255 [21:56:45]MH_SAM_APDU [21:56:45]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 4E 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 02 00 00 F4 03 04 00 9A EA 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 07 E2 00 00 35 04 06 00 C3 76 [21:56:46]Write to MH i2c: E2 02 01 2C 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 4E 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 02 00 00 F4 03 04 00 9A EA 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 07 E2 00 00 35 04 06 00 C3 76 00 00 45 [21:56:46]Write i2c OK [21:56:46]MH_I2C_Read... [21:56:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:46]Read from MH i2c: E2 [21:56:46]MH_I2C_Read... [21:56:46]Read from MH i2c: E2 03 00 [21:56:46]MH_I2C_Read... [21:56:46]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [21:56:46]RAPDU: 90 00 [21:56:46]wFMCommunicate OK [21:56:46]wFMCommunicate request_size=9 [21:56:46]MH_SAM_APDU [21:56:46]CAPDU: 80 0D 02 02 04 C1 8A 72 D3 [21:56:46]Write to MH i2c: E2 0C 00 2D 04 80 0D 02 02 04 00 C1 8A 72 D3 00 00 43 [21:56:46]Write i2c OK [21:56:46]MH_I2C_Read... [21:56:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:46]Read from MH i2c: E2 [21:56:46]MH_I2C_Read... [21:56:46]Read from MH i2c: E2 03 00 [21:56:46]MH_I2C_Read... [21:56:46]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [21:56:46]RAPDU: 90 00 [21:56:46]wFMCommunicate OK [21:56:46]wFMCommunicate request_size=4 [21:56:46]MH_SAM_APDU [21:56:46]CAPDU: 80 0D 03 02 [21:56:46]Write to MH i2c: E2 08 00 2E 04 80 0D 03 02 00 00 00 00 AD [21:56:47]Write i2c OK [21:56:47]MH_I2C_Read... [21:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:47]Read from MH i2c: E2 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 0B 00 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 0B 00 2E 04 00 E8 E1 34 6A 0C A3 0D 7F 90 00 50 [21:56:47]RAPDU: E8 E1 34 6A 0C A3 0D 7F 90 00 [21:56:47]wFMCommunicate OK [21:56:47]SAM_PROTO_SignData done [21:56:47]FM_MakeSignedData done [21:56:47]CreateOFDProtocolMessage [21:56:47]wFMCommunicate request_size=4 [21:56:47]MH_SAM_APDU [21:56:47]CAPDU: 80 11 00 00 [21:56:47]Write to MH i2c: E2 08 00 2F 04 80 11 00 00 00 00 00 00 AD [21:56:47]Write i2c OK [21:56:47]MH_I2C_Read... [21:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:47]Read from MH i2c: E2 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 17 00 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: E2 17 00 2F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 00 [21:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 OFD Sender: No OFD packet to send [21:56:47]39 34 31 34 90 00 [21:56:47]wFMCommunicate OK [21:56:47]CreateOFDProtocolMessage done [21:56:47]OFDSenderStorePacket 57863 [21:56:47]StoreOFDPacket docnum=57863 [21:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 22 0C 06 01 CE 12 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 4E 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 02 00 00 F4 03 04 00 9A EA 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 07 E2 00 00 35 04 06 00 C3 76 C1 8A 72 D3 E8 E1 34 6A 0C A3 0D 7F [21:56:47]CheckFolder [21:56:47]dirname=/storage/ofd_packets [21:56:47]CheckFolder done [21:56:47]ProducePacketName [21:56:47]name=ofd_packets/00057863 [21:56:47]NVStorageSaveData ofd_packets/00057863 [21:56:47]File name is /storage/ofd_packets/00057863 [21:56:47]Write 300 bytes [21:56:47]NVStorageSaveData done [21:56:47]OFDSenderStorePacket done [21:56:47]KKMCreateOFDPacket done [21:56:47]NVStorageSaveData kkm_last_timestamp [21:56:47]File name is /storage/kkm_last_timestamp [21:56:47]Write 4 bytes [21:56:47]NVStorageSaveData done [21:56:47]ExternCall_PrintAddStr [21:56:47]wPrintStart [21:56:47]Write to MH i2c: 01 00 00 30 04 34 [21:56:47]Write i2c OK [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: 01 [21:56:47]MH_I2C_Read... [21:56:47]Read from MH i2c: 01 07 00 [21:56:47]MH_I2C_Read... [21:56:47]OFD Sender: Processing packet 57863 [packets to send 50, broken 49] [21:56:47]Read from MH i2c: ProducePacketName [21:56:47]01 name=ofd_packets/00057863 [21:56:47]07 OFD Sender: To server: pG, [21:56:47]00 CommunicateWithHost lk.salyk.kg:30040 [21:56:47]30 ConnectInit lk.salyk.kg [21:56:47]04 00 00 00 00 00 FF 0F 49 [21:56:47]RasterBufferAndPrint [21:56:47]line Счет N : (1)543204 [21:56:47]line ИНН: 02508201610067 [21:56:47]line Контрольно-Кассовый Чек [21:56:47]line ПРОДАЖА [21:56:47]line ТРК (МРК, ГНК) : 72 [21:56:47]line Товар: 2711190000 [21:56:47]line ГАЗ-К-5 [21:56:47]line 20.060 * 34.90 [21:56:47]line = 700.09 [21:56:47]line НДС 12% НСП 1% [21:56:47]line > о реализуемом товаре [21:56:47]line ИТОГО: 700.09 [21:56:47]line НСП 1% : 6.19 [21:56:47]line НДС 12% : 74.35 [21:56:47]line Наличными: 0.00 [21:56:47]line Безнал.: 700.09 [21:56:47]line Место: АЗС № 117 "Партнер Нефть" [21:56:47]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [21:56:47]line СНО: Общий режим [21:56:47]line Чек 690 02.06.2024 21:56 [21:56:47]line Смена: 69 ФФД: 1.0 [21:56:47]line ЗНМ: 0300000048 [21:56:47]line РНМ: 0000000000151680 [21:56:47]line Версия ККМ: v1.0 [21:56:47]line Платежная система: O! деньги [21:56:47]line ФМ: 0000000000959414 [21:56:47]line ФД: 57863 [21:56:47]line ФПД: 214914820633299 [21:56:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T215642&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57863&fm=214914820633299&tin=02508201610067®Number=0000000000151680&sum=70009 [21:56:47]Connected sock=12 [21:56:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 written 0, free lines is 4095 [21:56:47]34 0E 01 00 00 22 0C 06 01 CE 12 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 4E 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 Write to MH i2c: 00 01 B2 02 00 00 F4 03 04 00 00 00 9A 5A EA 04 5C 5E 66 0E 04 04 00 45 [21:56:48]00 Write i2c OK [21:56:48]00 MH_I2C_Read... [21:56:48]00 Read from MH i2c: B9 01 04 [21:56:48]MH_I2C_Read... [21:56:48]01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 Read from MH i2c: 30 01 31 07 00 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: 01 35 07 31 00 36 5A 04 00 00 00 00 38 00 30 13 11 0D 04 85 10 [21:56:48]RasterBufferAndPrint [21:56:48]line [21:56:48]line [21:56:48]line [21:56:48]line [21:56:48]00 line [21:56:48]30 written 0, free lines is 3580 [21:56:48]30 MH_Cut [21:56:48]30 Write to MH i2c: 30 D1 30 01 30 00 30 30 30 30 39 35 39 61 34 04 31 01 34 37 10 [21:56:48]04 04 00 07 E2 00 Write i2c OK [21:56:48]00 MH_I2C_Read... [21:56:48]35 04 06 00 C3 76 Read from MH i2c: C1 D1 8A [21:56:48]72 MH_I2C_Read... [21:56:48]D3 Read from MH i2c: E8 E1 34 6A 0C A3 0D 7F [21:56:48]D1 01 00 [21:56:48]MH_I2C_Read... [21:56:48]Read from MH i2c: D1 01 00 61 04 00 36 [21:56:48]Write to MH i2c: 01 00 00 62 04 66 [21:56:48]Write i2c OK [21:56:48]MH_I2C_Read... [21:56:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 1C C5 47 00 81 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 07 E2 00 00 F4 03 04 00 6E 95 5C 66 B6 04 01 00 00 E8 7A 61 D6 CC 4F 92 D9 [21:56:49]CommunicateWithHost err = 0 [21:56:49]CheckOFDResponse [21:56:49]1017 (14) - 77093643461234 [21:56:49]1041 (16) - 0000000000959414 [21:56:49]1040 (4) - 57863 [21:56:49]1012 (4) - 02.06.2024 15:53 [21:56:49]1206 (1) - 0 [21:56:49]OFD Sender: Remove packet 57863 [21:56:49]ProducePacketName [21:56:49]name=ofd_packets/00057863 [21:56:49]NVStorageDeleteData [21:56:49]*** Cut start [21:56:49]*** Partial cut [21:56:49]*** CUTSNS_PIN = 1 [21:56:49]*** CUTSNS_PIN = 0 [21:56:49]*** Brake cut motor [21:56:49]OFD Sender: No OFD packet to send [21:56:49]Read from MH i2c: 01 [21:56:49]MH_I2C_Read... [21:56:49]*** Stop cut motor [21:56:49]*** Cut end [21:56:49]Read from MH i2c: 01 07 00 [21:56:49]MH_I2C_Read... [21:56:49]Read from MH i2c: 01 07 00 62 04 00 00 00 00 00 FF 0F 7B [21:56:49]process_action close_receipt done [21:56:49]requested_data is exist [21:56:49]produce_requested_data [21:56:49]requested_item fm.sn is exist - process it [21:56:49]wFMCommunicate request_size=4 [21:56:49]MH_SAM_APDU [21:56:49]CAPDU: 80 11 00 00 [21:56:49]Write to MH i2c: E2 08 00 63 04 80 11 00 00 00 00 00 00 E1 [21:56:49]Write i2c OK [21:56:49]MH_I2C_Read... [21:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:49]Read from MH i2c: E2 [21:56:49]MH_I2C_Read... [21:56:49]Read from MH i2c: E2 17 00 [21:56:49]MH_I2C_Read... [21:56:49]Read from MH i2c: E2 17 00 63 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 34 [21:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:56:50]wFMCommunicate OK [21:56:50]requested_item fd.num is exist - process it [21:56:50]SAM_PROTO_GetFieldsCounters [21:56:50]wFMCommunicate request_size=4 [21:56:50]MH_SAM_APDU [21:56:50]CAPDU: 80 13 00 00 [21:56:50]Write to MH i2c: E2 08 00 64 04 80 13 00 00 00 00 00 00 E4 [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:50]Read from MH i2c: E2 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 62 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 62 00 64 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 07 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B2 02 00 00 5E 04 04 00 B2 02 00 00 57 04 04 00 B3 02 00 00 19 04 04 00 00 00 00 00 90 00 4B [21:56:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 07 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B2 02 00 00 5E 04 04 00 B2 02 00 00 57 04 04 00 B3 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:50]wFMCommunicate OK [21:56:50]SAM_PROTO_GetFieldsCounters done [21:56:50]requested_item shift.num is exist - process it [21:56:50]requested_item shift.opened is exist - process it [21:56:50]req_shift_opened [21:56:50]FM_GetShiftState [21:56:50]SAM_PROTO_GetShiftState [21:56:50]wFMCommunicate request_size=4 [21:56:50]MH_SAM_APDU [21:56:50]CAPDU: 80 13 01 00 [21:56:50]Write to MH i2c: E2 08 00 65 04 80 13 01 00 00 00 00 00 E6 [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:50]Read from MH i2c: E2 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 0E 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 0E 00 65 04 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 B9 [21:56:50]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:56:50]wFMCommunicate OK [21:56:50]SAM_PROTO_GetShiftState done [21:56:50]FM_GetShiftState done [21:56:50]req_shift_opened done [21:56:50]requested_item shift.open_date is exist - process it [21:56:50]req_shift_open_date [21:56:50]req_shift_open_date done [21:56:50]produce_requested_data done [21:56:50]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57863,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [21:56:50]process_action_free close_receipt [21:56:50]json_value_free [21:56:50]json_value_free done [21:56:50]process_json_proto returns [21:56:50]Send response to host [21:56:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57863,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [21:56:50]free response buf [21:56:50]execute_script done [21:56:50]execute_script returns [21:56:50]free content buf [21:56:50]Sock 10.Close socket [21:56:50]Sock 10.Thread stoped [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:55]ConnectInit Can't connect to host [21:58:59]OFD Sender: No OFD packet to send [21:59:02]accept exits with 8 [21:59:02]New connection [21:59:02]New thread 3066735972 created [21:59:02]Thread 3066592612 joined [21:59:02]Waiting for new connection... [21:59:02] Sock 8.Parse request [21:59:02]Sock 8.Check first char [21:59:02]Sock 8.First char is OK [21:59:02]request: POST /json_proto HTTP/1.0 [21:59:02]Method: POST [21:59:02]URL: /json_proto [21:59:02]Method is POST - this is cgi request [21:59:02]url: /json_proto [21:59:02]query_string will be loaded in cgi processing [21:59:02]execute_cgi json_proto POST (null) [21:59:02]execute_cgi path=json_proto method=POST [21:59:02]POST find Content-Length [21:59:02]Host: 172.17.60.68:8080 [21:59:02]Content-Length: 677 [21:59:02]Content-Type: application/json [21:59:02] [21:59:02]POST finish read [21:59:02]Found Content-Length = 677 [21:59:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543205", "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 }]} ], "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" ] } } [21:59:02]execute_script... [21:59:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543205", "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 }]} ], "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" ] } } [21:59:02]POST & json_proto [21:59:02]process_json_proto [21:59:02]json parsed OK: [21:59:02]protocol is kg_v1.0 [21:59:02]action value=close_receipt [21:59:02]process_action close_receipt [21:59:02]cmd_close_receipt [21:59:02]MH_GetDate [21:59:02]Write to MH i2c: F0 00 00 66 04 59 [21:59:02]Write i2c OK [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: F0 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: F0 09 00 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: F0 09 00 66 04 00 27 EB 5C 66 8D A7 02 66 D2 [21:59:02]GetLastDocTimeStamp 1717365402 [21:59:02]current date 1717365543 [21:59:02]FM_GetShiftState [21:59:02]SAM_PROTO_GetShiftState [21:59:02]wFMCommunicate request_size=4 [21:59:02]MH_SAM_APDU [21:59:02]CAPDU: 80 13 01 00 [21:59:02]Write to MH i2c: E2 08 00 67 04 80 13 01 00 00 00 00 00 E8 [21:59:02]Write i2c OK [21:59:02]MH_I2C_Read... [21:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:02]Read from MH i2c: E2 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: E2 0E 00 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: E2 0E 00 67 04 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 BB [21:59:03]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:59:03]wFMCommunicate OK [21:59:03]SAM_PROTO_GetShiftState done [21:59:03]FM_GetShiftState done [21:59:03]opened in 1717288520 [21:59:03]opened+sec_in_day 1717374920 [21:59:03]quantity*price = 50065 [21:59:03]sum+1 = 50067 [21:59:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 691 02.06.2024 21:59 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57864 ФПД: 201519902017089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T215903&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57864&fm=201519902017089&tin=02508201610067®Number=0000000000151680&sum=50000 [21:59:06]StoreToDocumentArchive [21:59:06]shift 69 fd 57864 [21:59:06]save to /storage/0069/doc_00057864 [21:59:06]save last doc name /storage/0069/doc_00057864 to /storage/kkm_last_doc_name [21:59:06]save OK [21:59:06]Clear old archive folders... [21:59:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:59:06]tlvbuf is 019170C0 [21:59:06]SAM_PROTO_ClearQueue [21:59:06]wFMCommunicate request_size=4 [21:59:06]MH_SAM_APDU [21:59:06]CAPDU: 80 09 00 00 [21:59:06]Write to MH i2c: E2 08 00 74 04 80 09 00 00 00 00 00 00 EA [21:59:06]Write i2c OK [21:59:06]MH_I2C_Read... [21:59:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:06]Read from MH i2c: E2 [21:59:06]MH_I2C_Read... [21:59:06]Read from MH i2c: E2 03 00 [21:59:06]MH_I2C_Read... [21:59:06]Read from MH i2c: E2 03 00 74 04 00 90 00 EC [21:59:06]RAPDU: 90 00 [21:59:06]wFMCommunicate OK [21:59:06]SAM_PROTO_ClearQueue done [21:59:06]KKMCreateOFDPacket [21:59:06]OFDProtocolAddRootSTLVToBuf [21:59:06]FM_MakeSignedData [21:59:06]FM_MakeSignedData [21:59:06]SAM_PROTO_SignData [21:59:06]wFMCommunicate request_size=4 [21:59:06]MH_SAM_APDU [21:59:06]CAPDU: 80 0D 01 02 [21:59:06]Write to MH i2c: E2 08 00 75 04 80 0D 01 02 00 00 00 00 F2 [21:59:06]Write i2c OK [21:59:06]MH_I2C_Read... [21:59:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:06]Read from MH i2c: E2 [21:59:06]MH_I2C_Read... [21:59:06]Read from MH i2c: E2 03 00 [21:59:06]MH_I2C_Read... [21:59:06]Read from MH i2c: E2 03 00 75 04 00 90 00 ED [21:59:06]RAPDU: 90 00 [21:59:06]wFMCommunicate OK [21:59:06]wFMCommunicate request_size=255 [21:59:06]MH_SAM_APDU [21:59:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B3 02 00 00 F4 03 04 00 27 EB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 08 E2 00 00 35 04 06 00 B7 [21:59:06]Write to MH i2c: E2 02 01 76 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 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 B3 02 00 00 F4 03 04 00 27 EB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 08 E2 00 00 35 04 06 00 B7 00 00 11 [21:59:07]Write i2c OK [21:59:07]MH_I2C_Read... [21:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:07]Read from MH i2c: E2 [21:59:07]MH_I2C_Read... [21:59:07]Read from MH i2c: E2 03 00 [21:59:07]MH_I2C_Read... [21:59:07]Read from MH i2c: E2 03 00 76 04 00 90 00 EE [21:59:07]RAPDU: 90 00 [21:59:07]wFMCommunicate OK [21:59:07]wFMCommunicate request_size=10 [21:59:07]MH_SAM_APDU [21:59:07]CAPDU: 80 0D 02 02 05 48 02 2C C6 41 [21:59:07]Write to MH i2c: E2 0D 00 77 04 80 0D 02 02 05 00 48 02 2C C6 41 00 00 7C [21:59:07]Write i2c OK [21:59:07]MH_I2C_Read... [21:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:07]Read from MH i2c: E2 [21:59:07]MH_I2C_Read... [21:59:07]Read from MH i2c: E2 03 00 [21:59:07]MH_I2C_Read... [21:59:07]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [21:59:07]RAPDU: 90 00 [21:59:07]wFMCommunicate OK [21:59:07]wFMCommunicate request_size=4 [21:59:07]MH_SAM_APDU [21:59:07]CAPDU: 80 0D 03 02 [21:59:07]Write to MH i2c: E2 08 00 78 04 80 0D 03 02 00 00 00 00 F7 [21:59:07]Write i2c OK [21:59:07]MH_I2C_Read... [21:59:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:08]Read from MH i2c: E2 [21:59:08]MH_I2C_Read... [21:59:08]Read from MH i2c: E2 0B 00 [21:59:08]MH_I2C_Read... [21:59:08]Read from MH i2c: E2 0B 00 78 04 00 E8 8F 90 09 72 D8 CB 6D 90 00 8A [21:59:08]RAPDU: E8 8F 90 09 72 D8 CB 6D 90 00 [21:59:08]wFMCommunicate OK [21:59:08]SAM_PROTO_SignData done [21:59:08]FM_MakeSignedData done [21:59:08]CreateOFDProtocolMessage [21:59:08]wFMCommunicate request_size=4 [21:59:08]MH_SAM_APDU [21:59:08]CAPDU: 80 11 00 00 [21:59:08]Write to MH i2c: E2 08 00 79 04 80 11 00 00 00 00 00 00 F7 [21:59:08]Write i2c OK [21:59:08]MH_I2C_Read... [21:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:08]Read from MH i2c: E2 [21:59:08]MH_I2C_Read... [21:59:08]Read from MH i2c: E2 17 00 [21:59:08]MH_I2C_Read... [21:59:08]Read from MH i2c: E2 17 00 79 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 4A [21:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:59:08]wFMCommunicate OK [21:59:08]CreateOFDProtocolMessage done [21:59:08]OFDSenderStorePacket 57864 [21:59:08]StoreOFDPacket docnum=57864 [21:59:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 0A 97 07 01 F5 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B3 02 00 00 F4 03 04 00 27 EB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 08 E2 00 00 35 04 06 00 B7 48 02 2C C6 41 E8 8F 90 09 72 D8 CB 6D [21:59:08]CheckFolder [21:59:08]dirname=/storage/ofd_packets [21:59:08]CheckFolder done [21:59:08]ProducePacketName [21:59:08]name=ofd_packets/00057864 [21:59:08]NVStorageSaveData ofd_packets/00057864 [21:59:08]File name is /storage/ofd_packets/00057864 [21:59:08]Write 301 bytes [21:59:08]NVStorageSaveData done [21:59:08]OFDSenderStorePacket done [21:59:08]KKMCreateOFDPacket done [21:59:08]NVStorageSaveData kkm_last_timestamp [21:59:08]File name is /storage/kkm_last_timestamp [21:59:08]Write 4 bytes [21:59:08]NVStorageSaveData done [21:59:08]ExternCall_PrintAddStr [21:59:08]wPrintStart [21:59:08]Write to MH i2c: 01 00 00 7A 04 7E [21:59:08]Write i2c OK [21:59:08]MH_I2C_Read... [21:59:08]Read from MH i2c: 01 [21:59:08]MH_I2C_Read... [21:59:08]Read from MH i2c: 01 07 00 [21:59:08]MH_I2C_Read... [21:59:08]Read from MH i2c: 01 07 00 7A 04 00 00 00 00 00 FF 0F 93 [21:59:08]RasterBufferAndPrint [21:59:08]line Счет N : (1)543205 [21:59:08]line ИНН: 02508201610067 [21:59:08]line Контрольно-Кассовый Чек [21:59:08]line ПРОДАЖА [21:59:08]line ТРК (МРК, ГНК) : 12 [21:59:08]line Товар: 2710124130 [21:59:08]line Аи-92-К-5 [21:59:08]line 7.540 * 66.40 [21:59:08]line = 500.66 [21:59:08]line НДС 12% НСП 1% [21:59:08]line > о реализуемом товаре [21:59:08]line ОКРУГЛЕНИЕ: -0.66 [21:59:08]line ИТОГО: 500.00 [21:59:08]line Внесено: 500.00 [21:59:08]line СДАЧА: 0.00 [21:59:08]line НСП 1% : 4.43 [21:59:08]line НДС 12% : 53.17 [21:59:08]OFD Sender: Processing packet 57864 [packets to send 50, broken 49] [21:59:08]line Наличными: 500.00 [21:59:08]ProducePacketName [21:59:08]line Безнал.: 0.00 [21:59:08]name=ofd_packets/00057864 [21:59:08]OFD Sender: To server: pG, [21:59:08]CommunicateWithHost lk.salyk.kg:30040 [21:59:08]ConnectInit lk.salyk.kg [21:59:08]line Место: АЗС № 117 "Партнер Нефть" [21:59:08]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [21:59:08]line СНО: Общий режим [21:59:08]line Чек 691 02.06.2024 21:59 [21:59:08]line Смена: 69 ФФД: 1.0 [21:59:08]line ЗНМ: 0300000048 [21:59:08]line РНМ: 0000000000151680 [21:59:08]line Версия ККМ: v1.0 [21:59:08]line ФМ: 0000000000959414 [21:59:08]line ФД: 57864 [21:59:08]line ФПД: 201519902017089 [21:59:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T215903&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57864&fm=201519902017089&tin=02508201610067®Number=0000000000151680&sum=50000 [21:59:08]written 0, free lines is 4095 [21:59:08]Connected sock=11 [21:59:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 0A 97 07 01 F5 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 Write to MH i2c: 04 01 06 00 00 00 00 00 00 00 00 00 1F 04 02 00 01 A5 00 04 12 A9 [21:59:09]04 Write i2c OK [21:59:09]04 MH_I2C_Read... [21:59:09]00 Read from MH i2c: B3 01 02 00 00 F4 03 04 [21:59:09]00 MH_I2C_Read... [21:59:09]27 EB 5C 66 0E 04 Read from MH i2c: 04 01 00 07 45 00 00 [21:59:09]00 00 B9 04 01 00 MH_I2C_Read... [21:59:09]01 0D 04 10 Read from MH i2c: 00 01 30 30 30 30 30 30 07 30 00 30 A5 30 04 30 00 31 35 31 36 38 30 00 11 00 04 00 00 E6 0C A2 [21:59:09]RasterBufferAndPrint [21:59:09]line [21:59:09]10 line [21:59:09]00 line [21:59:09]30 line [21:59:09]30 line [21:59:09]30 30 30 30 30 30 30 written 0, free lines is 3593 [21:59:09]30 39 35 39 34 31 MH_Cut [21:59:09]34 Write to MH i2c: 10 D1 04 04 00 08 E2 00 01 00 00 35 AC 04 04 06 01 00 B7 48 02 2C C6 82 41 [21:59:09]E8 8F 90 09 72 D8 CB 6D Write i2c OK [21:59:09] [21:59:09]MH_I2C_Read... [21:59:09]Read from MH i2c: D1 [21:59:09]MH_I2C_Read... [21:59:09]Read from MH i2c: D1 01 00 [21:59:09]MH_I2C_Read... [21:59:09]Read from MH i2c: D1 01 00 AC 04 00 81 [21:59:09]Write to MH i2c: 01 00 00 AD 04 B1 [21:59:09]Write i2c OK [21:59:09]MH_I2C_Read... [21:59:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 9C 29 47 00 4B 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 39 35 39 34 31 34 10 04 04 00 08 E2 00 00 F4 03 04 00 FB 95 5C 66 B6 04 01 00 00 52 97 11 93 7D 69 C0 61 [21:59:09]CommunicateWithHost err = 0 [21:59:09]CheckOFDResponse [21:59:09]1017 (14) - 77093643461234 [21:59:09]1041 (16) - 0000000000959414 [21:59:09]1040 (4) - 57864 [21:59:09]1012 (4) - 02.06.2024 15:55 [21:59:09]1206 (1) - 0 [21:59:09]OFD Sender: Remove packet 57864 [21:59:09]ProducePacketName [21:59:09]name=ofd_packets/00057864 [21:59:09]NVStorageDeleteData [21:59:09]*** Cut start [21:59:09]*** Partial cut [21:59:09]*** CUTSNS_PIN = 1 [21:59:10]*** CUTSNS_PIN = 0 [21:59:10]*** Brake cut motor [21:59:10]OFD Sender: No OFD packet to send [21:59:10]Read from MH i2c: 01 [21:59:10]MH_I2C_Read... [21:59:10]*** Stop cut motor [21:59:10]*** Cut end [21:59:10]Read from MH i2c: 01 07 00 [21:59:10]MH_I2C_Read... [21:59:10]Read from MH i2c: 01 07 00 AD 04 00 00 00 00 00 FF 0F C6 [21:59:10]process_action close_receipt done [21:59:10]requested_data is exist [21:59:10]produce_requested_data [21:59:10]requested_item fm.sn is exist - process it [21:59:10]wFMCommunicate request_size=4 [21:59:10]MH_SAM_APDU [21:59:10]CAPDU: 80 11 00 00 [21:59:10]Write to MH i2c: E2 08 00 AE 04 80 11 00 00 00 00 00 00 2C [21:59:10]Write i2c OK [21:59:10]MH_I2C_Read... [21:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:10]Read from MH i2c: E2 [21:59:10]MH_I2C_Read... [21:59:10]Read from MH i2c: E2 17 00 [21:59:10]MH_I2C_Read... [21:59:10]Read from MH i2c: E2 17 00 AE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 7F [21:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [21:59:10]wFMCommunicate OK [21:59:10]requested_item fd.num is exist - process it [21:59:10]SAM_PROTO_GetFieldsCounters [21:59:10]wFMCommunicate request_size=4 [21:59:10]MH_SAM_APDU [21:59:10]CAPDU: 80 13 00 00 [21:59:10]Write to MH i2c: E2 08 00 AF 04 80 13 00 00 00 00 00 00 2F [21:59:10]Write i2c OK [21:59:10]MH_I2C_Read... [21:59:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:11]Read from MH i2c: E2 [21:59:11]MH_I2C_Read... [21:59:11]Read from MH i2c: E2 62 00 [21:59:11]MH_I2C_Read... [21:59:11]Read from MH i2c: E2 62 00 AF 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 08 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B3 02 00 00 5E 04 04 00 B3 02 00 00 57 04 04 00 B4 02 00 00 19 04 04 00 00 00 00 00 90 00 9A [21:59:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 08 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B3 02 00 00 5E 04 04 00 B3 02 00 00 57 04 04 00 B4 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:59:11]wFMCommunicate OK [21:59:11]SAM_PROTO_GetFieldsCounters done [21:59:11]requested_item shift.num is exist - process it [21:59:11]requested_item shift.opened is exist - process it [21:59:11]req_shift_opened [21:59:11]FM_GetShiftState [21:59:11]SAM_PROTO_GetShiftState [21:59:11]wFMCommunicate request_size=4 [21:59:11]MH_SAM_APDU [21:59:11]CAPDU: 80 13 01 00 [21:59:11]Write to MH i2c: E2 08 00 B0 04 80 13 01 00 00 00 00 00 31 [21:59:11]Write i2c OK [21:59:11]MH_I2C_Read... [21:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:11]Read from MH i2c: E2 [21:59:11]MH_I2C_Read... [21:59:11]Read from MH i2c: E2 0E 00 [21:59:11]MH_I2C_Read... [21:59:11]Read from MH i2c: E2 0E 00 B0 04 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 04 [21:59:11]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [21:59:11]wFMCommunicate OK [21:59:11]SAM_PROTO_GetShiftState done [21:59:11]FM_GetShiftState done [21:59:11]req_shift_opened done [21:59:11]requested_item shift.open_date is exist - process it [21:59:11]req_shift_open_date [21:59:11]req_shift_open_date done [21:59:11]produce_requested_data done [21:59:11]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57864,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [21:59:11]process_action_free close_receipt [21:59:11]json_value_free [21:59:11]json_value_free done [21:59:11]process_json_proto returns [21:59:11]Send response to host [21:59:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57864,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [21:59:11]free response buf [21:59:11]execute_script done [21:59:11]execute_script returns [21:59:11]free content buf [21:59:11]Sock 8.Close socket [21:59:11]Sock 8.Thread stoped [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:13]ConnectInit Can't connect to host [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:32]accept exits with 10 [22:01:32]New connection [22:01:32]New thread 3066592612 created [22:01:32]Thread 3066735972 joined [22:01:32]Waiting for new connection... [22:01:32] Sock 10.Parse request [22:01:32]Sock 10.Check first char [22:01:32]Sock 10.First char is OK [22:01:32]request: POST /json_proto HTTP/1.0 [22:01:32]Method: POST [22:01:32]URL: /json_proto [22:01:32]Method is POST - this is cgi request [22:01:32]url: /json_proto [22:01:32]query_string will be loaded in cgi processing [22:01:32]execute_cgi json_proto POST (null) [22:01:32]execute_cgi path=json_proto method=POST [22:01:32]POST find Content-Length [22:01:32]Host: 172.17.60.68:8080 [22:01:32]Content-Length: 677 [22:01:32]Content-Type: application/json [22:01:32] [22:01:32]POST finish read [22:01:32]Found Content-Length = 677 [22:01:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543206", "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 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:32]execute_script... [22:01:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543206", "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 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:32]POST & json_proto [22:01:32]process_json_proto [22:01:32]json parsed OK: [22:01:32]protocol is kg_v1.0 [22:01:32]action value=close_receipt [22:01:32]process_action close_receipt [22:01:32]cmd_close_receipt [22:01:32]MH_GetDate [22:01:32]Write to MH i2c: F0 00 00 B1 04 A4 [22:01:32]Write i2c OK [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: F0 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: F0 09 00 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: F0 09 00 B1 04 00 BC EB 5C 66 8D A7 02 66 B2 [22:01:32]GetLastDocTimeStamp 1717365543 [22:01:32]current date 1717365692 [22:01:32]FM_GetShiftState [22:01:32]SAM_PROTO_GetShiftState [22:01:32]wFMCommunicate request_size=4 [22:01:32]MH_SAM_APDU [22:01:32]CAPDU: 80 13 01 00 [22:01:32]Write to MH i2c: E2 08 00 B2 04 80 13 01 00 00 00 00 00 33 [22:01:32]Write i2c OK [22:01:32]MH_I2C_Read... [22:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:32]Read from MH i2c: E2 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: E2 0E 00 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: E2 0E 00 B2 04 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 06 [22:01:32]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:01:32]wFMCommunicate OK [22:01:32]SAM_PROTO_GetShiftState done [22:01:32]FM_GetShiftState done [22:01:32]opened in 1717288520 [22:01:32]opened+sec_in_day 1717374920 [22:01:32]quantity*price = 50065 [22:01:32]sum+1 = 50067 [22:01:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 692 02.06.2024 22:01 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57865 ФПД: 235485265279128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220133&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57865&fm=235485265279128&tin=02508201610067®Number=0000000000151680&sum=50000 [22:01:35]StoreToDocumentArchive [22:01:35]shift 69 fd 57865 [22:01:35]save to /storage/0069/doc_00057865 [22:01:35]save last doc name /storage/0069/doc_00057865 to /storage/kkm_last_doc_name [22:01:35]OFD Sender: No OFD packet to send [22:01:35]save OK [22:01:35]Clear old archive folders... [22:01:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:35]tlvbuf is 01AF04B0 [22:01:35]SAM_PROTO_ClearQueue [22:01:35]wFMCommunicate request_size=4 [22:01:35]MH_SAM_APDU [22:01:35]CAPDU: 80 09 00 00 [22:01:35]Write to MH i2c: E2 08 00 BF 04 80 09 00 00 00 00 00 00 35 [22:01:35]Write i2c OK [22:01:35]MH_I2C_Read... [22:01:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:35]Read from MH i2c: E2 [22:01:35]MH_I2C_Read... [22:01:35]Read from MH i2c: E2 03 00 [22:01:35]MH_I2C_Read... [22:01:35]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [22:01:35]RAPDU: 90 00 [22:01:35]wFMCommunicate OK [22:01:35]SAM_PROTO_ClearQueue done [22:01:35]KKMCreateOFDPacket [22:01:35]OFDProtocolAddRootSTLVToBuf [22:01:35]FM_MakeSignedData [22:01:35]FM_MakeSignedData [22:01:35]SAM_PROTO_SignData [22:01:35]wFMCommunicate request_size=4 [22:01:35]MH_SAM_APDU [22:01:35]CAPDU: 80 0D 01 02 [22:01:35]Write to MH i2c: E2 08 00 C0 04 80 0D 01 02 00 00 00 00 3D [22:01:35]Write i2c OK [22:01:35]MH_I2C_Read... [22:01:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:35]Read from MH i2c: E2 [22:01:35]MH_I2C_Read... [22:01:35]Read from MH i2c: E2 03 00 [22:01:35]MH_I2C_Read... [22:01:35]Read from MH i2c: E2 03 00 C0 04 00 90 00 38 [22:01:35]RAPDU: 90 00 [22:01:35]wFMCommunicate OK [22:01:35]wFMCommunicate request_size=255 [22:01:35]MH_SAM_APDU [22:01: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 B4 02 00 00 F4 03 04 00 BD EB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 09 E2 00 00 35 04 06 00 D6 [22:01:36]Write to MH i2c: E2 02 01 C1 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B4 02 00 00 F4 03 04 00 BD EB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 09 E2 00 00 35 04 06 00 D6 00 00 13 [22:01:37]Write i2c OK [22:01:37]MH_I2C_Read... [22:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:37]Read from MH i2c: E2 [22:01:37]MH_I2C_Read... [22:01:37]Read from MH i2c: E2 03 00 [22:01:37]MH_I2C_Read... [22:01:37]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [22:01:37]RAPDU: 90 00 [22:01:37]wFMCommunicate OK [22:01:37]wFMCommunicate request_size=10 [22:01:37]MH_SAM_APDU [22:01:37]CAPDU: 80 0D 02 02 05 2C 2F 96 38 98 [22:01:37]Write to MH i2c: E2 0D 00 C2 04 80 0D 02 02 05 00 2C 2F 96 38 98 00 00 0B [22:01:37]Write i2c OK [22:01:37]MH_I2C_Read... [22:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:37]Read from MH i2c: E2 [22:01:37]MH_I2C_Read... [22:01:37]Read from MH i2c: E2 03 00 [22:01:37]MH_I2C_Read... [22:01:37]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [22:01:37]RAPDU: 90 00 [22:01:37]wFMCommunicate OK [22:01:37]wFMCommunicate request_size=4 [22:01:37]MH_SAM_APDU [22:01:37]CAPDU: 80 0D 03 02 [22:01:37]Write to MH i2c: E2 08 00 C3 04 80 0D 03 02 00 00 00 00 42 [22:01:37]Write i2c OK [22:01:37]MH_I2C_Read... [22:01:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:37]Read from MH i2c: E2 [22:01:37]MH_I2C_Read... [22:01:37]Read from MH i2c: E2 0B 00 [22:01:37]MH_I2C_Read... [22:01:37]Read from MH i2c: E2 0B 00 C3 04 00 EB E6 AC 41 F7 99 B5 DF 90 00 25 [22:01:37]RAPDU: EB E6 AC 41 F7 99 B5 DF 90 00 [22:01:37]wFMCommunicate OK [22:01:37]SAM_PROTO_SignData done [22:01:37]FM_MakeSignedData done [22:01:37]CreateOFDProtocolMessage [22:01:37]wFMCommunicate request_size=4 [22:01:37]MH_SAM_APDU [22:01:37]CAPDU: 80 11 00 00 [22:01:37]Write to MH i2c: E2 08 00 C4 04 80 11 00 00 00 00 00 00 42 [22:01:37]Write i2c OK [22:01:37]MH_I2C_Read... [22:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:37]Read from MH i2c: E2 [22:01:37]MH_I2C_Read... [22:01:37]Read from MH i2c: E2 17 00 [22:01:37]MH_I2C_Read... [22:01:37]Read from MH i2c: E2 17 00 C4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 95 [22:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:01:38]wFMCommunicate OK [22:01:38]CreateOFDProtocolMessage done [22:01:38]OFDSenderStorePacket 57865 [22:01:38]StoreOFDPacket docnum=57865 [22:01:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 1C BE 07 01 E2 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B4 02 00 00 F4 03 04 00 BD EB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 09 E2 00 00 35 04 06 00 D6 2C 2F 96 38 98 EB E6 AC 41 F7 99 B5 DF [22:01:38]CheckFolder [22:01:38]dirname=/storage/ofd_packets [22:01:38]CheckFolder done [22:01:38]ProducePacketName [22:01:38]name=ofd_packets/00057865 [22:01:38]NVStorageSaveData ofd_packets/00057865 [22:01:38]File name is /storage/ofd_packets/00057865 [22:01:38]Write 301 bytes [22:01:38]NVStorageSaveData done [22:01:38]OFDSenderStorePacket done [22:01:38]KKMCreateOFDPacket done [22:01:38]NVStorageSaveData kkm_last_timestamp [22:01:38]File name is /storage/kkm_last_timestamp [22:01:38]Write 4 bytes [22:01:38]NVStorageSaveData done [22:01:38]ExternCall_PrintAddStr [22:01:38]wPrintStart [22:01:38]Write to MH i2c: 01 00 00 C5 04 C9 [22:01:38]OFD Sender: Processing packet 57865 [packets to send 50, broken 49] [22:01:38]ProducePacketName [22:01:38]name=ofd_packets/00057865 [22:01:38]OFD Sender: To server: pG, [22:01:38]CommunicateWithHost lk.salyk.kg:30040 [22:01:38]ConnectInit lk.salyk.kg [22:01:38]Write i2c OK [22:01:38]MH_I2C_Read... [22:01:38]Read from MH i2c: 01 [22:01:38]MH_I2C_Read... [22:01:38]Read from MH i2c: 01 07 00 [22:01:38]MH_I2C_Read... [22:01:38]Read from MH i2c: 01 07 00 C5 04 00 00 00 00 00 FF 0F DE [22:01:38]RasterBufferAndPrint [22:01:38]line Счет N : (1)543206 [22:01:38]line ИНН: 02508201610067 [22:01:38]line Контрольно-Кассовый Чек [22:01:38]line ПРОДАЖА [22:01:38]line ТРК (МРК, ГНК) : 12 [22:01:38]Connected sock=11 [22:01:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 1C BE 07 01 E2 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 line Товар: 2710124130 [22:01:38]0C line Аи-92-К-5 [22:01:38]00 line 7.540 * 66.40 [22:01:38]D0 line = 500.66 [22:01:38]90 line НДС 12% НСП 1% [22:01:38]D0 line > о реализуемом товаре [22:01:38]B8 line ОКРУГЛЕНИЕ: -0.66 [22:01:38]2D 39 32 2D D0 line ИТОГО: 500.00 [22:01:38]9A line Внесено: 500.00 [22:01:38]2D line СДАЧА: 0.00 [22:01:38]35 line НСП 1% : 4.43 [22:01:38]FF line НДС 12% : 53.17 [22:01:38]03 line Наличными: 500.00 [22:01:38]08 line Безнал.: 0.00 [22:01:38]00 line Место: АЗС № 117 "Партнер Нефть" [22:01:38]03 line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:01:38]line СНО: Общий режим [22:01:38]line Чек 692 02.06.2024 22:01 [22:01:38]line Смена: 69 ФФД: 1.0 [22:01:38]line ЗНМ: 0300000048 [22:01:38]74 line РНМ: 0000000000151680 [22:01:38]1D line Версия ККМ: v1.0 [22:01:38]00 line ФМ: 0000000000959414 [22:01:38]00 line ФД: 57865 [22:01:38]00 line ФПД: 235485265279128 [22:01:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220133&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57865&fm=235485265279128&tin=02508201610067®Number=0000000000151680&sum=50000 [22:01:38]written 0, free lines is 4095 [22:01:38]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 B4 02 00 00 F4 03 04 00 BD EB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 09 E2 00 00 35 04 06 00 D6 2C 2F 96 38 98 EB E6 AC 41 F7 99 B5 Write to MH i2c: DF 01 [22:01:39]00 00 F0 04 F4 [22:01:39]Write i2c OK [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: 01 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: 01 07 00 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: 01 07 00 F0 04 00 00 00 00 00 BE 0C C5 [22:01:39]RasterBufferAndPrint [22:01:39]line [22:01:39]line [22:01:39]line [22:01:39]line [22:01:39]line [22:01:39]written 0, free lines is 3365 [22:01:39]MH_Cut [22:01:39]Write to MH i2c: D1 01 00 F7 04 01 CD [22:01:39]Write i2c OK [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: D1 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: D1 01 00 [22:01:39]MH_I2C_Read... [22:01:39]Read from MH i2c: D1 01 Received data: 00 87 F7 95 04 F6 00 70 CC 47 [22:01:39]2C Write to MH i2c: 01 00 00 F8 04 01 FC 00 [22:01:39]Write i2c OK [22:01:39]MH_I2C_Read... [22:01:39]30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 23 50 47 00 B4 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 09 E2 00 00 F4 03 04 00 91 96 5C 66 B6 04 01 00 00 54 66 39 FC F9 98 D7 67 [22:01:39]CommunicateWithHost err = 0 [22:01:39]CheckOFDResponse [22:01:39]1017 (14) - 77093643461234 [22:01:39]1041 (16) - 0000000000959414 [22:01:39]1040 (4) - 57865 [22:01:39]1012 (4) - 02.06.2024 15:58 [22:01:39]1206 (1) - 0 [22:01:39]OFD Sender: Remove packet 57865 [22:01:39]ProducePacketName [22:01:39]name=ofd_packets/00057865 [22:01:39]NVStorageDeleteData [22:01:40]*** Cut start [22:01:40]*** Partial cut [22:01:40]*** CUTSNS_PIN = 1 [22:01:40]*** CUTSNS_PIN = 0 [22:01:40]OFD Sender: No OFD packet to send [22:01:40]*** Brake cut motor [22:01:40]Read from MH i2c: 01 [22:01:40]MH_I2C_Read... [22:01:40]*** Stop cut motor [22:01:40]*** Cut end [22:01:40]Read from MH i2c: 01 07 00 [22:01:40]MH_I2C_Read... [22:01:40]Read from MH i2c: 01 07 00 F8 04 00 00 00 00 00 FF 0F 11 [22:01:40]process_action close_receipt done [22:01:40]requested_data is exist [22:01:40]produce_requested_data [22:01:40]requested_item fm.sn is exist - process it [22:01:40]wFMCommunicate request_size=4 [22:01:40]MH_SAM_APDU [22:01:40]CAPDU: 80 11 00 00 [22:01:40]Write to MH i2c: E2 08 00 F9 04 80 11 00 00 00 00 00 00 77 [22:01:40]Write i2c OK [22:01:40]MH_I2C_Read... [22:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:40]Read from MH i2c: E2 [22:01:40]MH_I2C_Read... [22:01:40]Read from MH i2c: E2 17 00 [22:01:40]MH_I2C_Read... [22:01:40]Read from MH i2c: E2 17 00 F9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 CA [22:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:01:41]wFMCommunicate OK [22:01:41]requested_item fd.num is exist - process it [22:01:41]SAM_PROTO_GetFieldsCounters [22:01:41]wFMCommunicate request_size=4 [22:01:41]MH_SAM_APDU [22:01:41]CAPDU: 80 13 00 00 [22:01:41]Write to MH i2c: E2 08 00 FA 04 80 13 00 00 00 00 00 00 7A [22:01:41]Write i2c OK [22:01:41]MH_I2C_Read... [22:01:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:41]Read from MH i2c: E2 [22:01:41]MH_I2C_Read... [22:01:41]Read from MH i2c: E2 62 00 [22:01:41]MH_I2C_Read... [22:01:41]Read from MH i2c: E2 62 00 FA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 09 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B4 02 00 00 5E 04 04 00 B4 02 00 00 57 04 04 00 B5 02 00 00 19 04 04 00 00 00 00 00 90 00 E9 [22:01:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 09 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B4 02 00 00 5E 04 04 00 B4 02 00 00 57 04 04 00 B5 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:41]wFMCommunicate OK [22:01:41]SAM_PROTO_GetFieldsCounters done [22:01:41]requested_item shift.num is exist - process it [22:01:41]requested_item shift.opened is exist - process it [22:01:41]req_shift_opened [22:01:41]FM_GetShiftState [22:01:41]SAM_PROTO_GetShiftState [22:01:41]wFMCommunicate request_size=4 [22:01:41]MH_SAM_APDU [22:01:41]CAPDU: 80 13 01 00 [22:01:41]Write to MH i2c: E2 08 00 FB 04 80 13 01 00 00 00 00 00 7C [22:01:41]Write i2c OK [22:01:41]MH_I2C_Read... [22:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:41]Read from MH i2c: E2 [22:01:41]MH_I2C_Read... [22:01:41]Read from MH i2c: E2 0E 00 [22:01:41]MH_I2C_Read... [22:01:41]Read from MH i2c: E2 0E 00 FB 04 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 4F [22:01:41]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:01:41]wFMCommunicate OK [22:01:41]SAM_PROTO_GetShiftState done [22:01:41]FM_GetShiftState done [22:01:41]req_shift_opened done [22:01:41]requested_item shift.open_date is exist - process it [22:01:41]req_shift_open_date [22:01:41]req_shift_open_date done [22:01:41]produce_requested_data done [22:01:41]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57865,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:01:41]process_action_free close_receipt [22:01:41]json_value_free [22:01:41]json_value_free done [22:01:41]process_json_proto returns [22:01:41]Send response to host [22:01:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57865,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:01:41]free response buf [22:01:41]execute_script done [22:01:41]execute_script returns [22:01:41]free content buf [22:01:41]Sock 10.Close socket [22:01:41]Sock 10.Thread stoped [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:25]accept exits with 9 [22:02:25]New connection [22:02:25]New thread 3066735972 created [22:02:25]Thread 3066592612 joined [22:02:25]Waiting for new connection... [22:02:25] Sock 9.Parse request [22:02:25]Sock 9.Check first char [22:02:25]Sock 9.First char is OK [22:02:25]request: POST /json_proto HTTP/1.0 [22:02:25]Method: POST [22:02:25]URL: /json_proto [22:02:25]Method is POST - this is cgi request [22:02:25]url: /json_proto [22:02:25]query_string will be loaded in cgi processing [22:02:25]execute_cgi json_proto POST (null) [22:02:25]execute_cgi path=json_proto method=POST [22:02:25]POST find Content-Length [22:02:25]Host: 172.17.60.68:8080 [22:02:25]Content-Length: 682 [22:02:25]Content-Type: application/json [22:02:25] [22:02:25]POST finish read [22:02:25]Found Content-Length = 682 [22:02:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543207", "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:02:25]execute_script... [22:02:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543207", "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:02:25]POST & json_proto [22:02:25]process_json_proto [22:02:25]json parsed OK: [22:02:25]protocol is kg_v1.0 [22:02:25]action value=close_receipt [22:02:25]process_action close_receipt [22:02:25]cmd_close_receipt [22:02:25]MH_GetDate [22:02:25]Write to MH i2c: F0 00 00 FC 04 EF [22:02:25]Write i2c OK [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: F0 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: F0 09 00 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: F0 09 00 FC 04 00 F2 EB 5C 66 8D A7 02 66 33 [22:02:25]GetLastDocTimeStamp 1717365693 [22:02:25]current date 1717365746 [22:02:25]FM_GetShiftState [22:02:25]SAM_PROTO_GetShiftState [22:02:25]wFMCommunicate request_size=4 [22:02:25]MH_SAM_APDU [22:02:25]CAPDU: 80 13 01 00 [22:02:25]Write to MH i2c: E2 08 00 FD 04 80 13 01 00 00 00 00 00 7E [22:02:25]Write i2c OK [22:02:25]MH_I2C_Read... [22:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:25]Read from MH i2c: E2 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: E2 0E 00 [22:02:25]MH_I2C_Read... [22:02:25]Read from MH i2c: E2 0E 00 FD 04 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 51 [22:02:25]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:02:25]wFMCommunicate OK [22:02:25]SAM_PROTO_GetShiftState done [22:02:25]FM_GetShiftState done [22:02:25]opened in 1717288520 [22:02:25]opened+sec_in_day 1717374920 [22:02:25]quantity*price = 100064 [22:02:25]sum+1 = 100066 [22:02:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 693 02.06.2024 22:02 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57866 ФПД: 154653182283249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220226&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57866&fm=154653182283249&tin=02508201610067®Number=0000000000151680&sum=100000 [22:02:28]StoreToDocumentArchive [22:02:28]shift 69 fd 57866 [22:02:28]save to /storage/0069/doc_00057866 [22:02:28]save last doc name /storage/0069/doc_00057866 to /storage/kkm_last_doc_name [22:02:28]save OK [22:02:28]Clear old archive folders... [22:02:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:02:28]tlvbuf is 01B45EF0 [22:02:28]SAM_PROTO_ClearQueue [22:02:28]wFMCommunicate request_size=4 [22:02:28]MH_SAM_APDU [22:02:28]CAPDU: 80 09 00 00 [22:02:28]Write to MH i2c: E2 08 00 0A 05 80 09 00 00 00 00 00 00 81 [22:02:29]Write i2c OK [22:02:29]MH_I2C_Read... [22:02:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:29]Read from MH i2c: E2 [22:02:29]MH_I2C_Read... [22:02:29]Read from MH i2c: E2 03 00 [22:02:29]MH_I2C_Read... [22:02:29]Read from MH i2c: E2 03 00 0A 05 00 90 00 83 [22:02:29]RAPDU: 90 00 [22:02:29]wFMCommunicate OK [22:02:29]SAM_PROTO_ClearQueue done [22:02:29]KKMCreateOFDPacket [22:02:29]OFDProtocolAddRootSTLVToBuf [22:02:29]FM_MakeSignedData [22:02:29]FM_MakeSignedData [22:02:29]SAM_PROTO_SignData [22:02:29]wFMCommunicate request_size=4 [22:02:29]MH_SAM_APDU [22:02:29]CAPDU: 80 0D 01 02 [22:02:29]Write to MH i2c: E2 08 00 0B 05 80 0D 01 02 00 00 00 00 89 [22:02:29]Write i2c OK [22:02:29]MH_I2C_Read... [22:02:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:29]Read from MH i2c: E2 [22:02:29]MH_I2C_Read... [22:02:29]Read from MH i2c: E2 03 00 [22:02:29]MH_I2C_Read... [22:02:29]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [22:02:29]RAPDU: 90 00 [22:02:29]wFMCommunicate OK [22:02:29]wFMCommunicate request_size=255 [22:02:29]MH_SAM_APDU [22:02: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 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 B5 02 00 00 F4 03 04 00 F2 EB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0A E2 00 00 35 04 06 00 8C [22:02:29]Write to MH i2c: E2 02 01 0C 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 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 B5 02 00 00 F4 03 04 00 F2 EB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 OFD Sender: No OFD packet to send [22:02:30]30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0A E2 00 00 35 04 06 00 8C 00 00 9C [22:02:30]Write i2c OK [22:02:30]MH_I2C_Read... [22:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:30]Read from MH i2c: E2 [22:02:30]MH_I2C_Read... [22:02:30]Read from MH i2c: E2 03 00 [22:02:30]MH_I2C_Read... [22:02:30]Read from MH i2c: E2 03 00 0C 05 00 90 00 85 [22:02:30]RAPDU: 90 00 [22:02:30]wFMCommunicate OK [22:02:30]wFMCommunicate request_size=10 [22:02:30]MH_SAM_APDU [22:02:30]CAPDU: 80 0D 02 02 05 A7 FF FE 4D F1 [22:02:30]Write to MH i2c: E2 0D 00 0D 05 80 0D 02 02 05 00 A7 FF FE 4D F1 00 00 78 [22:02:30]Write i2c OK [22:02:30]MH_I2C_Read... [22:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:31]Read from MH i2c: E2 [22:02:31]MH_I2C_Read... [22:02:31]Read from MH i2c: E2 03 00 [22:02:31]MH_I2C_Read... [22:02:31]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [22:02:31]RAPDU: 90 00 [22:02:31]wFMCommunicate OK [22:02:31]wFMCommunicate request_size=4 [22:02:31]MH_SAM_APDU [22:02:31]CAPDU: 80 0D 03 02 [22:02:31]Write to MH i2c: E2 08 00 0E 05 80 0D 03 02 00 00 00 00 8E [22:02:31]Write i2c OK [22:02:31]MH_I2C_Read... [22:02:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:31]Read from MH i2c: E2 [22:02:31]MH_I2C_Read... [22:02:31]Read from MH i2c: E2 0B 00 [22:02:31]MH_I2C_Read... [22:02:31]Read from MH i2c: E2 0B 00 0E 05 00 C0 0E 50 39 1E E8 D1 F2 90 00 AF [22:02:31]RAPDU: C0 0E 50 39 1E E8 D1 F2 90 00 [22:02:31]wFMCommunicate OK [22:02:31]SAM_PROTO_SignData done [22:02:31]FM_MakeSignedData done [22:02:31]CreateOFDProtocolMessage [22:02:31]wFMCommunicate request_size=4 [22:02:31]MH_SAM_APDU [22:02:31]CAPDU: 80 11 00 00 [22:02:31]Write to MH i2c: E2 08 00 0F 05 80 11 00 00 00 00 00 00 8E [22:02:31]Write i2c OK [22:02:31]MH_I2C_Read... [22:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:31]Read from MH i2c: E2 [22:02:31]MH_I2C_Read... [22:02:31]Read from MH i2c: E2 17 00 [22:02:31]MH_I2C_Read... [22:02:31]Read from MH i2c: E2 17 00 0F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 E1 [22:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:02:31]wFMCommunicate OK [22:02:31]CreateOFDProtocolMessage done [22:02:31]OFDSenderStorePacket 57866 [22:02:31]StoreOFDPacket docnum=57866 [22:02:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 8B BC 07 01 04 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 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 B5 02 00 00 F4 03 04 00 F2 EB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0A E2 00 00 35 04 06 00 8C A7 FF FE 4D F1 C0 0E 50 39 1E E8 D1 F2 [22:02:31]CheckFolder [22:02:31]dirname=/storage/ofd_packets [22:02:31]CheckFolder done [22:02:31]ProducePacketName [22:02:31]name=ofd_packets/00057866 [22:02:31]NVStorageSaveData ofd_packets/00057866 [22:02:31]File name is /storage/ofd_packets/00057866 [22:02:31]Write 301 bytes [22:02:31]NVStorageSaveData done [22:02:31]OFDSenderStorePacket done [22:02:31]KKMCreateOFDPacket done [22:02:31]NVStorageSaveData kkm_last_timestamp [22:02:31]File name is /storage/kkm_last_timestamp [22:02:31]Write 4 bytes [22:02:31]NVStorageSaveData done [22:02:31]ExternCall_PrintAddStr [22:02:31]wPrintStart [22:02:31]Write to MH i2c: 01 00 00 10 05 15 [22:02:31]OFD Sender: Processing packet 57866 [packets to send 50, broken 49] [22:02:31]ProducePacketName [22:02:31]name=ofd_packets/00057866 [22:02:31]OFD Sender: To server: pG, [22:02:31]CommunicateWithHost lk.salyk.kg:30040 [22:02:31]ConnectInit lk.salyk.kg [22:02:31]Write i2c OK [22:02:31]MH_I2C_Read... [22:02:31]Read from MH i2c: 01 [22:02:31]MH_I2C_Read... [22:02:31]Read from MH i2c: 01 07 00 [22:02:31]MH_I2C_Read... [22:02:31]Read from MH i2c: 01 07 00 10 05 00 00 00 00 00 FF 0F 2A [22:02:31]RasterBufferAndPrint [22:02:31]line Счет N : (1)543207 [22:02:31]line ИНН: 02508201610067 [22:02:31]line Контрольно-Кассовый Чек [22:02:31]line ПРОДАЖА [22:02:31]line ТРК (МРК, ГНК) : 22 [22:02:31]Connected sock=11 [22:02:31]line Товар: 2710124130 [22:02:31]Data to sent: line Аи-92-К-5 [22:02:31]line 15.070 * 66.40 [22:02:31]line = 1000.65 [22:02:31]line НДС 12% НСП 1% [22:02:31]line > о реализуемом товаре [22:02:31]87 line ОКРУГЛЕНИЕ: -0.65 [22:02:31]95 line ИТОГО: 1000.00 [22:02:31]line Внесено: 1000.00 [22:02:31]line СДАЧА: 0.00 [22:02:31]line НСП 1% : 8.85 [22:02:31]line НДС 12% : 106.26 [22:02:31]F6 line Наличными: 1000.00 [22:02:31]70 line Безнал.: 0.00 [22:02:31]line Место: АЗС № 117 "Партнер Нефть" [22:02:31]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:02:31]line СНО: Общий режим [22:02:31]line Чек 693 02.06.2024 22:02 [22:02:31]47 line Смена: 69 ФФД: 1.0 [22:02:31]2C line ЗНМ: 0300000048 [22:02:31]01 line РНМ: 0000000000151680 [22:02:31]00 line Версия ККМ: v1.0 [22:02:31]30 line ФМ: 0000000000959414 [22:02:31]30 line ФД: 57866 [22:02:31]30 line ФПД: 154653182283249 [22:02:31]30 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220226&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57866&fm=154653182283249&tin=02508201610067®Number=0000000000151680&sum=100000 [22:02:31]30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 8B BC 07 01 04 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 written 0, free lines is 4095 [22:02:32]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 B5 02 00 00 F4 03 04 00 F2 EB 5C 66 0E 04 04 00 45 00 00 00 B9 04 Write to MH i2c: 01 01 00 00 01 00 0D 3B 04 05 10 40 00 30 30 30 30 [22:02:32]30 30 30 30 Write i2c OK [22:02:32]30 MH_I2C_Read... [22:02:32]30 31 35 31 36 38 Read from MH i2c: 30 01 11 04 10 00 30 [22:02:32]30 MH_I2C_Read... [22:02:32]30 30 Read from MH i2c: 30 01 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0A E2 00 00 35 04 06 00 8C A7 FF FE 4D F1 C0 0E 50 39 1E E8 D1 F2 [22:02:32]07 00 [22:02:32]MH_I2C_Read... [22:02:32]Read from MH i2c: 01 07 00 3B 05 00 00 00 00 00 81 0D D5 [22:02:32]RasterBufferAndPrint [22:02:32]line [22:02:32]line [22:02:32]line [22:02:32]line [22:02:32]line [22:02:32]written 0, free lines is 3789 [22:02:33]MH_Cut [22:02:33]Write to MH i2c: D1 01 00 42 05 01 19 [22:02:33]Write i2c OK [22:02:33]MH_I2C_Read... [22:02:33]Read from MH i2c: D1 [22:02:33]MH_I2C_Read... [22:02:33]Read from MH i2c: D1 01 00 [22:02:33]MH_I2C_Read... [22:02:33]Read from MH i2c: D1 01 00 42 05 00 18 [22:02:33]Write to MH i2c: 01 00 00 43 05 48 [22:02:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 7F EB 47 Write i2c OK [22:02:33]00 MH_I2C_Read... [22:02:33]4F C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 *** Cut start [22:02:33]31 *** Partial cut [22:02:33]34 *** CUTSNS_PIN = 1 [22:02:33]10 04 04 00 0A E2 *** CUTSNS_PIN = 0 [22:02:33]00 00 F4 03 04 00 C7 96 5C 66 B6 04 01 00 00 A9 B9 42 73 EA EF 8F CF [22:02:33]CommunicateWithHost err = 0 [22:02:33]CheckOFDResponse [22:02:33]1017 (14) - 77093643461234 [22:02:33]1041 (16) - 0000000000959414 [22:02:33]1040 (4) - 57866 [22:02:33]1012 (4) - 02.06.2024 15:59 [22:02:33]1206 (1) - 0 [22:02:33]OFD Sender: Remove packet 57866 [22:02:33]ProducePacketName [22:02:33]name=ofd_packets/00057866 [22:02:33]NVStorageDeleteData [22:02:33]*** Brake cut motor [22:02:34]Read from MH i2c: 01 [22:02:34]MH_I2C_Read... [22:02:34]*** Stop cut motor [22:02:34]*** Cut end [22:02:34]Read from MH i2c: 01 07 00 [22:02:34]MH_I2C_Read... [22:02:34]Read from MH i2c: 01 07 00 43 05 00 00 00 00 00 FF 0F 5D [22:02:34]process_action close_receipt done [22:02:34]requested_data is exist [22:02:34]produce_requested_data [22:02:34]requested_item fm.sn is exist - process it [22:02:34]wFMCommunicate request_size=4 [22:02:34]MH_SAM_APDU [22:02:34]CAPDU: 80 11 00 00 [22:02:34]Write to MH i2c: E2 08 00 44 OFD Sender: No OFD packet to send [22:02:34]05 80 11 00 00 00 00 00 00 C3 [22:02:34]Write i2c OK [22:02:34]MH_I2C_Read... [22:02:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:34]Read from MH i2c: E2 [22:02:34]MH_I2C_Read... [22:02:34]Read from MH i2c: E2 17 00 [22:02:34]MH_I2C_Read... [22:02:34]Read from MH i2c: E2 17 00 44 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 16 [22:02:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:02:34]wFMCommunicate OK [22:02:34]requested_item fd.num is exist - process it [22:02:34]SAM_PROTO_GetFieldsCounters [22:02:34]wFMCommunicate request_size=4 [22:02:34]MH_SAM_APDU [22:02:34]CAPDU: 80 13 00 00 [22:02:34]Write to MH i2c: E2 08 00 45 05 80 13 00 00 00 00 00 00 C6 [22:02:34]Write i2c OK [22:02:34]MH_I2C_Read... [22:02:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:34]Read from MH i2c: E2 [22:02:34]MH_I2C_Read... [22:02:34]Read from MH i2c: E2 62 00 [22:02:34]MH_I2C_Read... [22:02:34]Read from MH i2c: E2 62 00 45 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 0A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B5 02 00 00 5E 04 04 00 B5 02 00 00 57 04 04 00 B6 02 00 00 19 04 04 00 00 00 00 00 90 00 39 [22:02:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 0A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B5 02 00 00 5E 04 04 00 B5 02 00 00 57 04 04 00 B6 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:35]wFMCommunicate OK [22:02:35]SAM_PROTO_GetFieldsCounters done [22:02:35]requested_item shift.num is exist - process it [22:02:35]requested_item shift.opened is exist - process it [22:02:35]req_shift_opened [22:02:35]FM_GetShiftState [22:02:35]SAM_PROTO_GetShiftState [22:02:35]wFMCommunicate request_size=4 [22:02:35]MH_SAM_APDU [22:02:35]CAPDU: 80 13 01 00 [22:02:35]Write to MH i2c: E2 08 00 46 05 80 13 01 00 00 00 00 00 C8 [22:02:35]Write i2c OK [22:02:35]MH_I2C_Read... [22:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:35]Read from MH i2c: E2 [22:02:35]MH_I2C_Read... [22:02:35]Read from MH i2c: E2 0E 00 [22:02:35]MH_I2C_Read... [22:02:35]Read from MH i2c: E2 0E 00 46 05 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 9B [22:02:35]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:02:35]wFMCommunicate OK [22:02:35]SAM_PROTO_GetShiftState done [22:02:35]FM_GetShiftState done [22:02:35]req_shift_opened done [22:02:35]requested_item shift.open_date is exist - process it [22:02:35]req_shift_open_date [22:02:35]req_shift_open_date done [22:02:35]produce_requested_data done [22:02:35]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57866,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:02:35]process_action_free close_receipt [22:02:35]json_value_free [22:02:35]json_value_free done [22:02:35]process_json_proto returns [22:02:35]Send response to host [22:02:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57866,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:02:35]free response buf [22:02:35]execute_script done [22:02:35]execute_script returns [22:02:35]free content buf [22:02:35]Sock 9.Close socket [22:02:35]Sock 9.Thread stoped [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:32]ConnectInit Can't connect to host [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:42]accept exits with 10 [22:03:42]New connection [22:03:42]New thread 3066592612 created [22:03:42]Thread 3066735972 joined [22:03:42]Waiting for new connection... [22:03:42] Sock 10.Parse request [22:03:42]Sock 10.Check first char [22:03:42]Sock 10.First char is OK [22:03:42]request: POST /json_proto HTTP/1.0 [22:03:42]Method: POST [22:03:42]URL: /json_proto [22:03:42]Method is POST - this is cgi request [22:03:42]url: /json_proto [22:03:42]query_string will be loaded in cgi processing [22:03:42]execute_cgi json_proto POST (null) [22:03:42]execute_cgi path=json_proto method=POST [22:03:42]POST find Content-Length [22:03:42]Host: 172.17.60.68:8080 [22:03:42]Content-Length: 670 [22:03:42]Content-Type: application/json [22:03:42] [22:03:42]POST finish read [22:03:42]Found Content-Length = 670 [22:03:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 8.170, "sum" : 550.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:42]execute_script... [22:03:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 8.170, "sum" : 550.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:42]POST & json_proto [22:03:42]process_json_proto [22:03:42]json parsed OK: [22:03:42]protocol is kg_v1.0 [22:03:42]action value=close_receipt [22:03:42]process_action close_receipt [22:03:42]cmd_close_receipt [22:03:42]MH_GetDate [22:03:42]Write to MH i2c: F0 00 00 47 05 3B [22:03:42]Write i2c OK [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: F0 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: F0 09 00 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: F0 09 00 47 05 00 3F EC 5C 66 8D A7 02 66 CD [22:03:42]GetLastDocTimeStamp 1717365746 [22:03:42]current date 1717365823 [22:03:42]FM_GetShiftState [22:03:42]SAM_PROTO_GetShiftState [22:03:42]wFMCommunicate request_size=4 [22:03:42]MH_SAM_APDU [22:03:42]CAPDU: 80 13 01 00 [22:03:42]Write to MH i2c: E2 08 00 48 05 80 13 01 00 00 00 00 00 CA [22:03:42]Write i2c OK [22:03:42]MH_I2C_Read... [22:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:42]Read from MH i2c: E2 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: E2 0E 00 [22:03:42]MH_I2C_Read... [22:03:42]Read from MH i2c: E2 0E 00 48 05 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 9D [22:03:42]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:03:42]wFMCommunicate OK [22:03:42]SAM_PROTO_GetShiftState done [22:03:42]FM_GetShiftState done [22:03:42]opened in 1717288520 [22:03:42]opened+sec_in_day 1717374920 [22:03:42]quantity*price = 55065 [22:03:42]sum+1 = 55067 [22:03:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.48 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 694 02.06.2024 22:03 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57867 ФПД: 191781134182758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220343&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57867&fm=191781134182758&tin=02508201610067®Number=0000000000151680&sum=55000 [22:03:46]StoreToDocumentArchive [22:03:46]shift 69 fd 57867 [22:03:46]save to /storage/0069/doc_00057867 [22:03:46]save last doc name /storage/0069/doc_00057867 to /storage/kkm_last_doc_name [22:03:46]save OK [22:03:46]Clear old archive folders... [22:03:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:03:46]tlvbuf is 01B457B0 [22:03:46]SAM_PROTO_ClearQueue [22:03:46]wFMCommunicate request_size=4 [22:03:46]MH_SAM_APDU [22:03:46]CAPDU: 80 09 00 00 [22:03:46]Write to MH i2c: E2 08 00 55 05 80 09 00 00 00 00 00 00 CC [22:03:46]Write i2c OK [22:03:46]MH_I2C_Read... [22:03:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:46]Read from MH i2c: E2 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 03 00 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 03 00 55 05 00 90 00 CE [22:03:46]RAPDU: 90 00 [22:03:46]wFMCommunicate OK [22:03:46]SAM_PROTO_ClearQueue done [22:03:46]KKMCreateOFDPacket [22:03:46]OFDProtocolAddRootSTLVToBuf [22:03:46]FM_MakeSignedData [22:03:46]FM_MakeSignedData [22:03:46]SAM_PROTO_SignData [22:03:46]wFMCommunicate request_size=4 [22:03:46]MH_SAM_APDU [22:03:46]CAPDU: 80 0D 01 02 [22:03:46]Write to MH i2c: E2 08 00 56 05 80 0D 01 02 00 00 00 00 D4 [22:03:46]Write i2c OK [22:03:46]MH_I2C_Read... [22:03:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:46]Read from MH i2c: E2 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 03 00 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 03 00 56 05 00 90 00 CF [22:03:46]RAPDU: 90 00 [22:03:46]wFMCommunicate OK [22:03:46]wFMCommunicate request_size=255 [22:03:46]MH_SAM_APDU [22:03:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 EA 1F 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 1A D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 02 00 00 F4 03 04 00 3F EC 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0B E2 00 00 35 04 06 00 [22:03:47]Write to MH i2c: E2 02 01 57 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 EA 1F 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 1A D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 02 00 00 F4 03 04 00 3F EC 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0B E2 00 00 35 04 06 00 00 00 E8 [22:03:47]Write i2c OK [22:03:47]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [22:03:48]RAPDU: 90 00 [22:03:48]wFMCommunicate OK [22:03:48]wFMCommunicate request_size=11 [22:03:48]MH_SAM_APDU [22:03:48]CAPDU: 80 0D 02 02 06 AE 6C 86 60 A9 66 [22:03:48]Write to MH i2c: E2 0E 00 58 05 80 0D 02 02 06 00 AE 6C 86 60 A9 66 00 00 F2 [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [22:03:48]RAPDU: 90 00 [22:03:48]wFMCommunicate OK [22:03:48]wFMCommunicate request_size=4 [22:03:48]MH_SAM_APDU [22:03:48]CAPDU: 80 0D 03 02 [22:03:48]Write to MH i2c: E2 08 00 59 05 80 0D 03 02 00 00 00 00 D9 [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 0B 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 0B 00 59 05 00 AF F2 0A 0F 13 A4 7F AA 90 00 74 [22:03:48]RAPDU: AF F2 0A 0F 13 A4 7F AA 90 00 [22:03:48]wFMCommunicate OK [22:03:48]SAM_PROTO_SignData done [22:03:48]FM_MakeSignedData done [22:03:48]CreateOFDProtocolMessage [22:03:48]wFMCommunicate request_size=4 [22:03:48]MH_SAM_APDU [22:03:48]CAPDU: 80 11 00 00 [22:03:48]Write to MH i2c: E2 08 00 5A 05 80 11 00 00 00 00 00 00 D9 [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 17 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 17 00 5A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 2C [22:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:03:48]wFMCommunicate OK [22:03:48]CreateOFDProtocolMessage done [22:03:48]OFDSenderStorePacket 57867 [22:03:48]StoreOFDPacket docnum=57867 [22:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 B6 1A 08 01 D4 02 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 EA 1F 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 1A D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 02 00 00 F4 03 04 00 3F EC 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0B E2 00 00 35 04 06 00 AE 6C 86 60 A9 66 AF F2 0A 0F 13 A4 7F AA [22:03:48]CheckFolder [22:03:48]dirname=/storage/ofd_packets [22:03:48]CheckFolder done [22:03:48]ProducePacketName [22:03:48]name=ofd_packets/00057867 [22:03:48]NVStorageSaveData ofd_packets/00057867 [22:03:48]File name is /storage/ofd_packets/00057867 [22:03:48]Write 302 bytes [22:03:48]NVStorageSaveData done [22:03:48]OFDSenderStorePacket done [22:03:48]KKMCreateOFDPacket done [22:03:48]NVStorageSaveData kkm_last_timestamp [22:03:48]File name is /storage/kkm_last_timestamp [22:03:48]Write 4 bytes [22:03:48]NVStorageSaveData done [22:03:48]ExternCall_PrintAddStr [22:03:48]wPrintStart [22:03:48]Write to MH i2c: 01 00 00 5B 05 60 [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: 01 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: 01 07 00 [22:03:48]MH_I2C_Read... [22:03:48]OFD Sender: Processing packet 57867 [packets to send 50, broken 49] [22:03:48]ProducePacketName [22:03:48]name=ofd_packets/00057867 [22:03:48]OFD Sender: To server: pG, [22:03:48]CommunicateWithHost lk.salyk.kg:30040 [22:03:48]ConnectInit lk.salyk.kg [22:03:48]Read from MH i2c: 01 07 00 5B 05 00 00 00 00 00 FF 0F 75 [22:03:48]RasterBufferAndPrint [22:03:48]line Счет N : (1)543208 [22:03:48]line ИНН: 02508201610067 [22:03:48]line Контрольно-Кассовый Чек [22:03:48]line ПРОДАЖА [22:03:48]line ТРК (МРК, ГНК) : 34 [22:03:48]line Товар: 2710124130 [22:03:48]line SUPER 92-К-5 [22:03:48]line 8.170 * 67.40 [22:03:48]line = 550.66 [22:03:48]line НДС 12% НСП 1% [22:03:48]line > о реализуемом товаре [22:03:48]line ОКРУГЛЕНИЕ: -0.66 [22:03:48]line ИТОГО: 550.00 [22:03:48]line Внесено: 550.00 [22:03:48]line СДАЧА: 0.00 [22:03:48]line НСП 1% : 4.87 [22:03:48]line НДС 12% : 58.48 [22:03:48]line Наличными: 550.00 [22:03:48]line Безнал.: 0.00 [22:03:48]line Место: АЗС № 117 "Партнер Нефть" [22:03:48]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:03:49]line СНО: Общий режим [22:03:49]line Чек 694 02.06.2024 22:03 [22:03:49]line Смена: 69 ФФД: 1.0 [22:03:49]line ЗНМ: 0300000048 [22:03:49]line РНМ: 0000000000151680 [22:03:49]line Версия ККМ: v1.0 [22:03:49]line ФМ: 0000000000959414 [22:03:49]line ФД: 57867 [22:03:49]line ФПД: 191781134182758 [22:03:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220343&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57867&fm=191781134182758&tin=02508201610067®Number=0000000000151680&sum=55000 [22:03:49]written 0, free lines is 4095 [22:03:49]Connected sock=11 [22:03:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 B6 1A 08 01 D4 02 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 EA 1F 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 1A D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 Write to MH i2c: 00 01 01 00 F3 00 03 86 06 05 00 D8 16 00 00 8B 00 [22:03:49]00 07 04 06 00 Write i2c OK [22:03:49]D8 MH_I2C_Read... [22:03:49]D6 Read from MH i2c: 00 01 [22:03:49]00 00 00 39 04 MH_I2C_Read... [22:03:49]06 00 00 00 00 00 00 Read from MH i2c: 00 01 07 1F 00 04 [22:03:49]02 MH_I2C_Read... [22:03:49]00 01 00 12 04 04 00 Read from MH i2c: B6 01 02 07 00 00 00 F4 03 04 00 86 3F 05 EC 5C 66 0E 04 04 00 00 00 45 00 00 00 B9 00 04 00 01 00 00 F5 01 0C 0D 93 04 [22:03:49]RasterBufferAndPrint [22:03:49]line [22:03:49]line [22:03:49]line [22:03:49]line [22:03:49]line [22:03:49]10 00 30 written 0, free lines is 3613 [22:03:49]30 30 30 30 30 30 MH_Cut [22:03:49]30 Write to MH i2c: 30 D1 30 31 35 31 36 01 38 00 30 8D 11 04 10 00 05 30 01 30 30 30 64 30 [22:03:49]30 Write i2c OK [22:03:49]30 MH_I2C_Read... [22:03:49]30 30 30 39 35 Read from MH i2c: 39 D1 34 [22:03:49]31 MH_I2C_Read... [22:03:49]34 10 Read from MH i2c: 04 D1 04 00 0B E2 00 01 00 00 35 04 06 00 AE 6C [22:03:50]86 MH_I2C_Read... [22:03:50]60 A9 66 AF F2 Read from MH i2c: 0A D1 0F 01 00 8D 05 00 63 [22:03:50]Write to MH i2c: 01 00 00 8E 05 93 [22:03:50]13 A4 7F AA [22:03:50]Write i2c OK [22:03:50]MH_I2C_Read... [22:03:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 23 17 47 00 FA 51 A5 07 01 00 07 00 *** Cut start [22:03:50]3B *** Partial cut [22:03:50]00 F9 03 *** CUTSNS_PIN = 1 [22:03:50]0E 00 37 *** CUTSNS_PIN = 0 [22:03:50]37 30 39 *** Brake cut motor [22:03:50]33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0B E2 00 00 F4 03 04 00 14 97 5C 66 B6 04 01 00 00 4A 88 Read from MH i2c: 03 01 24 [22:03:51]5B MH_I2C_Read... [22:03:51]74 Read from MH i2c: FF 01 4B 07 [22:03:51]00 *** Stop cut motor [22:03:51]*** Cut end [22:03:51]CommunicateWithHost err = 0 [22:03:51]CheckOFDResponse [22:03:51] [22:03:51]1017 (14) - 77093643461234 [22:03:51]MH_I2C_Read... [22:03:51]1041 (16) - 0000000000959414 [22:03:51]1040 (4) - 57867 [22:03:51]1012 (4) - 02.06.2024 16:00 [22:03:51]1206 (1) - 0 [22:03:51]OFD Sender: Remove packet 57867 [22:03:51]Read from MH i2c: ProducePacketName [22:03:51]01 name=ofd_packets/00057867 [22:03:51]NVStorageDeleteData [22:03:51]07 00 8E 05 00 00 00 00 00 FF 0F A8 [22:03:51]process_action close_receipt done [22:03:51]requested_data is exist [22:03:51]produce_requested_data [22:03:51]requested_item fm.sn is exist - process it [22:03:51]wFMCommunicate request_size=4 [22:03:51]MH_SAM_APDU [22:03:51]CAPDU: 80 11 00 00 [22:03:51]Write to MH i2c: E2 08 00 8F 05 80 11 00 00 00 00 00 00 0E [22:03:51]Write i2c OK [22:03:51]MH_I2C_Read... [22:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:51]Read from MH i2c: E2 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 17 00 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 17 00 8F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 61 [22:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:03:51]wFMCommunicate OK [22:03:51]requested_item fd.num is exist - process it [22:03:51]SAM_PROTO_GetFieldsCounters [22:03:51]wFMCommunicate request_size=4 [22:03:51]MH_SAM_APDU [22:03:51]CAPDU: 80 13 00 00 [22:03:51]Write to MH i2c: E2 08 00 90 05 80 13 00 00 00 00 00 00 11 [22:03:51]Write i2c OK [22:03:51]MH_I2C_Read... [22:03:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:51]OFD Sender: No OFD packet to send [22:03:51]Read from MH i2c: E2 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 62 00 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 62 00 90 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 0B E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B6 02 00 00 5E 04 04 00 B6 02 00 00 57 04 04 00 B7 02 00 00 19 04 04 00 00 00 00 00 90 00 88 [22:03:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 0B E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B6 02 00 00 5E 04 04 00 B6 02 00 00 57 04 04 00 B7 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:03:52]wFMCommunicate OK [22:03:52]SAM_PROTO_GetFieldsCounters done [22:03:52]requested_item shift.num is exist - process it [22:03:52]requested_item shift.opened is exist - process it [22:03:52]req_shift_opened [22:03:52]FM_GetShiftState [22:03:52]SAM_PROTO_GetShiftState [22:03:52]wFMCommunicate request_size=4 [22:03:52]MH_SAM_APDU [22:03:52]CAPDU: 80 13 01 00 [22:03:52]Write to MH i2c: E2 08 00 91 05 80 13 01 00 00 00 00 00 13 [22:03:52]Write i2c OK [22:03:52]MH_I2C_Read... [22:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:52]Read from MH i2c: E2 [22:03:52]MH_I2C_Read... [22:03:52]Read from MH i2c: E2 0E 00 [22:03:52]MH_I2C_Read... [22:03:52]Read from MH i2c: E2 0E 00 91 05 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 E6 [22:03:52]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:03:52]wFMCommunicate OK [22:03:52]SAM_PROTO_GetShiftState done [22:03:52]FM_GetShiftState done [22:03:52]req_shift_opened done [22:03:52]requested_item shift.open_date is exist - process it [22:03:52]req_shift_open_date [22:03:52]req_shift_open_date done [22:03:52]produce_requested_data done [22:03:52]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57867,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:03:52]process_action_free close_receipt [22:03:52]json_value_free [22:03:52]json_value_free done [22:03:52]process_json_proto returns [22:03:52]Send response to host [22:03:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57867,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:03:52]free response buf [22:03:52]execute_script done [22:03:52]execute_script returns [22:03:52]free content buf [22:03:52]Sock 10.Close socket [22:03:52]Sock 10.Thread stoped [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:47]accept exits with 9 [22:05:47]New connection [22:05:47]New thread 3066735972 created [22:05:47]Thread 3066592612 joined [22:05:47]Waiting for new connection... [22:05:47] Sock 9.Parse request [22:05:47]Sock 9.Check first char [22:05:47]Sock 9.First char is OK [22:05:47]request: POST /json_proto HTTP/1.0 [22:05:47]Method: POST [22:05:47]URL: /json_proto [22:05:47]Method is POST - this is cgi request [22:05:47]url: /json_proto [22:05:47]query_string will be loaded in cgi processing [22:05:47]execute_cgi json_proto POST (null) [22:05:47]execute_cgi path=json_proto method=POST [22:05:47]POST find Content-Length [22:05:47]Host: 172.17.60.68:8080 [22:05:47]Content-Length: 670 [22:05:47]Content-Type: application/json [22:05:47] [22:05:47]POST finish read [22:05:47]Found Content-Length = 670 [22:05:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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:05:47]execute_script... [22: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 : (1)543209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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:05:47]POST & json_proto [22:05:47]process_json_proto [22:05:47]json parsed OK: [22:05:47]protocol is kg_v1.0 [22:05:47]action value=close_receipt [22:05:47]process_action close_receipt [22:05:47]cmd_close_receipt [22:05:47]MH_GetDate [22:05:47]Write to MH i2c: F0 00 00 92 05 86 [22:05:47]Write i2c OK [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: F0 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: F0 09 00 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: F0 09 00 92 05 00 BC EC 5C 66 8D A7 02 66 95 [22:05:47]GetLastDocTimeStamp 1717365823 [22:05:47]current date 1717365948 [22:05:47]FM_GetShiftState [22:05:47]SAM_PROTO_GetShiftState [22:05:47]wFMCommunicate request_size=4 [22:05:47]MH_SAM_APDU [22:05:47]CAPDU: 80 13 01 00 [22:05:47]Write to MH i2c: E2 08 00 93 05 80 13 01 00 00 00 00 00 15 [22:05:47]Write i2c OK [22:05:47]MH_I2C_Read... [22:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:47]Read from MH i2c: E2 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: E2 0E 00 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: E2 0E 00 93 05 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 E8 [22:05:47]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:05:48]wFMCommunicate OK [22:05:48]SAM_PROTO_GetShiftState done [22:05:48]FM_GetShiftState done [22:05:48]opened in 1717288520 [22:05:48]opened+sec_in_day 1717374920 [22:05:48]quantity*price = 20017 [22:05:48]sum+1 = 20019 [22:05:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 695 02.06.2024 22:05 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57868 ФПД: 36296672774512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220548&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57868&fm=36296672774512&tin=02508201610067®Number=0000000000151680&sum=20000 [22:05:51]StoreToDocumentArchive [22:05:51]shift 69 fd 57868 [22:05:51]save to /storage/0069/doc_00057868 [22:05:51]save last doc name /storage/0069/doc_00057868 to /storage/kkm_last_doc_name [22:05:51]save OK [22:05:51]Clear old archive folders... [22:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:05:51]tlvbuf is 01B699D0 [22:05:51]SAM_PROTO_ClearQueue [22:05:51]wFMCommunicate request_size=4 [22:05:51]MH_SAM_APDU [22:05:51]CAPDU: 80 09 00 00 [22:05:51]Write to MH i2c: E2 08 00 A0 05 80 09 00 00 00 00 00 00 17 [22:05:51]Write i2c OK [22:05:51]MH_I2C_Read... [22:05:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:51]Read from MH i2c: E2 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 03 00 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 03 00 A0 05 00 90 00 19 [22:05:51]RAPDU: 90 00 [22:05:51]wFMCommunicate OK [22:05:51]SAM_PROTO_ClearQueue done [22:05:51]KKMCreateOFDPacket [22:05:51]OFDProtocolAddRootSTLVToBuf [22:05:51]FM_MakeSignedData [22:05:51]FM_MakeSignedData [22:05:51]SAM_PROTO_SignData [22:05:51]wFMCommunicate request_size=4 [22:05:51]MH_SAM_APDU [22:05:51]CAPDU: 80 0D 01 02 [22:05:51]Write to MH i2c: E2 08 00 A1 05 80 0D 01 02 00 00 00 00 1F [22:05:51]Write i2c OK [22:05:51]MH_I2C_Read... [22:05:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:51]Read from MH i2c: E2 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 03 00 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 03 00 A1 05 00 90 00 1A [22:05:51]RAPDU: 90 00 [22:05:51]wFMCommunicate OK [22:05:51]wFMCommunicate request_size=255 [22:05:51]MH_SAM_APDU [22:05:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 OFD Sender: No OFD packet to send [22:05:51]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 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 B7 02 00 00 F4 03 04 00 BC EC 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0C E2 00 00 35 04 06 00 [22:05:52]Write to MH i2c: E2 02 01 A2 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 B7 02 00 00 F4 03 04 00 BC EC 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0C E2 00 00 35 04 06 00 00 00 8E [22:05:53]Write i2c OK [22:05:53]MH_I2C_Read... [22:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:53]Read from MH i2c: E2 [22:05:53]MH_I2C_Read... [22:05:53]Read from MH i2c: E2 03 00 [22:05:53]MH_I2C_Read... [22:05:53]Read from MH i2c: E2 03 00 A2 05 00 90 00 1B [22:05:53]RAPDU: 90 00 [22:05:53]wFMCommunicate OK [22:05:53]wFMCommunicate request_size=11 [22:05:53]MH_SAM_APDU [22:05:53]CAPDU: 80 0D 02 02 06 21 02 FA 49 89 70 [22:05:53]Write to MH i2c: E2 0E 00 A3 05 80 0D 02 02 06 00 21 02 FA 49 89 70 00 00 8D [22:05:53]Write i2c OK [22:05:53]MH_I2C_Read... [22:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:53]Read from MH i2c: E2 [22:05:53]MH_I2C_Read... [22:05:53]Read from MH i2c: E2 03 00 [22:05:53]MH_I2C_Read... [22:05:53]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [22:05:53]RAPDU: 90 00 [22:05:53]wFMCommunicate OK [22:05:53]wFMCommunicate request_size=4 [22:05:53]MH_SAM_APDU [22:05:53]CAPDU: 80 0D 03 02 [22:05:53]Write to MH i2c: E2 08 00 A4 05 80 0D 03 02 00 00 00 00 24 [22:05:53]Write i2c OK [22:05:53]MH_I2C_Read... [22:05:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:53]Read from MH i2c: E2 [22:05:53]MH_I2C_Read... [22:05:53]Read from MH i2c: E2 0B 00 [22:05:53]MH_I2C_Read... [22:05:53]Read from MH i2c: E2 0B 00 A4 05 00 E8 16 28 AC AE 89 26 8E 90 00 E2 [22:05:53]RAPDU: E8 16 28 AC AE 89 26 8E 90 00 [22:05:53]wFMCommunicate OK [22:05:53]SAM_PROTO_SignData done [22:05:53]FM_MakeSignedData done [22:05:53]CreateOFDProtocolMessage [22:05:53]wFMCommunicate request_size=4 [22:05:53]MH_SAM_APDU [22:05:53]CAPDU: 80 11 00 00 [22:05:53]Write to MH i2c: E2 08 00 A5 05 80 11 00 00 00 00 00 00 24 [22:05:54]Write i2c OK [22:05:54]MH_I2C_Read... [22:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:54]Read from MH i2c: E2 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 17 00 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 17 00 A5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 77 [22:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:05:54]wFMCommunicate OK [22:05:54]CreateOFDProtocolMessage done [22:05:54]OFDSenderStorePacket 57868 [22:05:54]StoreOFDPacket docnum=57868 [22:05:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 8E 1D 08 01 91 98 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 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 B7 02 00 00 F4 03 04 00 BC EC 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0C E2 00 00 35 04 06 00 21 02 FA 49 89 70 E8 16 28 AC AE 89 26 8E [22:05:54]CheckFolder [22:05:54]dirname=/storage/ofd_packets [22:05:54]CheckFolder done [22:05:54]ProducePacketName [22:05:54]name=ofd_packets/00057868 [22:05:54]NVStorageSaveData ofd_packets/00057868 [22:05:54]File name is /storage/ofd_packets/00057868 [22:05:54]Write 302 bytes [22:05:54]NVStorageSaveData done [22:05:54]OFDSenderStorePacket done [22:05:54]KKMCreateOFDPacket done [22:05:54]NVStorageSaveData kkm_last_timestamp [22:05:54]File name is /storage/kkm_last_timestamp [22:05:54]Write 4 bytes [22:05:54]NVStorageSaveData done [22:05:54]ExternCall_PrintAddStr [22:05:54]wPrintStart [22:05:54]Write to MH i2c: 01 00 00 A6 05 AB [22:05:54]OFD Sender: Processing packet 57868 [packets to send 50, broken 49] [22:05:54]ProducePacketName [22:05:54]name=ofd_packets/00057868 [22:05:54]OFD Sender: To server: pG, [22:05:54]CommunicateWithHost lk.salyk.kg:30040 [22:05:54]ConnectInit lk.salyk.kg [22:05:54]Write i2c OK [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: 01 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: 01 07 00 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: 01 07 00 A6 05 00 00 00 00 00 FF 0F C0 [22:05:54]RasterBufferAndPrint [22:05:54]line Счет N : (1)543209 [22:05:54]line ИНН: 02508201610067 [22:05:54]line Контрольно-Кассовый Чек [22:05:54]Connected sock=8 [22:05:54]line ПРОДАЖА [22:05:54]Data to sent: line ТРК (МРК, ГНК) : 14 [22:05:54]87 line Товар: 2710124130 [22:05:54]95 line SUPER 92-К-5 [22:05:54]F6 line 2.970 * 67.40 [22:05:54]70 line = 200.18 [22:05:54]47 line НДС 12% НСП 1% [22:05:54]2C line > о реализуемом товаре [22:05:54]01 line ОКРУГЛЕНИЕ: -0.18 [22:05:54]line ИТОГО: 200.00 [22:05:54]line Внесено: 200.00 [22:05:54]line СДАЧА: 0.00 [22:05:54]line НСП 1% : 1.77 [22:05:54]00 line НДС 12% : 21.26 [22:05:54]30 line Наличными: 200.00 [22:05:54]line Безнал.: 0.00 [22:05:54]line Место: АЗС № 117 "Партнер Нефть" [22:05:54]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:05:54]line СНО: Общий режим [22:05:54]30 line Чек 695 02.06.2024 22:05 [22:05:54]30 line Смена: 69 ФФД: 1.0 [22:05:54]30 line ЗНМ: 0300000048 [22:05:54]30 30 30 30 30 30 39 35 39 34 line РНМ: 0000000000151680 [22:05:54]31 line Версия ККМ: v1.0 [22:05:54]34 line ФМ: 0000000000959414 [22:05:54]10 line ФД: 57868 [22:05:54]01 line ФПД: 36296672774512 [22:05:54]00 00 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220548&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57868&fm=36296672774512&tin=02508201610067®Number=0000000000151680&sum=20000 [22:05:54]8E 1D 08 01 91 98 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 written 0, free lines is 4095 [22:05:54]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 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 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 B7 02 00 00 F4 03 04 00 BC EC 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 Write to MH i2c: 00 01 30 00 30 30 30 30 30 00 30 D1 30 30 30 31 05 35 D6 31 36 38 30 11 [22:05:55]04 10 00 Write i2c OK [22:05:55]30 MH_I2C_Read... [22:05:55]30 30 30 30 30 30 30 30 30 39 35 39 34 Read from MH i2c: 31 01 34 10 04 04 00 0C E2 00 00 35 04 06 00 [22:05:55]21 MH_I2C_Read... [22:05:55]02 FA 49 89 70 E8 16 28 AC AE Read from MH i2c: 89 01 07 26 00 [22:05:55]MH_I2C_Read... [22:05:55]8E Read from MH i2c: 01 07 [22:05:55]00 D1 05 00 00 00 00 00 F7 0C E0 [22:05:55]RasterBufferAndPrint [22:05:55]line [22:05:55]line [22:05:55]line [22:05:55]line [22:05:55]line [22:05:55]written 0, free lines is 3795 [22:05:55]MH_Cut [22:05:55]Write to MH i2c: D1 01 00 D8 05 01 AF [22:05:55]Write i2c OK [22:05:55]MH_I2C_Read... [22:05:55]Read from MH i2c: D1 [22:05:55]MH_I2C_Read... [22:05:55]Read from MH i2c: D1 01 00 [22:05:55]MH_I2C_Read... [22:05:55]Read from MH i2c: D1 01 00 D8 05 00 AE [22:05:55]Write to MH i2c: 01 00 00 D9 05 DE [22:05:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 Write i2c OK [22:05:56]39 MH_I2C_Read... [22:05:56]35 39 34 31 34 4F 00 00 00 FE 21 47 00 46 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 *** Cut start [22:05:56]31 *** Partial cut [22:05:56]34 *** CUTSNS_PIN = 1 [22:05:56]10 04 04 00 0C E2 00 *** CUTSNS_PIN = 0 [22:05:56]00 F4 03 04 00 92 97 5C 66 B6 04 01 00 00 CF 67 55 1A A6 F8 B9 24 [22:05:56]CommunicateWithHost err = 0 [22:05:56]CheckOFDResponse [22:05:56]1017 (14) - 77093643461234 [22:05:56]1041 (16) - 0000000000959414 [22:05:56]1040 (4) - 57868 [22:05:56]1012 (4) - 02.06.2024 16:02 [22:05:56]1206 (1) - 0 [22:05:56]OFD Sender: Remove packet 57868 [22:05:56]ProducePacketName [22:05:56]name=ofd_packets/00057868 [22:05:56]NVStorageDeleteData [22:05:56]*** Brake cut motor [22:05:56]Read from MH i2c: *** Stop cut motor [22:05:56]01 *** Cut end [22:05:56] [22:05:56]MH_I2C_Read... [22:05:56]Read from MH i2c: 01 07 00 [22:05:56]MH_I2C_Read... [22:05:56]Read from MH i2c: 01 07 00 D9 05 00 00 00 00 00 FF 0F F3 [22:05:56]process_action close_receipt done [22:05:56]requested_data is exist [22:05:56]produce_requested_data [22:05:56]requested_item fm.sn is exist - process it [22:05:56]wFMCommunicate request_size=4 [22:05:56]MH_SAM_APDU [22:05:56]CAPDU: 80 11 00 00 OFD Sender: No OFD packet to send [22:05:56] [22:05:57]Write to MH i2c: E2 08 00 DA 05 80 11 00 00 00 00 00 00 59 [22:05:57]Write i2c OK [22:05:57]MH_I2C_Read... [22:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:57]Read from MH i2c: E2 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: E2 17 00 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: E2 17 00 DA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 AC [22:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:05:57]wFMCommunicate OK [22:05:57]requested_item fd.num is exist - process it [22:05:57]SAM_PROTO_GetFieldsCounters [22:05:57]wFMCommunicate request_size=4 [22:05:57]MH_SAM_APDU [22:05:57]CAPDU: 80 13 00 00 [22:05:57]Write to MH i2c: E2 08 00 DB 05 80 13 00 00 00 00 00 00 5C [22:05:57]Write i2c OK [22:05:57]MH_I2C_Read... [22:05:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:57]Read from MH i2c: E2 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: E2 62 00 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: E2 62 00 DB 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 0C E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B7 02 00 00 5E 04 04 00 B7 02 00 00 57 04 04 00 B8 02 00 00 19 04 04 00 00 00 00 00 90 00 D7 [22:05:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 0C E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B7 02 00 00 5E 04 04 00 B7 02 00 00 57 04 04 00 B8 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:58]wFMCommunicate OK [22:05:58]SAM_PROTO_GetFieldsCounters done [22:05:58]requested_item shift.num is exist - process it [22:05:58]requested_item shift.opened is exist - process it [22:05:58]req_shift_opened [22:05:58]FM_GetShiftState [22:05:58]SAM_PROTO_GetShiftState [22:05:58]wFMCommunicate request_size=4 [22:05:58]MH_SAM_APDU [22:05:58]CAPDU: 80 13 01 00 [22:05:58]Write to MH i2c: E2 08 00 DC 05 80 13 01 00 00 00 00 00 5E [22:05:58]Write i2c OK [22:05:58]MH_I2C_Read... [22:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:58]Read from MH i2c: E2 [22:05:58]MH_I2C_Read... [22:05:58]Read from MH i2c: E2 0E 00 [22:05:58]MH_I2C_Read... [22:05:58]Read from MH i2c: E2 0E 00 DC 05 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 31 [22:05:58]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:05:58]wFMCommunicate OK [22:05:58]SAM_PROTO_GetShiftState done [22:05:58]FM_GetShiftState done [22:05:58]req_shift_opened done [22:05:58]requested_item shift.open_date is exist - process it [22:05:58]req_shift_open_date [22:05:58]req_shift_open_date done [22:05:58]produce_requested_data done [22:05:58]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57868,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:05:58]process_action_free close_receipt [22:05:58]json_value_free [22:05:58]json_value_free done [22:05:58]process_json_proto returns [22:05:58]Send response to host [22:05:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57868,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:05:58]free response buf [22:05:58]execute_script done [22:05:58]execute_script returns [22:05:58]free content buf [22:05:58]Sock 9.Close socket [22:05:58]Sock 9.Thread stoped [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:08]ConnectInit Can't connect to host [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:46]accept exits with 10 [22:08:46]New connection [22:08:46]New thread 3066592612 created [22:08:46]Thread 3066735972 joined [22:08:46]Waiting for new connection... [22:08:46] Sock 10.Parse request [22:08:46]Sock 10.Check first char [22:08:46]Sock 10.First char is OK [22:08:46]request: POST /json_proto HTTP/1.0 [22:08:46]Method: POST [22:08:46]URL: /json_proto [22:08:46]Method is POST - this is cgi request [22:08:46]url: /json_proto [22:08:46]query_string will be loaded in cgi processing [22:08:46]execute_cgi json_proto POST (null) [22:08:46]execute_cgi path=json_proto method=POST [22:08:46]POST find Content-Length [22:08:46]Host: 172.17.60.68:8080 [22:08:46]Content-Length: 677 [22:08:46]Content-Type: application/json [22:08:46] [22:08:46]POST finish read [22:08:46]Found Content-Length = 677 [22:08:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543210", "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 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:46]execute_script... [22:08:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543210", "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 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:46]POST & json_proto [22:08:46]process_json_proto [22:08:46]json parsed OK: [22:08:46]protocol is kg_v1.0 [22:08:46]action value=close_receipt [22:08:46]process_action close_receipt [22:08:46]cmd_close_receipt [22:08:46]MH_GetDate [22:08:46]Write to MH i2c: F0 00 00 DD 05 D1 [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: F0 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: F0 09 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: F0 09 00 DD 05 00 6F ED 5C 66 8D A7 02 66 94 [22:08:46]GetLastDocTimeStamp 1717365948 [22:08:46]current date 1717366127 [22:08:46]FM_GetShiftState [22:08:46]SAM_PROTO_GetShiftState [22:08:46]wFMCommunicate request_size=4 [22:08:46]MH_SAM_APDU [22:08:46]CAPDU: 80 13 01 00 [22:08:46]Write to MH i2c: E2 08 00 DE 05 80 13 01 00 00 00 00 00 60 [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:46]Read from MH i2c: E2 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 0E 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 0E 00 DE 05 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 33 [22:08:46]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:08:46]wFMCommunicate OK [22:08:46]SAM_PROTO_GetShiftState done [22:08:46]FM_GetShiftState done [22:08:46]opened in 1717288520 [22:08:46]opened+sec_in_day 1717374920 [22:08:46]quantity*price = 50065 [22:08:46]sum+1 = 50067 [22:08:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 696 02.06.2024 22:08 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57869 ФПД: 18517276864260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220847&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57869&fm=18517276864260&tin=02508201610067®Number=0000000000151680&sum=50000 [22:08:50]StoreToDocumentArchive [22:08:50]shift 69 fd 57869 [22:08:50]save to /storage/0069/doc_00057869 [22:08:50]save last doc name /storage/0069/doc_00057869 to /storage/kkm_last_doc_name [22:08:50]save OK [22:08:50]Clear old archive folders... [22:08:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:08:50]tlvbuf is 019790D0 [22:08:50]SAM_PROTO_ClearQueue [22:08:50]wFMCommunicate request_size=4 [22:08:50]MH_SAM_APDU [22:08:50]CAPDU: 80 09 00 00 [22:08:50]Write to MH i2c: E2 08 00 EB 05 80 09 00 00 00 00 00 00 62 [22:08:50]Write i2c OK [22:08:50]MH_I2C_Read... [22:08:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:50]Read from MH i2c: E2 [22:08:50]MH_I2C_Read... [22:08:50]Read from MH i2c: E2 03 00 [22:08:50]MH_I2C_Read... [22:08:50]Read from MH i2c: E2 03 00 EB 05 00 90 00 64 [22:08:50]RAPDU: 90 00 [22:08:50]wFMCommunicate OK [22:08:50]SAM_PROTO_ClearQueue done [22:08:50]KKMCreateOFDPacket [22:08:50]OFDProtocolAddRootSTLVToBuf [22:08:50]FM_MakeSignedData [22:08:50]FM_MakeSignedData [22:08:50]SAM_PROTO_SignData [22:08:50]wFMCommunicate request_size=4 [22:08:50]MH_SAM_APDU [22:08:50]CAPDU: 80 0D 01 02 [22:08:50]Write to MH i2c: E2 08 00 EC 05 80 0D 01 02 00 00 00 00 6A [22:08:50]Write i2c OK [22:08:50]MH_I2C_Read... [22:08:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:50]Read from MH i2c: E2 [22:08:50]MH_I2C_Read... [22:08:50]Read from MH i2c: E2 03 00 [22:08:50]MH_I2C_Read... [22:08:50]Read from MH i2c: E2 03 00 EC 05 00 90 00 65 [22:08:50]RAPDU: 90 00 [22:08:50]wFMCommunicate OK [22:08:50]wFMCommunicate request_size=255 [22:08:50]MH_SAM_APDU [22:08:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B8 02 00 00 F4 03 04 00 6F ED 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0D E2 00 00 35 04 06 00 10 [22:08:51]Write to MH i2c: E2 02 01 ED 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B8 02 00 00 F4 03 04 00 6F ED 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0D E2 00 00 35 04 06 00 10 00 00 36 [22:08:52]Write i2c OK [22:08:52]MH_I2C_Read... [22:08:52]OFD Sender: No OFD packet to send [22:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:52]Read from MH i2c: E2 [22:08:52]MH_I2C_Read... [22:08:52]Read from MH i2c: E2 03 00 [22:08:52]MH_I2C_Read... [22:08:52]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [22:08:52]RAPDU: 90 00 [22:08:52]wFMCommunicate OK [22:08:52]wFMCommunicate request_size=10 [22:08:52]MH_SAM_APDU [22:08:52]CAPDU: 80 0D 02 02 05 D7 63 B5 AF 04 [22:08:52]Write to MH i2c: E2 0D 00 EE 05 80 0D 02 02 05 00 D7 63 B5 AF 04 00 00 19 [22:08:52]Write i2c OK [22:08:52]MH_I2C_Read... [22:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:52]Read from MH i2c: E2 [22:08:52]MH_I2C_Read... [22:08:52]Read from MH i2c: E2 03 00 [22:08:52]MH_I2C_Read... [22:08:52]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [22:08:52]RAPDU: 90 00 [22:08:52]wFMCommunicate OK [22:08:52]wFMCommunicate request_size=4 [22:08:52]MH_SAM_APDU [22:08:52]CAPDU: 80 0D 03 02 [22:08:52]Write to MH i2c: E2 08 00 EF 05 80 0D 03 02 00 00 00 00 6F [22:08:52]Write i2c OK [22:08:52]MH_I2C_Read... [22:08:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:52]Read from MH i2c: E2 [22:08:52]MH_I2C_Read... [22:08:52]Read from MH i2c: E2 0B 00 [22:08:52]MH_I2C_Read... [22:08:52]Read from MH i2c: E2 0B 00 EF 05 00 33 9D 42 07 E9 64 49 51 90 00 70 [22:08:52]RAPDU: 33 9D 42 07 E9 64 49 51 90 00 [22:08:53]wFMCommunicate OK [22:08:53]SAM_PROTO_SignData done [22:08:53]FM_MakeSignedData done [22:08:53]CreateOFDProtocolMessage [22:08:53]wFMCommunicate request_size=4 [22:08:53]MH_SAM_APDU [22:08:53]CAPDU: 80 11 00 00 [22:08:53]Write to MH i2c: E2 08 00 F0 05 80 11 00 00 00 00 00 00 6F [22:08:53]Write i2c OK [22:08:53]MH_I2C_Read... [22:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:53]Read from MH i2c: E2 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: E2 17 00 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: E2 17 00 F0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 C2 [22:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:08:53]wFMCommunicate OK [22:08:53]CreateOFDProtocolMessage done [22:08:53]OFDSenderStorePacket 57869 [22:08:53]StoreOFDPacket docnum=57869 [22:08:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 0D C0 07 01 36 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B8 02 00 00 F4 03 04 00 6F ED 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0D E2 00 00 35 04 06 00 10 D7 63 B5 AF 04 33 9D 42 07 E9 64 49 51 [22:08:53]CheckFolder [22:08:53]dirname=/storage/ofd_packets [22:08:53]CheckFolder done [22:08:53]ProducePacketName [22:08:53]name=ofd_packets/00057869 [22:08:53]NVStorageSaveData ofd_packets/00057869 [22:08:53]File name is /storage/ofd_packets/00057869 [22:08:53]Write 301 bytes [22:08:53]NVStorageSaveData done [22:08:53]OFDSenderStorePacket done [22:08:53]KKMCreateOFDPacket done [22:08:53]NVStorageSaveData kkm_last_timestamp [22:08:53]File name is /storage/kkm_last_timestamp [22:08:53]Write 4 bytes [22:08:53]NVStorageSaveData done [22:08:53]ExternCall_PrintAddStr [22:08:53]wPrintStart [22:08:53]Write to MH i2c: 01 00 00 F1 05 F6 [22:08:53]OFD Sender: Processing packet 57869 [packets to send 50, broken 49] [22:08:53]ProducePacketName [22:08:53]name=ofd_packets/00057869 [22:08:53]OFD Sender: To server: pG, [22:08:53]CommunicateWithHost lk.salyk.kg:30040 [22:08:53]ConnectInit lk.salyk.kg [22:08:53]Write i2c OK [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: 01 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: 01 07 00 [22:08:53]MH_I2C_Read... [22:08:53]Read from MH i2c: 01 07 00 F1 05 00 00 00 00 00 FF 0F 0B [22:08:53]RasterBufferAndPrint [22:08:53]line Счет N : (1)543210 [22:08:53]line ИНН: 02508201610067 [22:08:53]line Контрольно-Кассовый Чек [22:08:53]line ПРОДАЖА [22:08:53]line ТРК (МРК, ГНК) : 12 [22:08:53]line Товар: 2710124130 [22:08:53]line Аи-92-К-5 [22:08:53]line 7.540 * 66.40 [22:08:53]line = 500.66 [22:08:53]line НДС 12% НСП 1% [22:08:53]line > о реализуемом товаре [22:08:53]line ОКРУГЛЕНИЕ: -0.66 [22:08:53]line ИТОГО: 500.00 [22:08:53]line Внесено: 500.00 [22:08:53]line СДАЧА: 0.00 [22:08:53]line НСП 1% : 4.43 [22:08:53]line НДС 12% : 53.17 [22:08:53]line Наличными: 500.00 [22:08:53]line Безнал.: 0.00 [22:08:53]line Место: АЗС № 117 "Партнер Нефть" [22:08:53]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:08:53]line СНО: Общий режим [22:08:53]line Чек 696 02.06.2024 22:08 [22:08:53]line Смена: 69 ФФД: 1.0 [22:08:53]line ЗНМ: 0300000048 [22:08:53]line РНМ: 0000000000151680 [22:08:53]line Версия ККМ: v1.0 [22:08:53]line ФМ: 0000000000959414 [22:08:53]Connected sock=11 [22:08:53]line ФД: 57869 [22:08:53]Data to sent: line ФПД: 18517276864260 [22:08:53]87 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220847&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57869&fm=18517276864260&tin=02508201610067®Number=0000000000151680&sum=50000 [22:08:53]95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 written 0, free lines is 4095 [22:08:53]39 34 31 34 0F 01 00 00 0D C0 07 01 36 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 Write to MH i2c: 00 01 00 00 1C 06 22 [22:08:54]EE Write i2c OK [22:08:54]03 MH_I2C_Read... [22:08:54]0F 00 F2 03 Read from MH i2c: 01 01 00 01 F3 03 06 [22:08:54]00 MH_I2C_Read... [22:08:54]C5 14 00 00 Read from MH i2c: 00 01 00 07 04 06 00 07 50 00 C3 00 00 00 00 [22:08:54]39 MH_I2C_Read... [22:08:54]04 Read from MH i2c: 06 01 00 07 00 00 00 1C 00 06 00 00 00 00 00 00 1F 00 00 E3 0C 18 [22:08:54]RasterBufferAndPrint [22:08:54]line [22:08:54]line [22:08:54]line [22:08:54]line [22:08:54]line [22:08:54]04 02 00 01 00 12 04 04 00 B8 02 00 00 F4 03 04 00 6F ED 5C 66 0E 04 04 00 45 00 00 written 0, free lines is 3633 [22:08:54]00 B9 04 01 00 01 0D 04 10 00 30 30 30 MH_Cut [22:08:54]30 Write to MH i2c: 30 30 30 30 30 D1 30 01 31 35 31 36 38 00 30 23 11 04 10 00 30 06 30 01 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0D E2 00 00 35 04 06 00 10 D7 63 B5 AF 04 33 9D 42 07 E9 64 49 51 [22:08:55]FB [22:08:55]Write i2c OK [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: D1 [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: D1 01 00 [22:08:55]MH_I2C_Read... [22:08:55]Read from MH i2c: D1 01 00 23 06 00 FA [22:08:55]Write to MH i2c: 01 00 00 24 06 2A [22:08:55]Write i2c OK [22:08:55]MH_I2C_Read... [22:08:55]*** Cut start [22:08:55]*** Partial cut [22:08:55]*** CUTSNS_PIN = 1 [22:08:55]*** CUTSNS_PIN = 0 [22:08:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 25 11 47 00 3F E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 *** Brake cut motor [22:08:55]37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 *** Stop cut motor [22:08:55]30 *** Cut end [22:08:55]30 30 39 35 39 34 31 Read from MH i2c: 01 34 [22:08:55]10 MH_I2C_Read... [22:08:55]04 Read from MH i2c: 04 01 00 0D E2 00 00 07 F4 00 03 04 00 45 98 5C 66 B6 04 01 00 00 22 16 A5 84 6E 06 C6 46 [22:08:55]CommunicateWithHost err = 0 [22:08:55]CheckOFDResponse [22:08:55]1017 (14) - 77093643461234 [22:08:55]1041 (16) - 0000000000959414 [22:08:55]1040 (4) - 57869 [22:08:56]1012 (4) - 02.06.2024 16:05 [22:08:56]1206 (1) - 0 [22:08:56]OFD Sender: Remove packet 57869 [22:08:56]ProducePacketName [22:08:56]name=ofd_packets/00057869 [22:08:56]NVStorageDeleteData [22:08:56] [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: 01 07 00 24 06 00 00 00 00 00 FF 0F 3F [22:08:56]process_action close_receipt done [22:08:56]requested_data is exist [22:08:56]produce_requested_data [22:08:56]requested_item fm.sn is exist - process it [22:08:56]wFMCommunicate request_size=4 [22:08:56]MH_SAM_APDU [22:08:56]CAPDU: 80 11 00 00 [22:08:56]Write to MH i2c: E2 08 00 25 06 80 11 00 00 00 00 00 00 A5 [22:08:56]Write i2c OK [22:08:56]MH_I2C_Read... [22:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:56]Read from MH i2c: E2 [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: E2 17 00 [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: E2 17 00 25 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 F8 [22:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:08:56]wFMCommunicate OK [22:08:56]requested_item fd.num is exist - process it [22:08:56]SAM_PROTO_GetFieldsCounters [22:08:56]wFMCommunicate request_size=4 [22:08:56]MH_SAM_APDU [22:08:56]CAPDU: 80 13 00 00 [22:08:56]Write to MH i2c: E2 08 00 26 06 80 13 00 00 00 00 00 00 A8 [22:08:56]Write i2c OK [22:08:56]MH_I2C_Read... [22:08:56]OFD Sender: No OFD packet to send [22:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:56]Read from MH i2c: E2 [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: E2 62 00 [22:08:56]MH_I2C_Read... [22:08:56]Read from MH i2c: E2 62 00 26 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 0D E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B8 02 00 00 5E 04 04 00 B8 02 00 00 57 04 04 00 B9 02 00 00 19 04 04 00 00 00 00 00 90 00 27 [22:08:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 0D E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B8 02 00 00 5E 04 04 00 B8 02 00 00 57 04 04 00 B9 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:57]wFMCommunicate OK [22:08:57]SAM_PROTO_GetFieldsCounters done [22:08:57]requested_item shift.num is exist - process it [22:08:57]requested_item shift.opened is exist - process it [22:08:57]req_shift_opened [22:08:57]FM_GetShiftState [22:08:57]SAM_PROTO_GetShiftState [22:08:57]wFMCommunicate request_size=4 [22:08:57]MH_SAM_APDU [22:08:57]CAPDU: 80 13 01 00 [22:08:57]Write to MH i2c: E2 08 00 27 06 80 13 01 00 00 00 00 00 AA [22:08:57]Write i2c OK [22:08:57]MH_I2C_Read... [22:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:57]Read from MH i2c: E2 [22:08:57]MH_I2C_Read... [22:08:57]Read from MH i2c: E2 0E 00 [22:08:57]MH_I2C_Read... [22:08:57]Read from MH i2c: E2 0E 00 27 06 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 7D [22:08:57]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:08:57]wFMCommunicate OK [22:08:57]SAM_PROTO_GetShiftState done [22:08:57]FM_GetShiftState done [22:08:57]req_shift_opened done [22:08:57]requested_item shift.open_date is exist - process it [22:08:57]req_shift_open_date [22:08:57]req_shift_open_date done [22:08:57]produce_requested_data done [22:08:57]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57869,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:08:57]process_action_free close_receipt [22:08:57]json_value_free [22:08:57]json_value_free done [22:08:57]process_json_proto returns [22:08:57]Send response to host [22:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57869,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:08:57]free response buf [22:08:57]execute_script done [22:08:57]execute_script returns [22:08:57]free content buf [22:08:57]Sock 10.Close socket [22:08:57]Sock 10.Thread stoped [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:26]ConnectInit Can't connect to host [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:45]ConnectInit Can't connect to host [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:41]accept exits with 9 [22:14:41]New connection [22:14:41]New thread 3066735972 created [22:14:41]Thread 3066592612 joined [22:14:41]Waiting for new connection... [22:14:41] Sock 9.Parse request [22:14:41]Sock 9.Check first char [22:14:41]Sock 9.First char is OK [22:14:41]request: POST /json_proto HTTP/1.0 [22:14:41]Method: POST [22:14:41]URL: /json_proto [22:14:41]Method is POST - this is cgi request [22:14:41]url: /json_proto [22:14:41]query_string will be loaded in cgi processing [22:14:41]execute_cgi json_proto POST (null) [22:14:41]execute_cgi path=json_proto method=POST [22:14:41]POST find Content-Length [22:14:41]Host: 172.17.60.68:8080 [22:14:41]Content-Length: 678 [22:14:41]Content-Type: application/json [22:14:41] [22:14:41]POST finish read [22:14:41]Found Content-Length = 678 [22:14:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543211", "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" : 13.970, "sum" : 927.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 927.00, "total" : 927.00, "payments": [ { "type": 0, "sum" : 927.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:41]execute_script... [22:14: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)543211", "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" : 13.970, "sum" : 927.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 927.00, "total" : 927.00, "payments": [ { "type": 0, "sum" : 927.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:41]POST & json_proto [22:14:41]process_json_proto [22:14:41]json parsed OK: [22:14:41]protocol is kg_v1.0 [22:14:41]action value=close_receipt [22:14:41]process_action close_receipt [22:14:41]cmd_close_receipt [22:14:41]MH_GetDate [22:14:41]Write to MH i2c: F0 00 00 28 06 1D [22:14:41]Write i2c OK [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: F0 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: F0 09 00 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: F0 09 00 28 06 00 D2 EE 5C 66 8D A7 02 66 44 [22:14:41]GetLastDocTimeStamp 1717366127 [22:14:41]current date 1717366482 [22:14:41]FM_GetShiftState [22:14:41]SAM_PROTO_GetShiftState [22:14:41]wFMCommunicate request_size=4 [22:14:41]MH_SAM_APDU [22:14:41]CAPDU: 80 13 01 00 [22:14:41]Write to MH i2c: E2 08 00 29 06 80 13 01 00 00 00 00 00 AC [22:14:41]Write i2c OK [22:14:41]MH_I2C_Read... [22:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:41]Read from MH i2c: E2 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: E2 0E 00 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: E2 0E 00 29 06 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 7F [22:14:41]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:14:41]wFMCommunicate OK [22:14:41]SAM_PROTO_GetShiftState done [22:14:41]FM_GetShiftState done [22:14:41]opened in 1717288520 [22:14:41]opened+sec_in_day 1717374920 [22:14:41]quantity*price = 92760 [22:14:41]sum+1 = 92762 [22:14:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 927.00 Внесено: 927.00 СДАЧА: 0.00 НСП 1% : 8.21 НДС 12% : 98.51 Наличными: 927.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 697 02.06.2024 22:14 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57870 ФПД: 181663730364112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T221442&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57870&fm=181663730364112&tin=02508201610067®Number=0000000000151680&sum=92700 [22:14:45]StoreToDocumentArchive [22:14:45]shift 69 fd 57870 [22:14:45]save to /storage/0069/doc_00057870 [22:14:45]save last doc name /storage/0069/doc_00057870 to /storage/kkm_last_doc_name [22:14:45]save OK [22:14:45]Clear old archive folders... [22:14:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:14:45]tlvbuf is 0197CFA0 [22:14:45]SAM_PROTO_ClearQueue [22:14:45]wFMCommunicate request_size=4 [22:14:45]MH_SAM_APDU [22:14:45]CAPDU: 80 09 00 00 [22:14:45]Write to MH i2c: E2 08 00 36 06 80 09 00 00 00 00 00 00 AE [22:14:45]Write i2c OK [22:14:45]MH_I2C_Read... [22:14:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:14:45]Read from MH i2c: E2 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: E2 03 00 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [22:14:45]RAPDU: 90 00 [22:14:45]wFMCommunicate OK [22:14:45]SAM_PROTO_ClearQueue done [22:14:45]KKMCreateOFDPacket [22:14:45]OFDProtocolAddRootSTLVToBuf [22:14:45]FM_MakeSignedData [22:14:45]FM_MakeSignedData [22:14:45]SAM_PROTO_SignData [22:14:45]wFMCommunicate request_size=4 [22:14:45]MH_SAM_APDU [22:14:45]CAPDU: 80 0D 01 02 [22:14:45]Write to MH i2c: E2 08 00 37 06 80 0D 01 02 00 00 00 00 B6 [22:14:45]Write i2c OK [22:14:45]MH_I2C_Read... [22:14:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:14:45]Read from MH i2c: E2 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: E2 03 00 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [22:14:45]RAPDU: 90 00 [22:14:45]wFMCommunicate OK [22:14:45]wFMCommunicate request_size=255 [22:14:45]MH_SAM_APDU [22:14: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 92 36 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 59 6A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 26 00 00 00 00 07 04 06 00 1C 6A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 02 00 00 F4 03 04 00 D2 EE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0E E2 00 00 35 04 06 00 A5 [22:14:46]Write to MH i2c: E2 02 01 38 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 92 36 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 59 6A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 26 00 00 00 00 07 04 06 00 1C 6A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 02 00 00 F4 03 04 00 D2 EE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0E E2 00 00 35 04 06 00 A5 00 00 4F [22:14:47]OFD Sender: No OFD packet to send [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [22:14:47]RAPDU: 90 00 [22:14:47]wFMCommunicate OK [22:14:47]wFMCommunicate request_size=10 [22:14:47]MH_SAM_APDU [22:14:47]CAPDU: 80 0D 02 02 05 38 E2 1D EE D0 [22:14:47]Write to MH i2c: E2 0D 00 39 06 80 0D 02 02 05 00 38 E2 1D EE D0 00 00 B8 [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [22:14:47]RAPDU: 90 00 [22:14:47]wFMCommunicate OK [22:14:47]wFMCommunicate request_size=4 [22:14:47]MH_SAM_APDU [22:14:47]CAPDU: 80 0D 03 02 [22:14:47]Write to MH i2c: E2 08 00 3A 06 80 0D 03 02 00 00 00 00 BB [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 0B 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 0B 00 3A 06 00 93 2A 22 25 B3 5E AB 31 90 00 AD [22:14:48]RAPDU: 93 2A 22 25 B3 5E AB 31 90 00 [22:14:48]wFMCommunicate OK [22:14:48]SAM_PROTO_SignData done [22:14:48]FM_MakeSignedData done [22:14:48]CreateOFDProtocolMessage [22:14:48]wFMCommunicate request_size=4 [22:14:48]MH_SAM_APDU [22:14:48]CAPDU: 80 11 00 00 [22:14:48]Write to MH i2c: E2 08 00 3B 06 80 11 00 00 00 00 00 00 BB [22:14:48]Write i2c OK [22:14:48]MH_I2C_Read... [22:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:48]Read from MH i2c: E2 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: E2 17 00 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: E2 17 00 3B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 0E [22:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:14:48]wFMCommunicate OK [22:14:48]CreateOFDProtocolMessage done [22:14:48]OFDSenderStorePacket 57870 [22:14:48]StoreOFDPacket docnum=57870 [22:14:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 C9 DA 07 01 EB 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 36 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 59 6A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 26 00 00 00 00 07 04 06 00 1C 6A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 02 00 00 F4 03 04 00 D2 EE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0E E2 00 00 35 04 06 00 A5 38 E2 1D EE D0 93 2A 22 25 B3 5E AB 31 [22:14:48]CheckFolder [22:14:48]dirname=/storage/ofd_packets [22:14:48]CheckFolder done [22:14:48]ProducePacketName [22:14:48]name=ofd_packets/00057870 [22:14:48]NVStorageSaveData ofd_packets/00057870 [22:14:48]File name is /storage/ofd_packets/00057870 [22:14:48]Write 301 bytes [22:14:48]NVStorageSaveData done [22:14:48]OFDSenderStorePacket done [22:14:48]KKMCreateOFDPacket done [22:14:48]NVStorageSaveData kkm_last_timestamp [22:14:48]File name is /storage/kkm_last_timestamp [22:14:48]Write 4 bytes [22:14:48]NVStorageSaveData done [22:14:48]ExternCall_PrintAddStr [22:14:48]wPrintStart [22:14:48]Write to MH i2c: 01 00 00 3C 06 42 [22:14:48]OFD Sender: Processing packet 57870 [packets to send 50, broken 49] [22:14:48]ProducePacketName [22:14:48]name=ofd_packets/00057870 [22:14:48]OFD Sender: To server: pG, [22:14:48]CommunicateWithHost lk.salyk.kg:30040 [22:14:48]ConnectInit lk.salyk.kg [22:14:48]Write i2c OK [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: 01 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: 01 07 00 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: 01 07 00 3C 06 00 00 00 00 00 FF 0F 57 [22:14:48]RasterBufferAndPrint [22:14:48]line Счет N : (1)543211 [22:14:48]line ИНН: 02508201610067 [22:14:48]line Контрольно-Кассовый Чек [22:14:48]line ПРОДАЖА [22:14:48]line ТРК (МРК, ГНК) : 22 [22:14:48]line Товар: 2710124130 [22:14:48]line Аи-92-К-5 [22:14:48]line 13.970 * 66.40 [22:14:48]line = 927.61 [22:14:48]line НДС 12% НСП 1% [22:14:48]line > о реализуемом товаре [22:14:48]line ОКРУГЛЕНИЕ: -0.61 [22:14:48]Connected sock=11 [22:14:48]line ИТОГО: 927.00 [22:14:48]Data to sent: line Внесено: 927.00 [22:14:48]line СДАЧА: 0.00 [22:14:48]line НСП 1% : 8.21 [22:14:48]line НДС 12% : 98.51 [22:14:48]line Наличными: 927.00 [22:14:48]87 line Безнал.: 0.00 [22:14:48]95 line Место: АЗС № 117 "Партнер Нефть" [22:14:48]F6 line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:14:48]70 line СНО: Общий режим [22:14:48]47 line Чек 697 02.06.2024 22:14 [22:14:48]2C line Смена: 69 ФФД: 1.0 [22:14:48]01 line ЗНМ: 0300000048 [22:14:48]line РНМ: 0000000000151680 [22:14:48]line Версия ККМ: v1.0 [22:14:48]line ФМ: 0000000000959414 [22:14:48]line ФД: 57870 [22:14:48]00 line ФПД: 181663730364112 [22:14:48]30 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T221442&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57870&fm=181663730364112&tin=02508201610067®Number=0000000000151680&sum=92700 [22:14:48]30 30 written 0, free lines is 4095 [22:14:48]30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 C9 DA 07 01 EB 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 36 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 59 6A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 Write to MH i2c: 01 01 00 00 01 00 F7 67 03 06 06 6D 00 [22:14:49]35 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 26 00 00 00 00 07 04 06 00 1C 6A 01 Write i2c OK [22:14:49]00 MH_I2C_Read... [22:14:49]00 00 39 04 Read from MH i2c: 06 01 00 [22:14:49]00 MH_I2C_Read... [22:14:49]00 00 00 00 00 Read from MH i2c: 1F 01 04 07 02 00 00 [22:14:49]01 MH_I2C_Read... [22:14:49]00 12 04 04 Read from MH i2c: 00 01 B9 07 02 00 00 67 00 06 F4 00 03 00 04 00 00 00 D2 00 EE 5C 66 0E 04 FA 04 0C 00 45 00 00 00 7A B9 [22:14:49]04 RasterBufferAndPrint [22:14:49]01 line [22:14:49]00 line [22:14:49]01 line [22:14:49]0D line [22:14:49]04 10 00 30 30 line [22:14:49]30 written 0, free lines is 3910 [22:14:49]30 30 30 30 30 MH_Cut [22:14:49]30 Write to MH i2c: 30 D1 31 01 35 00 31 6E 06 01 46 [22:14:49]36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0E E2 00 00 35 04 06 00 A5 38 Write i2c OK [22:14:50]E2 MH_I2C_Read... [22:14:50]1D EE D0 93 2A Read from MH i2c: 22 D1 25 [22:14:50]B3 MH_I2C_Read... [22:14:50]5E Read from MH i2c: AB D1 31 01 *** Cut start [22:14:50]00 [22:14:50] [22:14:50]*** Partial cut [22:14:50]*** CUTSNS_PIN = 1 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: D1 01 00 6E 06 00 45 [22:14:50]Write to MH i2c: 01 00 00 6F 06 75 *** CUTSNS_PIN = 0 [22:14:50] [22:14:50]Write i2c OK [22:14:50]MH_I2C_Read... [22:14:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 *** Brake cut motor [22:14:50]00 00 1E 8C 47 00 F2 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 39 35 39 34 31 34 10 04 04 00 0E E2 00 00 F4 03 04 00 A8 99 5C 66 B6 04 01 00 00 28 DA D0 59 9E D0 48 E4 [22:14:50]CommunicateWithHost err = 0 [22:14:50]CheckOFDResponse [22:14:50]1017 (14) - 77093643461234 [22:14:50]1041 (16) - 0000000000959414 [22:14:50]1040 (4) - 57870 [22:14:50]1012 (4) - 02.06.2024 16:11 [22:14:50]1206 (1) - 0 [22:14:50]OFD Sender: Remove packet 57870 [22:14:50]ProducePacketName [22:14:50]name=ofd_packets/00057870 [22:14:50]NVStorageDeleteData [22:14:50]Read from MH i2c: 01 [22:14:50]*** Stop cut motor [22:14:50]MH_I2C_Read... [22:14:50]*** Cut end [22:14:50]Read from MH i2c: 01 07 00 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: 01 07 00 6F 06 00 00 00 00 00 FF 0F 8A [22:14:50]process_action close_receipt done [22:14:50]requested_data is exist [22:14:50]produce_requested_data [22:14:50]requested_item fm.sn is exist - process it [22:14:50]wFMCommunicate request_size=4 [22:14:50]MH_SAM_APDU [22:14:50]CAPDU: 80 11 00 00 [22:14:50]Write to MH i2c: E2 08 00 70 06 80 11 00 00 00 00 00 00 F0 [22:14:51]Write i2c OK [22:14:51]MH_I2C_Read... [22:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:51]Read from MH i2c: E2 [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: E2 17 00 [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: E2 17 00 70 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 43 [22:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:14:51]wFMCommunicate OK [22:14:51]requested_item fd.num is exist - process it [22:14:51]SAM_PROTO_GetFieldsCounters [22:14:51]wFMCommunicate request_size=4 [22:14:51]MH_SAM_APDU [22:14:51]CAPDU: 80 13 00 00 [22:14:51]Write to MH i2c: E2 08 00 71 06 80 13 00 00 00 00 00 00 F3 [22:14:51]Write i2c OK [22:14:51]MH_I2C_Read... [22:14:51]OFD Sender: No OFD packet to send [22:14:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:14:51]Read from MH i2c: E2 [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: E2 62 00 [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: E2 62 00 71 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 0E E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B9 02 00 00 5E 04 04 00 B9 02 00 00 57 04 04 00 BA 02 00 00 19 04 04 00 00 00 00 00 90 00 76 [22:14:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 0E E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 B9 02 00 00 5E 04 04 00 B9 02 00 00 57 04 04 00 BA 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:14:52]wFMCommunicate OK [22:14:52]SAM_PROTO_GetFieldsCounters done [22:14:52]requested_item shift.num is exist - process it [22:14:52]requested_item shift.opened is exist - process it [22:14:52]req_shift_opened [22:14:52]FM_GetShiftState [22:14:52]SAM_PROTO_GetShiftState [22:14:52]wFMCommunicate request_size=4 [22:14:52]MH_SAM_APDU [22:14:52]CAPDU: 80 13 01 00 [22:14:52]Write to MH i2c: E2 08 00 72 06 80 13 01 00 00 00 00 00 F5 [22:14:52]Write i2c OK [22:14:52]MH_I2C_Read... [22:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:52]Read from MH i2c: E2 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 0E 00 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 0E 00 72 06 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 C8 [22:14:52]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:14:52]wFMCommunicate OK [22:14:52]SAM_PROTO_GetShiftState done [22:14:52]FM_GetShiftState done [22:14:52]req_shift_opened done [22:14:52]requested_item shift.open_date is exist - process it [22:14:52]req_shift_open_date [22:14:52]req_shift_open_date done [22:14:52]produce_requested_data done [22:14:52]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57870,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:14:52]process_action_free close_receipt [22:14:52]json_value_free [22:14:52]json_value_free done [22:14:52]process_json_proto returns [22:14:52]Send response to host [22:14:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57870,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:14:52]free response buf [22:14:52]execute_script done [22:14:52]execute_script returns [22:14:52]free content buf [22:14:52]Sock 9.Close socket [22:14:52]Sock 9.Thread stoped [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:03]ConnectInit Can't connect to host [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:21]ConnectInit Can't connect to host [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:39]ConnectInit Can't connect to host [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:21:58]ConnectInit Can't connect to host [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:13]accept exits with 10 [22:24:13]New connection [22:24:13]New thread 3066592612 created [22:24:13]Thread 3066735972 joined [22:24:13]Waiting for new connection... [22:24:13] Sock 10.Parse request [22:24:13]Sock 10.Check first char [22:24:13]Sock 10.First char is OK [22:24:13]request: POST /json_proto HTTP/1.0 [22:24:13]Method: POST [22:24:13]URL: /json_proto [22:24:13]Method is POST - this is cgi request [22:24:13]url: /json_proto [22:24:13]query_string will be loaded in cgi processing [22:24:13]execute_cgi json_proto POST (null) [22:24:13]execute_cgi path=json_proto method=POST [22:24:13]POST find Content-Length [22:24:13]Host: 172.17.60.68:8080 [22:24:13]Content-Length: 677 [22:24:13]Content-Type: application/json [22:24:13] [22:24:13]POST finish read [22:24:13]Found Content-Length = 677 [22:24:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543214", "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.130, "sum" : 340.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:13]execute_script... [22:24:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543214", "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.130, "sum" : 340.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:13]POST & json_proto [22:24:13]process_json_proto [22:24:13]json parsed OK: [22:24:13]protocol is kg_v1.0 [22:24:13]action value=close_receipt [22:24:13]process_action close_receipt [22:24:13]cmd_close_receipt [22:24:13]MH_GetDate [22:24:13]Write to MH i2c: F0 00 00 73 06 68 [22:24:13]Write i2c OK [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: F0 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: F0 09 00 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: F0 09 00 73 06 00 0D F1 5C 66 8D A7 02 66 CD [22:24:13]GetLastDocTimeStamp 1717366482 [22:24:13]current date 1717367053 [22:24:13]FM_GetShiftState [22:24:13]SAM_PROTO_GetShiftState [22:24:13]wFMCommunicate request_size=4 [22:24:13]MH_SAM_APDU [22:24:13]CAPDU: 80 13 01 00 [22:24:13]Write to MH i2c: E2 08 00 74 06 80 13 01 00 00 00 00 00 F7 [22:24:13]Write i2c OK [22:24:13]MH_I2C_Read... [22:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:13]Read from MH i2c: E2 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: E2 0E 00 [22:24:13]MH_I2C_Read... [22:24:13]Read from MH i2c: E2 0E 00 74 06 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 CA [22:24:13]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:24:13]wFMCommunicate OK [22:24:13]SAM_PROTO_GetShiftState done [22:24:13]FM_GetShiftState done [22:24:13]opened in 1717288520 [22:24:13]opened+sec_in_day 1717374920 [22:24:13]quantity*price = 34063 [22:24:13]sum+1 = 34064 [22:24:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.17 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 698 02.06.2024 22:24 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57871 ФПД: 252387827393087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222414&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57871&fm=252387827393087&tin=02508201610067®Number=0000000000151680&sum=34000 [22:24:17]StoreToDocumentArchive [22:24:17]shift 69 fd 57871 [22:24:17]save to /storage/0069/doc_00057871 [22:24:17]save last doc name /storage/0069/doc_00057871 to /storage/kkm_last_doc_name [22:24:17]save OK [22:24:17]Clear old archive folders... [22:24:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:24:17]tlvbuf is 0198A890 [22:24:17]SAM_PROTO_ClearQueue [22:24:17]wFMCommunicate request_size=4 [22:24:17]MH_SAM_APDU [22:24:17]CAPDU: 80 09 00 00 [22:24:17]Write to MH i2c: E2 08 00 81 06 80 09 00 00 00 00 00 00 F9 [22:24:17]Write i2c OK [22:24:17]MH_I2C_Read... [22:24:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:17]Read from MH i2c: E2 [22:24:17]MH_I2C_Read... [22:24:17]Read from MH i2c: E2 03 00 [22:24:17]MH_I2C_Read... [22:24:17]Read from MH i2c: E2 03 00 81 06 00 90 00 FB [22:24:17]RAPDU: 90 00 [22:24:17]wFMCommunicate OK [22:24:17]SAM_PROTO_ClearQueue done [22:24:17]KKMCreateOFDPacket [22:24:17]OFDProtocolAddRootSTLVToBuf [22:24:17]FM_MakeSignedData [22:24:17]FM_MakeSignedData [22:24:17]SAM_PROTO_SignData [22:24:17]wFMCommunicate request_size=4 [22:24:17]MH_SAM_APDU [22:24:17]CAPDU: 80 0D 01 02 [22:24:17]Write to MH i2c: E2 08 00 82 06 80 0D 01 02 00 00 00 00 01 [22:24:17]OFD Sender: No OFD packet to send [22:24:17]Write i2c OK [22:24:17]MH_I2C_Read... [22:24:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:17]Read from MH i2c: E2 [22:24:17]MH_I2C_Read... [22:24:17]Read from MH i2c: E2 03 00 [22:24:17]MH_I2C_Read... [22:24:17]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [22:24:17]RAPDU: 90 00 [22:24:17]wFMCommunicate OK [22:24:17]wFMCommunicate request_size=255 [22:24:17]MH_SAM_APDU [22:24:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 02 00 00 F4 03 04 00 0E F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0F E2 00 00 35 04 06 00 E5 [22:24:18]Write to MH i2c: E2 02 01 83 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 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 02 00 00 F4 03 04 00 0E F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0F E2 00 00 35 04 06 00 E5 00 00 5F [22:24:18]Write i2c OK [22:24:18]MH_I2C_Read... [22:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:19]Read from MH i2c: E2 [22:24:19]MH_I2C_Read... [22:24:19]Read from MH i2c: E2 03 00 [22:24:19]MH_I2C_Read... [22:24:19]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [22:24:19]RAPDU: 90 00 [22:24:19]wFMCommunicate OK [22:24:19]wFMCommunicate request_size=10 [22:24:19]MH_SAM_APDU [22:24:19]CAPDU: 80 0D 02 02 05 8B 9E CC 22 3F [22:24:19]Write to MH i2c: E2 0D 00 84 06 80 0D 02 02 05 00 8B 9E CC 22 3F 00 00 64 [22:24:19]Write i2c OK [22:24:19]MH_I2C_Read... [22:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:19]Read from MH i2c: E2 [22:24:19]MH_I2C_Read... [22:24:19]Read from MH i2c: E2 03 00 [22:24:19]MH_I2C_Read... [22:24:19]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [22:24:19]RAPDU: 90 00 [22:24:19]wFMCommunicate OK [22:24:19]wFMCommunicate request_size=4 [22:24:19]MH_SAM_APDU [22:24:19]CAPDU: 80 0D 03 02 [22:24:19]Write to MH i2c: E2 08 00 85 06 80 0D 03 02 00 00 00 00 06 [22:24:19]Write i2c OK [22:24:19]MH_I2C_Read... [22:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:19]Read from MH i2c: E2 [22:24:19]MH_I2C_Read... [22:24:19]Read from MH i2c: E2 0B 00 [22:24:19]MH_I2C_Read... [22:24:19]Read from MH i2c: E2 0B 00 85 06 00 4A 50 2F A8 53 10 64 12 90 00 51 [22:24:19]RAPDU: 4A 50 2F A8 53 10 64 12 90 00 [22:24:19]wFMCommunicate OK [22:24:19]SAM_PROTO_SignData done [22:24:19]FM_MakeSignedData done [22:24:19]CreateOFDProtocolMessage [22:24:19]wFMCommunicate request_size=4 [22:24:19]MH_SAM_APDU [22:24:19]CAPDU: 80 11 00 00 [22:24:19]Write to MH i2c: E2 08 00 86 06 80 11 00 00 00 00 00 00 06 [22:24:19]Write i2c OK [22:24:19]MH_I2C_Read... [22:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:19]Read from MH i2c: E2 [22:24:19]MH_I2C_Read... [22:24:19]Read from MH i2c: E2 17 00 [22:24:19]MH_I2C_Read... [22:24:19]Read from MH i2c: E2 17 00 86 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 59 [22:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:24:19]wFMCommunicate OK [22:24:19]CreateOFDProtocolMessage done [22:24:19]OFDSenderStorePacket 57871 [22:24:19]StoreOFDPacket docnum=57871 [22:24:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 37 C3 07 01 6F 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 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 02 00 00 F4 03 04 00 0E F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0F E2 00 00 35 04 06 00 E5 8B 9E CC 22 3F 4A 50 2F A8 53 10 64 12 [22:24:19]CheckFolder [22:24:19]dirname=/storage/ofd_packets [22:24:19]CheckFolder done [22:24:19]ProducePacketName [22:24:19]name=ofd_packets/00057871 [22:24:19]NVStorageSaveData ofd_packets/00057871 [22:24:19]File name is /storage/ofd_packets/00057871 [22:24:19]Write 301 bytes [22:24:19]NVStorageSaveData done [22:24:19]OFDSenderStorePacket done [22:24:19]KKMCreateOFDPacket done [22:24:19]NVStorageSaveData kkm_last_timestamp [22:24:19]File name is /storage/kkm_last_timestamp [22:24:19]Write 4 bytes [22:24:19]NVStorageSaveData done [22:24:19]ExternCall_PrintAddStr [22:24:19]wPrintStart [22:24:19]Write to MH i2c: 01 00 00 87 06 8D [22:24:20]OFD Sender: Processing packet 57871 [packets to send 50, broken 49] [22:24:20]ProducePacketName [22:24:20]name=ofd_packets/00057871 [22:24:20]OFD Sender: To server: pG, [22:24:20]CommunicateWithHost lk.salyk.kg:30040 [22:24:20]ConnectInit lk.salyk.kg [22:24:20]Write i2c OK [22:24:20]MH_I2C_Read... [22:24:20]Read from MH i2c: 01 [22:24:20]MH_I2C_Read... [22:24:20]Read from MH i2c: 01 07 00 [22:24:20]MH_I2C_Read... [22:24:20]Read from MH i2c: 01 07 00 87 06 00 00 00 00 00 FF 0F A2 [22:24:20]RasterBufferAndPrint [22:24:20]line Счет N : (1)543214 [22:24:20]Connected sock=8 [22:24:20]line ИНН: 02508201610067 [22:24:20]Data to sent: line Контрольно-Кассовый Чек [22:24:20]87 line ПРОДАЖА [22:24:20]95 line ТРК (МРК, ГНК) : 22 [22:24:20]F6 line Товар: 2710124130 [22:24:20]70 line Аи-92-К-5 [22:24:20]47 line 5.130 * 66.40 [22:24:20]line = 340.63 [22:24:20]line НДС 12% НСП 1% [22:24:20]line > о реализуемом товаре [22:24:20]line ОКРУГЛЕНИЕ: -0.63 [22:24:20]2C line ИТОГО: 340.00 [22:24:20]01 line Внесено: 340.00 [22:24:20]line СДАЧА: 0.00 [22:24:20]line НСП 1% : 3.01 [22:24:20]line НДС 12% : 36.17 [22:24:20]00 line Наличными: 340.00 [22:24:20]30 line Безнал.: 0.00 [22:24:20]line Место: АЗС № 117 "Партнер Нефть" [22:24:20]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:24:20]line СНО: Общий режим [22:24:20]30 line Чек 698 02.06.2024 22:24 [22:24:20]30 30 line Смена: 69 ФФД: 1.0 [22:24:20]30 line ЗНМ: 0300000048 [22:24:20]30 line РНМ: 0000000000151680 [22:24:20]30 line Версия ККМ: v1.0 [22:24:20]30 line ФМ: 0000000000959414 [22:24:20]30 line ФД: 57871 [22:24:20]line ФПД: 252387827393087 [22:24:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222414&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57871&fm=252387827393087&tin=02508201610067®Number=0000000000151680&sum=34000 [22:24:20]30 39 35 39 34 31 34 0F 01 00 00 37 C3 07 01 6F 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A written 0, free lines is 4095 [22:24:20]04 0A 00 32 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 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 Write to MH i2c: 04 01 04 00 BA 02 00 00 00 00 F4 B2 03 06 04 B8 00 [22:24:21]0E F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 Write i2c OK [22:24:21]30 MH_I2C_Read... [22:24:21]31 35 31 36 Read from MH i2c: 38 01 30 11 04 10 00 [22:24:21]30 MH_I2C_Read... [22:24:21]30 Read from MH i2c: 30 01 07 00 [22:24:21]MH_I2C_Read... [22:24:21]30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0F E2 00 00 35 04 06 00 E5 8B 9E CC 22 3F 4A 50 2F A8 53 10 64 12 [22:24:21]Read from MH i2c: 01 07 00 B2 06 00 00 00 00 00 9E 0D 6A [22:24:21]RasterBufferAndPrint [22:24:21]line [22:24:21]line [22:24:21]line [22:24:21]line [22:24:21]line [22:24:21]written 0, free lines is 4071 [22:24:21]MH_Cut [22:24:21]Write to MH i2c: D1 01 00 B9 06 01 91 [22:24:21]Write i2c OK [22:24:21]MH_I2C_Read... [22:24:21]Read from MH i2c: D1 [22:24:21]MH_I2C_Read... [22:24:21]Read from MH i2c: D1 01 00 [22:24:21]MH_I2C_Read... [22:24:21]Read from MH i2c: D1 01 00 B9 06 00 90 [22:24:21]Write to MH i2c: 01 00 00 BA 06 C0 [22:24:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 *** Cut start [22:24:21]35 *** Partial cut [22:24:21]*** CUTSNS_PIN = 1 [22:24:21]Write i2c OK [22:24:21]MH_I2C_Read... [22:24:22]39 *** CUTSNS_PIN = 0 [22:24:22]34 31 34 4F 00 00 00 34 66 47 00 89 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 0F E2 00 00 F4 03 04 00 E4 9B 5C 66 B6 04 01 00 00 DD *** Brake cut motor [22:24:22]A8 D6 33 DE B2 CC 5C [22:24:22]CommunicateWithHost err = 0 [22:24:22]CheckOFDResponse [22:24:22]1017 (14) - 77093643461234 [22:24:22]1041 (16) - 0000000000959414 [22:24:22]1040 (4) - 57871 [22:24:22]1012 (4) - 02.06.2024 16:20 [22:24:22]1206 (1) - 0 [22:24:22]OFD Sender: Remove packet 57871 [22:24:22]ProducePacketName [22:24:22]name=ofd_packets/00057871 [22:24:22]NVStorageDeleteData [22:24:22]Read from MH i2c: *** Stop cut motor [22:24:22]01 *** Cut end [22:24:22] [22:24:22]MH_I2C_Read... [22:24:22]Read from MH i2c: 01 07 00 [22:24:22]MH_I2C_Read... [22:24:22]Read from MH i2c: 01 07 00 BA 06 00 00 00 00 00 FF 0F D5 [22:24:22]process_action close_receipt done [22:24:22]requested_data is exist [22:24:22]produce_requested_data [22:24:22]requested_item fm.sn is exist - process it [22:24:22]wFMCommunicate request_size=4 [22:24:22]MH_SAM_APDU [22:24:22]CAPDU: 80 11 00 00 [22:24:22]Write to MH i2c: E2 08 00 BB 06 80 11 00 00 00 00 00 00 3B [22:24:22]Write i2c OK [22:24:22]MH_I2C_Read... [22:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:22]Read from MH i2c: E2 [22:24:22]MH_I2C_Read... [22:24:22]Read from MH i2c: E2 17 00 [22:24:22]MH_I2C_Read... [22:24:22]Read from MH i2c: E2 OFD Sender: No OFD packet to send [22:24:22]17 00 BB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 8E [22:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:24:22]wFMCommunicate OK [22:24:22]requested_item fd.num is exist - process it [22:24:22]SAM_PROTO_GetFieldsCounters [22:24:22]wFMCommunicate request_size=4 [22:24:22]MH_SAM_APDU [22:24:22]CAPDU: 80 13 00 00 [22:24:22]Write to MH i2c: E2 08 00 BC 06 80 13 00 00 00 00 00 00 3E [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:23]Read from MH i2c: E2 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: E2 62 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: E2 62 00 BC 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 0F E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 BA 02 00 00 5E 04 04 00 BA 02 00 00 57 04 04 00 BB 02 00 00 19 04 04 00 00 00 00 00 90 00 C5 [22:24:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 0F E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 BA 02 00 00 5E 04 04 00 BA 02 00 00 57 04 04 00 BB 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:24:23]wFMCommunicate OK [22:24:23]SAM_PROTO_GetFieldsCounters done [22:24:23]requested_item shift.num is exist - process it [22:24:23]requested_item shift.opened is exist - process it [22:24:23]req_shift_opened [22:24:23]FM_GetShiftState [22:24:23]SAM_PROTO_GetShiftState [22:24:23]wFMCommunicate request_size=4 [22:24:23]MH_SAM_APDU [22:24:23]CAPDU: 80 13 01 00 [22:24:23]Write to MH i2c: E2 08 00 BD 06 80 13 01 00 00 00 00 00 40 [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:23]Read from MH i2c: E2 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: E2 0E 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: E2 0E 00 BD 06 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 13 [22:24:23]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:24:23]wFMCommunicate OK [22:24:23]SAM_PROTO_GetShiftState done [22:24:23]FM_GetShiftState done [22:24:23]req_shift_opened done [22:24:23]requested_item shift.open_date is exist - process it [22:24:23]req_shift_open_date [22:24:23]req_shift_open_date done [22:24:23]produce_requested_data done [22:24:23]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57871,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:24:23]process_action_free close_receipt [22:24:24]json_value_free [22:24:24]json_value_free done [22:24:24]process_json_proto returns [22:24:24]Send response to host [22:24:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57871,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:24:24]free response buf [22:24:24]execute_script done [22:24:24]execute_script returns [22:24:24]free content buf [22:24:24]Sock 10.Close socket [22:24:24]Sock 10.Thread stoped [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:01]accept exits with 9 [22:25:01]New connection [22:25:01]New thread 3066735972 created [22:25:01]Thread 3066592612 joined [22:25:01]Waiting for new connection... [22:25:01] Sock 9.Parse request [22:25:01]Sock 9.Check first char [22:25:01]Sock 9.First char is OK [22:25:01]request: POST /json_proto HTTP/1.0 [22:25:01]Method: POST [22:25:01]URL: /json_proto [22:25:01]Method is POST - this is cgi request [22:25:01]url: /json_proto [22:25:01]query_string will be loaded in cgi processing [22:25:01]execute_cgi json_proto POST (null) [22:25:01]execute_cgi path=json_proto method=POST [22:25:01]POST find Content-Length [22:25:01]Host: 172.17.60.68:8080 [22:25:01]Content-Length: 798 [22:25:01]Content-Type: application/json [22:25:01] [22:25:01]POST finish read [22:25:01]Found Content-Length = 798 [22:25:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:01]execute_script... [22:25:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:01]POST & json_proto [22:25:01]process_json_proto [22:25:01]json parsed OK: [22:25:01]protocol is kg_v1.0 [22:25:01]action value=close_receipt [22:25:01]process_action close_receipt [22:25:01]cmd_close_receipt [22:25:01]MH_GetDate [22:25:01]Write to MH i2c: F0 00 00 BE 06 B3 [22:25:01]Write i2c OK [22:25:01]MH_I2C_Read... [22:25:01]Read from MH i2c: F0 [22:25:01]MH_I2C_Read... [22:25:01]Read from MH i2c: F0 09 00 [22:25:01]MH_I2C_Read... [22:25:01]Read from MH i2c: F0 09 00 BE 06 00 3D F1 5C 66 8D A7 02 66 48 [22:25:01]GetLastDocTimeStamp 1717367054 [22:25:01]current date 1717367101 [22:25:01]FM_GetShiftState [22:25:01]SAM_PROTO_GetShiftState [22:25:01]wFMCommunicate request_size=4 [22:25:01]MH_SAM_APDU [22:25:01]CAPDU: 80 13 01 00 [22:25:01]Write to MH i2c: E2 08 00 BF 06 80 13 01 00 00 00 00 00 42 [22:25:01]Write i2c OK [22:25:01]MH_I2C_Read... [22:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:01]Read from MH i2c: E2 [22:25:01]MH_I2C_Read... [22:25:01]Read from MH i2c: E2 0E 00 [22:25:01]MH_I2C_Read... [22:25:01]Read from MH i2c: E2 0E 00 BF 06 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 15 [22:25:01]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:25:01]wFMCommunicate OK [22:25:01]SAM_PROTO_GetShiftState done [22:25:01]FM_GetShiftState done [22:25:01]opened in 1717288520 [22:25:01]opened+sec_in_day 1717374920 [22:25:01]quantity*price = 80044 [22:25:01]sum+1 = 80045 [22:25:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.44 НСП 1% : 7.08 НДС 12% : 85.00 Наличными: 0.00 Безнал.: 800.44 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 699 02.06.2024 22:25 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57872 ФПД: 259543727173274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222502&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57872&fm=259543727173274&tin=02508201610067®Number=0000000000151680&sum=80044 [22:25:05]StoreToDocumentArchive [22:25:05]shift 69 fd 57872 [22:25:05]save to /storage/0069/doc_00057872 [22:25:05]save last doc name /storage/0069/doc_00057872 to /storage/kkm_last_doc_name [22:25:05]save OK [22:25:05]Clear old archive folders... [22:25:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:25:05]tlvbuf is 019BCB30 [22:25:05]SAM_PROTO_ClearQueue [22:25:05]wFMCommunicate request_size=4 [22:25:05]MH_SAM_APDU [22:25:05]CAPDU: 80 09 00 00 [22:25:05]Write to MH i2c: E2 08 00 CC 06 80 09 00 00 00 00 00 00 44 [22:25:05]Write i2c OK [22:25:05]MH_I2C_Read... [22:25:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:25:05]Read from MH i2c: E2 [22:25:05]MH_I2C_Read... [22:25:05]Read from MH i2c: E2 03 00 [22:25:05]MH_I2C_Read... [22:25:05]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [22:25:05]RAPDU: 90 00 [22:25:05]wFMCommunicate OK [22:25:05]SAM_PROTO_ClearQueue done [22:25:05]KKMCreateOFDPacket [22:25:05]OFDProtocolAddRootSTLVToBuf [22:25:05]FM_MakeSignedData [22:25:05]FM_MakeSignedData [22:25:05]SAM_PROTO_SignData [22:25:05]wFMCommunicate request_size=4 [22:25:05]MH_SAM_APDU [22:25:05]CAPDU: 80 0D 01 02 [22:25:05]Write to MH i2c: E2 08 00 CD 06 80 0D 01 02 00 00 00 00 4C [22:25:05]Write i2c OK [22:25:05]MH_I2C_Read... [22:25:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:25:05]Read from MH i2c: E2 [22:25:05]MH_I2C_Read... [22:25:05]Read from MH i2c: E2 03 00 [22:25:05]MH_I2C_Read... [22:25:05]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [22:25:05]RAPDU: 90 00 [22:25:05]wFMCommunicate OK [22:25:05]wFMCommunicate request_size=255 [22:25:05]MH_SAM_APDU [22:25:05]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 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 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 34 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 02 00 00 F4 03 04 00 3E F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 10 E2 00 00 35 04 06 00 EC 0D BB A9 [22:25:06]Write to MH i2c: E2 02 01 CE 06 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 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 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 34 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 02 00 00 F4 03 04 00 3E F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 10 E2 00 00 35 04 06 00 EC 0D BB A9 00 00 55 [22:25:07]Write i2c OK [22:25:07]MH_I2C_Read... [22:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:07]Read from MH i2c: E2 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 03 00 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [22:25:07]RAPDU: 90 00 [22:25:07]wFMCommunicate OK [22:25:07]wFMCommunicate request_size=7 [22:25:07]MH_SAM_APDU [22:25:07]CAPDU: 80 0D 02 02 02 6E 9A [22:25:07]Write to MH i2c: E2 0A 00 CF 06 80 0D 02 02 02 00 6E 9A 00 00 5B [22:25:07]Write i2c OK [22:25:07]MH_I2C_Read... [22:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:07]Read from MH i2c: E2 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 03 00 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [22:25:07]RAPDU: 90 00 [22:25:07]wFMCommunicate OK [22:25:07]wFMCommunicate request_size=4 [22:25:07]MH_SAM_APDU [22:25:07]CAPDU: 80 0D 03 02 [22:25:07]Write to MH i2c: E2 08 00 D0 06 80 0D 03 02 00 00 00 00 51 [22:25:07]Write i2c OK [22:25:07]MH_I2C_Read... [22:25:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:25:07]Read from MH i2c: E2 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 0B 00 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 0B 00 D0 06 00 41 19 EC C5 2D 08 B7 6C 90 00 B5 [22:25:07]RAPDU: 41 19 EC C5 2D 08 B7 6C 90 00 [22:25:07]wFMCommunicate OK [22:25:07]SAM_PROTO_SignData done [22:25:07]FM_MakeSignedData done [22:25:07]CreateOFDProtocolMessage [22:25:07]wFMCommunicate request_size=4 [22:25:07]MH_SAM_APDU [22:25:07]CAPDU: 80 11 00 00 [22:25:07]Write to MH i2c: E2 08 00 D1 06 80 11 00 00 00 00 00 00 51 [22:25:07]OFD Sender: No OFD packet to send [22:25:07]Write i2c OK [22:25:07]MH_I2C_Read... [22:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:07]Read from MH i2c: E2 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 17 00 [22:25:08]MH_I2C_Read... [22:25:08]Read from MH i2c: E2 17 00 D1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 A4 [22:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:25:08]wFMCommunicate OK [22:25:08]CreateOFDProtocolMessage done [22:25:08]OFDSenderStorePacket 57872 [22:25:08]StoreOFDPacket docnum=57872 [22:25:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 4B 13 04 01 B4 E5 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 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 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 34 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 02 00 00 F4 03 04 00 3E F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 10 E2 00 00 35 04 06 00 EC 0D BB A9 6E 9A 41 19 EC C5 2D 08 B7 6C [22:25:08]CheckFolder [22:25:08]dirname=/storage/ofd_packets [22:25:08]CheckFolder done [22:25:08]ProducePacketName [22:25:08]name=ofd_packets/00057872 [22:25:08]NVStorageSaveData ofd_packets/00057872 [22:25:08]File name is /storage/ofd_packets/00057872 [22:25:08]Write 298 bytes [22:25:08]NVStorageSaveData done [22:25:08]OFDSenderStorePacket done [22:25:08]KKMCreateOFDPacket done [22:25:08]NVStorageSaveData kkm_last_timestamp [22:25:08]File name is /storage/kkm_last_timestamp [22:25:08]Write 4 bytes [22:25:08]NVStorageSaveData done [22:25:08]ExternCall_PrintAddStr [22:25:08]wPrintStart [22:25:08]Write to MH i2c: 01 00 00 OFD Sender: Processing packet 57872 [packets to send 50, broken 49] [22:25:08]D2 ProducePacketName [22:25:08]06 name=ofd_packets/00057872 [22:25:08]D8 OFD Sender: To server: pG, [22:25:08] [22:25:08]CommunicateWithHost lk.salyk.kg:30040 [22:25:08]ConnectInit lk.salyk.kg [22:25:08]Write i2c OK [22:25:08]MH_I2C_Read... [22:25:08]Read from MH i2c: 01 [22:25:08]MH_I2C_Read... [22:25:08]Read from MH i2c: 01 07 00 [22:25:08]MH_I2C_Read... [22:25:08]Read from MH i2c: 01 07 00 D2 06 00 00 00 00 00 FF 0F ED [22:25:08]RasterBufferAndPrint [22:25:08]line Счет N : (1)543216 [22:25:08]line ИНН: 02508201610067 [22:25:08]line Контрольно-Кассовый Чек [22:25:08]line ПРОДАЖА [22:25:08]line ТРК (МРК, ГНК) : 31 [22:25:08]line Товар: 2710194210 [22:25:08]line ДТ-К-5 [22:25:08]line 10.980 * 72.90 [22:25:08]line = 800.44 [22:25:08]line НДС 12% НСП 1% [22:25:08]line > о реализуемом товаре [22:25:08]line ИТОГО: 800.44 [22:25:08]line НСП 1% : 7.08 [22:25:08]line НДС 12% : 85.00 [22:25:08]line Наличными: 0.00 [22:25:08]line Безнал.: 800.44 [22:25:08]line Место: АЗС № 117 "Партнер Нефть" [22:25:08]Connected sock=10 [22:25:08]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:25:08]Data to sent: line СНО: Общий режим [22:25:08]line Чек 699 02.06.2024 22:25 [22:25:08]line Смена: 69 ФФД: 1.0 [22:25:08]line ЗНМ: 0300000048 [22:25:08]87 line РНМ: 0000000000151680 [22:25:08]95 line Версия ККМ: v1.0 [22:25:08]line Платежная система: O! деньги [22:25:08]line ФМ: 0000000000959414 [22:25:08]line ФД: 57872 [22:25:08]F6 line ФПД: 259543727173274 [22:25:08]70 47 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222502&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57872&fm=259543727173274&tin=02508201610067®Number=0000000000151680&sum=80044 [22:25:08]2C 01 00 30 30 30 written 0, free lines is 4095 [22:25:08]30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 4B 13 04 01 B4 E5 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 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 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 34 21 00 00 00 Write to MH i2c: 00 01 07 04 06 00 00 00 00 00 00 00 00 00 FC 39 06 04 02 06 [22:25:09]00 Write i2c OK [22:25:09]AC MH_I2C_Read... [22:25:09]38 Read from MH i2c: 01 00 00 00 1F 01 04 [22:25:09]02 00 01 00 MH_I2C_Read... [22:25:09]12 Read from MH i2c: 04 04 00 BB 02 01 00 07 00 [22:25:09]MH_I2C_Read... [22:25:09]00 F4 Read from MH i2c: 03 04 00 3E F1 01 5C 07 66 00 0E FC 06 00 00 00 04 00 04 00 00 45 00 00 00 28 B9 0D 04 01 00 01 0D 3E 04 [22:25:09]RasterBufferAndPrint [22:25:09]line [22:25:09]line [22:25:09]line [22:25:09]line [22:25:09]line [22:25:09]10 written 0, free lines is 3662 [22:25:09]00 30 30 30 MH_Cut [22:25:09]30 Write to MH i2c: 30 D1 30 01 30 00 30 03 30 07 30 01 31 35 31 36 38 DC 30 [22:25:09]11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 10 E2 00 00 35 04 06 00 EC Write i2c OK [22:25:09]0D MH_I2C_Read... [22:25:09]BB Read from MH i2c: A9 D1 6E [22:25:09]9A MH_I2C_Read... [22:25:09]41 Read from MH i2c: 19 D1 EC 01 C5 00 2D [22:25:09]08 MH_I2C_Read... [22:25:09]B7 Read from MH i2c: 6C D1 01 00 03 07 00 DB [22:25:09]Write to MH i2c: 01 00 00 04 07 0B [22:25:09] [22:25:09]Write i2c OK [22:25:09]MH_I2C_Read... [22:25:09]*** Cut start [22:25:09]*** Partial cut [22:25:09]*** CUTSNS_PIN = 1 [22:25:09]*** CUTSNS_PIN = 0 [22:25:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 BB 6D 47 00 16 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 *** Brake cut motor [22:25:10]04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 10 E2 00 00 F4 03 04 00 14 9C 5C 66 B6 04 01 00 00 95 B0 F0 E3 6E CA CE BB [22:25:10]CommunicateWithHost err = 0 [22:25:10]CheckOFDResponse [22:25:10]*** Stop cut motor [22:25:10]Read from MH i2c: *** Cut end [22:25:10]01 [22:25:10]MH_I2C_Read... [22:25:10]1017 (14) - 77093643461234 [22:25:10]1041 (16) - 0000000000959414 [22:25:10]1040 (4) - 57872 [22:25:10]1012 (4) - 02.06.2024 16:21 [22:25:10]1206 (1) - 0 [22:25:10]OFD Sender: Remove packet 57872 [22:25:10]ProducePacketName [22:25:10]name=ofd_packets/00057872 [22:25:10]NVStorageDeleteData [22:25:10]Read from MH i2c: 01 07 00 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: 01 07 00 04 07 00 00 00 00 00 FF 0F 20 [22:25:10]process_action close_receipt done [22:25:10]requested_data is exist [22:25:10]produce_requested_data [22:25:10]requested_item fm.sn is exist - process it [22:25:10]wFMCommunicate request_size=4 [22:25:10]MH_SAM_APDU [22:25:10]CAPDU: 80 11 00 00 [22:25:10]Write to MH i2c: E2 08 00 05 07 80 11 00 00 00 00 00 00 86 [22:25:10]Write i2c OK [22:25:10]MH_I2C_Read... [22:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:10]Read from MH i2c: E2 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 17 00 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 17 00 05 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 D9 [22:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:25:10]wFMCommunicate OK [22:25:10]requested_item fd.num is exist - process it [22:25:10]SAM_PROTO_GetFieldsCounters [22:25:10]wFMCommunicate request_size=4 [22:25:10]MH_SAM_APDU [22:25:11]CAPDU: 80 13 00 00 [22:25:11]Write to MH i2c: E2 08 00 06 07 80 13 00 00 00 00 00 00 89 [22:25:11]Write i2c OK [22:25:11]MH_I2C_Read... [22:25:11]OFD Sender: No OFD packet to send [22:25:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:11]Read from MH i2c: E2 [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: E2 62 00 [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: E2 62 00 06 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 10 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 BB 02 00 00 5E 04 04 00 BB 02 00 00 57 04 04 00 BC 02 00 00 19 04 04 00 00 00 00 00 90 00 14 [22:25:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 10 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 BB 02 00 00 5E 04 04 00 BB 02 00 00 57 04 04 00 BC 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:11]wFMCommunicate OK [22:25:11]SAM_PROTO_GetFieldsCounters done [22:25:11]requested_item shift.num is exist - process it [22:25:11]requested_item shift.opened is exist - process it [22:25:11]req_shift_opened [22:25:11]FM_GetShiftState [22:25:11]SAM_PROTO_GetShiftState [22:25:11]wFMCommunicate request_size=4 [22:25:11]MH_SAM_APDU [22:25:11]CAPDU: 80 13 01 00 [22:25:11]Write to MH i2c: E2 08 00 07 07 80 13 01 00 00 00 00 00 8B [22:25:11]Write i2c OK [22:25:11]MH_I2C_Read... [22:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:11]Read from MH i2c: E2 [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: E2 0E 00 [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: E2 0E 00 07 07 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 5E [22:25:12]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:25:12]wFMCommunicate OK [22:25:12]SAM_PROTO_GetShiftState done [22:25:12]FM_GetShiftState done [22:25:12]req_shift_opened done [22:25:12]requested_item shift.open_date is exist - process it [22:25:12]req_shift_open_date [22:25:12]req_shift_open_date done [22:25:12]produce_requested_data done [22:25:12]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57872,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:25:12]process_action_free close_receipt [22:25:12]json_value_free [22:25:12]json_value_free done [22:25:12]process_json_proto returns [22:25:12]Send response to host [22:25:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57872,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:25:12]free response buf [22:25:12]execute_script done [22:25:12]execute_script returns [22:25:12]free content buf [22:25:12]Sock 9.Close socket [22:25:12]Sock 9.Thread stoped [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:28]accept exits with 8 [22:25:28]New connection [22:25:28]New thread 3066592612 created [22:25:28]Thread 3066735972 joined [22:25:28]Waiting for new connection... [22:25:28] Sock 8.Parse request [22:25:28]Sock 8.Check first char [22:25:28]Sock 8.First char is OK [22:25:28]request: POST /json_proto HTTP/1.0 [22:25:28]Method: POST [22:25:28]URL: /json_proto [22:25:28]Method is POST - this is cgi request [22:25:28]url: /json_proto [22:25:28]query_string will be loaded in cgi processing [22:25:28]execute_cgi json_proto POST (null) [22:25:28]execute_cgi path=json_proto method=POST [22:25:28]POST find Content-Length [22:25:28]Host: 172.17.60.68:8080 [22:25:28]Content-Length: 846 [22:25:28]Content-Type: application/json [22:25:28] [22:25:28]POST finish read [22:25:28]Found Content-Length = 846 [22:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 49.720, "sum" : 1735.23, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1735.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:28]execute_script... [22:25: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)543212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 49.720, "sum" : 1735.23, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1735.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:28]POST & json_proto [22:25:28]process_json_proto [22:25:28]json parsed OK: [22:25:28]protocol is kg_v1.0 [22:25:28]action value=close_receipt [22:25:28]process_action close_receipt [22:25:28]cmd_close_receipt [22:25:28]MH_GetDate [22:25:28]Write to MH i2c: F0 00 00 08 07 FE [22:25:28]Write i2c OK [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: F0 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: F0 09 00 [22:25:28]MH_I2C_Read... [22:25:29]Read from MH i2c: F0 09 00 08 07 00 59 F1 5C 66 8D A7 02 66 AF [22:25:29]GetLastDocTimeStamp 1717367102 [22:25:29]current date 1717367129 [22:25:29]FM_GetShiftState [22:25:29]SAM_PROTO_GetShiftState [22:25:29]wFMCommunicate request_size=4 [22:25:29]MH_SAM_APDU [22:25:29]CAPDU: 80 13 01 00 [22:25:29]Write to MH i2c: E2 08 00 09 07 80 13 01 00 00 00 00 00 8D [22:25:29]Write i2c OK [22:25:29]MH_I2C_Read... [22:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:29]Read from MH i2c: E2 [22:25:29]MH_I2C_Read... [22:25:29]Read from MH i2c: E2 0E 00 [22:25:29]MH_I2C_Read... [22:25:29]Read from MH i2c: E2 0E 00 09 07 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 60 [22:25:29]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:25:29]wFMCommunicate OK [22:25:29]SAM_PROTO_GetShiftState done [22:25:29]FM_GetShiftState done [22:25:29]opened in 1717288520 [22:25:29]opened+sec_in_day 1717374920 [22:25:29]quantity*price = 173522 [22:25:29]sum+1 = 173524 [22:25:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1735.23 НСП 1% : 15.36 НДС 12% : 184.27 Наличными: 0.00 Безнал.: 1735.23 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 700 02.06.2024 22:25 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000000959414 ФД: 57873 ФПД: 300215264540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222530&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57873&fm=300215264540&tin=02508201610067®Number=0000000000151680&sum=173523 [22:25:33]StoreToDocumentArchive [22:25:33]shift 69 fd 57873 [22:25:33]save to /storage/0069/doc_00057873 [22:25:33]save last doc name /storage/0069/doc_00057873 to /storage/kkm_last_doc_name [22:25:33]save OK [22:25:33]Clear old archive folders... [22:25:33]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:25:33]tlvbuf is 019BE770 [22:25:33]SAM_PROTO_ClearQueue [22:25:33]wFMCommunicate request_size=4 [22:25:33]MH_SAM_APDU [22:25:33]CAPDU: 80 09 00 00 [22:25:33]Write to MH i2c: E2 08 00 16 07 80 09 00 00 00 00 00 00 8F [22:25:33]Write i2c OK [22:25:33]MH_I2C_Read... [22:25:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:25:33]Read from MH i2c: E2 [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: E2 03 00 [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: E2 03 00 16 07 00 90 00 91 [22:25:33]RAPDU: 90 00 [22:25:33]wFMCommunicate OK [22:25:33]SAM_PROTO_ClearQueue done [22:25:33]KKMCreateOFDPacket [22:25:33]OFDProtocolAddRootSTLVToBuf [22:25:33]FM_MakeSignedData [22:25:33]FM_MakeSignedData [22:25:33]SAM_PROTO_SignData [22:25:33]wFMCommunicate request_size=4 [22:25:33]MH_SAM_APDU [22:25:33]CAPDU: 80 0D 01 02 [22:25:33]Write to MH i2c: E2 08 00 17 07 80 0D 01 02 00 00 00 00 97 [22:25:33]Write i2c OK [22:25:33]MH_I2C_Read... [22:25:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:25:33]Read from MH i2c: E2 [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: E2 03 00 [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: E2 03 00 17 07 00 90 00 92 [22:25:33]RAPDU: 90 00 [22:25:33]wFMCommunicate OK [22:25:33]wFMCommunicate request_size=255 [22:25:33]MH_SAM_APDU [22:25:33]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 C2 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 D3 A5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 A5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 47 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 A5 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 02 00 00 F4 03 04 00 5A F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 11 E2 00 00 35 04 06 00 00 45 [22:25:34]Write to MH i2c: E2 02 01 18 07 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 C2 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 D3 A5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 A5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 47 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 A5 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 02 00 00 F4 03 04 00 5A F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 11 E2 00 00 35 04 06 00 00 45 00 00 EB [22:25:35]Write i2c OK [22:25:35]MH_I2C_Read... [22:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:35]Read from MH i2c: E2 [22:25:35]MH_I2C_Read... [22:25:35]Read from MH i2c: E2 03 00 [22:25:35]MH_I2C_Read... [22:25:35]Read from MH i2c: E2 03 00 18 07 00 90 00 93 [22:25:35]RAPDU: 90 00 [22:25:35]wFMCommunicate OK [22:25:35]wFMCommunicate request_size=9 [22:25:35]MH_SAM_APDU [22:25:35]CAPDU: 80 0D 02 02 04 E6 39 65 1C [22:25:35]Write to MH i2c: E2 0C 00 19 07 80 0D 02 02 04 00 E6 39 65 1C 00 00 42 [22:25:35]Write i2c OK [22:25:35]MH_I2C_Read... [22:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:35]Read from MH i2c: E2 [22:25:35]MH_I2C_Read... [22:25:35]Read from MH i2c: E2 03 00 [22:25:35]MH_I2C_Read... [22:25:35]Read from MH i2c: E2 03 00 19 07 00 90 00 94 [22:25:35]RAPDU: 90 00 [22:25:35]wFMCommunicate OK [22:25:35]wFMCommunicate request_size=4 [22:25:35]MH_SAM_APDU [22:25:35]CAPDU: 80 0D 03 02 [22:25:35]Write to MH i2c: E2 08 00 1A 07 80 0D 03 02 00 00 00 00 9C [22:25:35]Write i2c OK [22:25:35]MH_I2C_Read... [22:25:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:25:35]Read from MH i2c: E2 [22:25:35]MH_I2C_Read... [22:25:35]Read from MH i2c: E2 0B 00 [22:25:35]MH_I2C_Read... [22:25:35]Read from MH i2c: E2 0B 00 1A 07 00 39 3C 04 16 8C 14 DC 7D 90 00 25 [22:25:35]RAPDU: 39 3C 04 16 8C 14 DC 7D 90 00 [22:25:35]wFMCommunicate OK [22:25:35]SAM_PROTO_SignData done [22:25:35]FM_MakeSignedData done [22:25:35]CreateOFDProtocolMessage [22:25:35]wFMCommunicate request_size=4 [22:25:35]MH_SAM_APDU [22:25:35]CAPDU: 80 11 00 00 [22:25:35]Write to MH i2c: E2 08 00 1B 07 80 11 00 00 00 00 00 00 9C [22:25:35]Write i2c OK [22:25:35]MH_I2C_Read... [22:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:35]Read from MH i2c: E2 [22:25:35]MH_I2C_Read... [22:25:35]Read from MH i2c: E2 17 00 [22:25:35]MH_I2C_Read... [22:25:35]Read from MH i2c: E2 17 00 1B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 EF [22:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:25:36]wFMCommunicate OK [22:25:36]CreateOFDProtocolMessage done [22:25:36]OFDSenderStorePacket 57873 [22:25:36]StoreOFDPacket docnum=57873 [22:25:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 E9 31 06 01 06 32 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 C2 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 D3 A5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 A5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 47 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 A5 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 02 00 00 F4 03 04 00 5A F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 11 E2 00 00 35 04 06 00 00 45 E6 39 65 1C 39 3C 04 16 8C 14 DC 7D [22:25:36]CheckFolder [22:25:36]dirname=/storage/ofd_packets [22:25:36]CheckFolder done [22:25:36]ProducePacketName [22:25:36]name=ofd_packets/00057873 [22:25:36]NVStorageSaveData ofd_packets/00057873 [22:25:36]File name is /storage/ofd_packets/00057873 [22:25:36]Write 300 bytes [22:25:36]NVStorageSaveData done [22:25:36]OFDSenderStorePacket done [22:25:36]KKMCreateOFDPacket done [22:25:36]NVStorageSaveData kkm_last_timestamp [22:25:36]File name is /storage/kkm_last_timestamp [22:25:36]Write 4 bytes [22:25:36]NVStorageSaveData done [22:25:36]ExternCall_PrintAddStr [22:25:36]wPrintStart [22:25:36]Write to MH i2c: 01 00 00 1C 07 23 [22:25:36]OFD Sender: Processing packet 57873 [packets to send 50, broken 49] [22:25:36]ProducePacketName [22:25:36]name=ofd_packets/00057873 [22:25:36]OFD Sender: To server: pG, [22:25:36]CommunicateWithHost lk.salyk.kg:30040 [22:25:36]ConnectInit lk.salyk.kg [22:25:36]Write i2c OK [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: 01 [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: 01 07 00 [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: 01 07 00 1C 07 00 00 00 00 00 FF 0F 38 [22:25:36]RasterBufferAndPrint [22:25:36]line Счет N : (1)543212 [22:25:36]line ИНН: 02508201610067 [22:25:36]Connected sock=10 [22:25:36]line Контрольно-Кассовый Чек [22:25:36]Data to sent: line ПРОДАЖА [22:25:36]line ТРК (МРК, ГНК) : 72 [22:25:36]line Товар: 2711190000 [22:25:36]line ГАЗ-К-5 [22:25:36]87 line 49.720 * 34.90 [22:25:36]95 line = 1735.23 [22:25:36]F6 line НДС 12% НСП 1% [22:25:36]70 line > о реализуемом товаре [22:25:36]47 line ИТОГО: 1735.23 [22:25:36]line НСП 1% : 15.36 [22:25:36]line НДС 12% : 184.27 [22:25:36]line Наличными: 0.00 [22:25:36]line Безнал.: 1735.23 [22:25:36]line Место: АЗС № 117 "Партнер Нефть" [22:25:36]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:25:36]line СНО: Общий режим [22:25:36]2C line Чек 700 02.06.2024 22:25 [22:25:36]01 line Смена: 69 ФФД: 1.0 [22:25:36]00 line ЗНМ: 0300000048 [22:25:36]30 line РНМ: 0000000000151680 [22:25:36]30 line Версия ККМ: v1.0 [22:25:36]line Платежная система: АКБ Кыргызстан [22:25:36]line ФМ: 0000000000959414 [22:25:36]line ФД: 57873 [22:25:36]30 line ФПД: 300215264540 [22:25:36]30 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222530&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57873&fm=300215264540&tin=02508201610067®Number=0000000000151680&sum=173523 [22:25:36]30 30 30 30 30 30 written 0, free lines is 4095 [22:25:36]39 35 39 34 31 34 0E 01 00 00 E9 31 06 01 06 32 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 C2 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 D3 A5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 A5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 06 Write to MH i2c: 00 01 00 00 00 00 00 46 EE 07 4D [22:25:37]03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 47 00 00 00 00 07 04 06 00 00 00 00 00 00 00 Write i2c OK [22:25:37]39 MH_I2C_Read... [22:25:37]04 Read from MH i2c: 06 01 00 [22:25:37]D3 A5 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 02 00 00 F4 03 04 00 5A F1 5C 66 0E 04 04 00 45 00 00 00 B9 MH_I2C_Read... [22:25:37]04 01 00 Read from MH i2c: 01 01 07 00 [22:25:37]0D 04 10 MH_I2C_Read... [22:25:37]00 30 Read from MH i2c: 30 30 30 01 30 30 07 30 30 30 00 30 31 35 46 31 36 07 38 00 00 30 00 00 11 00 04 10 8E 00 30 0D 30 EF [22:25:37]30 RasterBufferAndPrint [22:25:37]30 line [22:25:37]30 line [22:25:37]line [22:25:37]30 line [22:25:37]30 line [22:25:37]30 written 0, free lines is 4095 [22:25:38]30 30 39 MH_Cut [22:25:38]35 Write to MH i2c: 39 D1 34 01 00 31 4D 34 07 10 01 04 26 04 [22:25:38]00 11 E2 00 00 35 04 06 00 00 45 E6 39 65 1C 39 3C 04 16 8C 14 Write i2c OK [22:25:38]DC MH_I2C_Read... [22:25:38]7D [22:25:38]Read from MH i2c: D1 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: D1 01 00 *** Cut start [22:25:38]*** Partial cut [22:25:38]*** CUTSNS_PIN = 1 [22:25:38] [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: D1 01 00 4D 07 00 25 [22:25:38]Write to MH i2c: 01 00 00 4E 07 55 [22:25:38]*** CUTSNS_PIN = 0 [22:25:38]Write i2c OK [22:25:38]MH_I2C_Read... [22:25:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 73 5F 47 00 B8 76 *** Brake cut motor [22:25:38]A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 Read from MH i2c: 30 01 30 [22:25:39]39 MH_I2C_Read... [22:25:39]Read from MH i2c: 35 01 39 07 34 00 31 [22:25:39]34 MH_I2C_Read... [22:25:39]10 04 04 00 11 E2 00 00 Read from MH i2c: F4 01 *** Stop cut motor [22:25:39]07 03 00 *** Cut end [22:25:39]04 00 4E 30 07 9C 00 5C 00 00 00 00 FF 66 0F B6 6A [22:25:39]process_action close_receipt done [22:25:39]requested_data is exist [22:25:39]produce_requested_data [22:25:39]requested_item fm.sn is exist - process it [22:25:39]wFMCommunicate request_size=4 [22:25:39]MH_SAM_APDU [22:25:39]CAPDU: 80 11 04 00 01 00 [22:25:39]Write to MH i2c: E2 08 00 00 00 51 AD 27 A6 5D 36 0C 70 [22:25:39]CommunicateWithHost err = 0 [22:25:39]CheckOFDResponse [22:25:39]1017 (14) - 77093643461234 [22:25:39]1041 (16) - 0000000000959414 [22:25:39]1040 (4) - 57873 [22:25:39]1012 (4) - 02.06.2024 16:22 [22:25:39]1206 (1) - 0 [22:25:39]OFD Sender: Remove packet 57873 [22:25:39]ProducePacketName [22:25:39]name=ofd_packets/00057873 [22:25:39]NVStorageDeleteData [22:25:39]4F 07 80 11 00 00 00 00 00 00 D0 [22:25:39]Write i2c OK [22:25:39]MH_I2C_Read... [22:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:39]Read from MH i2c: E2 [22:25:39]MH_I2C_Read... [22:25:39]Read from MH i2c: E2 17 00 [22:25:39]MH_I2C_Read... [22:25:39]Read from MH i2c: E2 17 00 4F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 23 [22:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:25:39]wFMCommunicate OK [22:25:39]requested_item fd.num is exist - process it [22:25:39]SAM_PROTO_GetFieldsCounters [22:25:39]wFMCommunicate request_size=4 [22:25:39]MH_SAM_APDU [22:25:39]CAPDU: 80 13 00 00 [22:25:39]Write to MH i2c: E2 08 00 50 07 80 13 00 00 00 00 00 00 D3 [22:25:39]Write i2c OK [22:25:39]MH_I2C_Read... [22:25:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:39]Read from MH i2c: E2 [22:25:39]MH_I2C_Read... [22:25:39]Read from MH i2c: E2 62 00 [22:25:39]MH_I2C_Read... [22:25:39]OFD Sender: No OFD packet to send [22:25:39]Read from MH i2c: E2 62 00 50 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 11 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 BC 02 00 00 5E 04 04 00 BC 02 00 00 57 04 04 00 BD 02 00 00 19 04 04 00 00 00 00 00 90 00 62 [22:25:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 11 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 BC 02 00 00 5E 04 04 00 BC 02 00 00 57 04 04 00 BD 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:40]wFMCommunicate OK [22:25:40]SAM_PROTO_GetFieldsCounters done [22:25:40]requested_item shift.num is exist - process it [22:25:40]requested_item shift.opened is exist - process it [22:25:40]req_shift_opened [22:25:40]FM_GetShiftState [22:25:40]SAM_PROTO_GetShiftState [22:25:40]wFMCommunicate request_size=4 [22:25:40]MH_SAM_APDU [22:25:40]CAPDU: 80 13 01 00 [22:25:40]Write to MH i2c: E2 08 00 51 07 80 13 01 00 00 00 00 00 D5 [22:25:40]Write i2c OK [22:25:40]MH_I2C_Read... [22:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:40]Read from MH i2c: E2 [22:25:40]MH_I2C_Read... [22:25:40]Read from MH i2c: E2 0E 00 [22:25:40]MH_I2C_Read... [22:25:40]Read from MH i2c: E2 0E 00 51 07 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 A8 [22:25:40]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:25:40]wFMCommunicate OK [22:25:40]SAM_PROTO_GetShiftState done [22:25:40]FM_GetShiftState done [22:25:40]req_shift_opened done [22:25:40]requested_item shift.open_date is exist - process it [22:25:40]req_shift_open_date [22:25:40]req_shift_open_date done [22:25:40]produce_requested_data done [22:25:40]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57873,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:25:40]process_action_free close_receipt [22:25:40]json_value_free [22:25:40]json_value_free done [22:25:40]process_json_proto returns [22:25:40]Send response to host [22:25:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57873,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:25:40]free response buf [22:25:40]execute_script done [22:25:40]execute_script returns [22:25:40]free content buf [22:25:40]Sock 8.Close socket [22:25:40]Sock 8.Thread stoped [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:20]accept exits with 9 [22:26:20]New connection [22:26:20]New thread 3066735972 created [22:26:20]Thread 3066592612 joined [22:26:20]Waiting for new connection... [22:26:20] Sock 9.Parse request [22:26:20]Sock 9.Check first char [22:26:20]Sock 9.First char is OK [22:26:20]request: POST /json_proto HTTP/1.0 [22:26:20]Method: POST [22:26:20]URL: /json_proto [22:26:20]Method is POST - this is cgi request [22:26:20]url: /json_proto [22:26:20]query_string will be loaded in cgi processing [22:26:20]execute_cgi json_proto POST (null) [22:26:20]execute_cgi path=json_proto method=POST [22:26:20]POST find Content-Length [22:26:20]Host: 172.17.60.68:8080 [22:26:20]Content-Length: 670 [22:26:20]Content-Type: application/json [22:26:20] [22:26:20]POST finish read [22:26:20]Found Content-Length = 670 [22:26:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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:26:20]execute_script... [22:26:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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:26:20]POST & json_proto [22:26:20]process_json_proto [22:26:20]json parsed OK: [22:26:20]protocol is kg_v1.0 [22:26:20]action value=close_receipt [22:26:20]process_action close_receipt [22:26:20]cmd_close_receipt [22:26:20]MH_GetDate [22:26:20]Write to MH i2c: F0 00 00 52 07 48 [22:26:20]Write i2c OK [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: F0 [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: F0 09 00 [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: F0 09 00 52 07 00 8D F1 5C 66 8D A7 02 66 2D [22:26:20]GetLastDocTimeStamp 1717367130 [22:26:20]current date 1717367181 [22:26:20]FM_GetShiftState [22:26:20]SAM_PROTO_GetShiftState [22:26:20]wFMCommunicate request_size=4 [22:26:20]MH_SAM_APDU [22:26:20]CAPDU: 80 13 01 00 [22:26:20]Write to MH i2c: E2 08 00 53 07 80 13 01 00 00 00 00 00 D7 [22:26:20]Write i2c OK [22:26:20]MH_I2C_Read... [22:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:20]Read from MH i2c: E2 [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: E2 0E 00 [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: E2 0E 00 53 07 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 AA [22:26:20]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:26:20]wFMCommunicate OK [22:26:20]SAM_PROTO_GetShiftState done [22:26:20]FM_GetShiftState done [22:26:20]opened in 1717288520 [22:26:20]opened+sec_in_day 1717374920 [22:26:20]quantity*price = 20017 [22:26:20]sum+1 = 20019 [22:26:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 701 02.06.2024 22:26 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57874 ФПД: 37841611237665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222621&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57874&fm=37841611237665&tin=02508201610067®Number=0000000000151680&sum=20000 [22:26:24]StoreToDocumentArchive [22:26:24]shift 69 fd 57874 [22:26:24]save to /storage/0069/doc_00057874 [22:26:24]save last doc name /storage/0069/doc_00057874 to /storage/kkm_last_doc_name [22:26:24]save OK [22:26:24]Clear old archive folders... [22:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:26:24]tlvbuf is 01A52DB0 [22:26:24]SAM_PROTO_ClearQueue [22:26:24]wFMCommunicate request_size=4 [22:26:24]MH_SAM_APDU [22:26:24]CAPDU: 80 09 00 00 [22:26:24]Write to MH i2c: E2 08 00 60 07 80 09 00 00 00 00 00 00 D9 [22:26:24]Write i2c OK [22:26:24]MH_I2C_Read... [22:26:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:24]Read from MH i2c: E2 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: E2 03 00 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: E2 03 00 60 07 00 90 00 DB [22:26:24]RAPDU: 90 00 [22:26:24]wFMCommunicate OK [22:26:24]SAM_PROTO_ClearQueue done [22:26:24]KKMCreateOFDPacket [22:26:24]OFDProtocolAddRootSTLVToBuf [22:26:24]FM_MakeSignedData [22:26:24]FM_MakeSignedData [22:26:24]SAM_PROTO_SignData [22:26:24]wFMCommunicate request_size=4 [22:26:24]MH_SAM_APDU [22:26:24]CAPDU: 80 0D 01 02 [22:26:24]Write to MH i2c: E2 08 00 61 07 80 0D 01 02 00 00 00 00 E1 [22:26:24]Write i2c OK [22:26:24]MH_I2C_Read... [22:26:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:24]Read from MH i2c: E2 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: E2 03 00 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: E2 03 00 61 07 00 90 00 DC [22:26:24]RAPDU: 90 00 [22:26:24]wFMCommunicate OK [22:26:24]wFMCommunicate request_size=255 [22:26:24]MH_SAM_APDU [22:26:24]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 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 02 00 00 F4 03 04 00 8D F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 OFD Sender: No OFD packet to send [22:26:25]30 39 35 39 34 31 34 10 04 04 00 12 E2 00 00 35 04 06 00 [22:26:25]Write to MH i2c: E2 02 01 62 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 02 00 00 F4 03 04 00 8D F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 12 E2 00 00 35 04 06 00 00 00 32 [22:26:26]Write i2c OK [22:26:26]MH_I2C_Read... [22:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:26]Read from MH i2c: E2 [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: E2 03 00 [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: E2 03 00 62 07 00 90 00 DD [22:26:26]RAPDU: 90 00 [22:26:26]wFMCommunicate OK [22:26:26]wFMCommunicate request_size=11 [22:26:26]MH_SAM_APDU [22:26:26]CAPDU: 80 0D 02 02 06 22 6A AF CB A9 21 [22:26:26]Write to MH i2c: E2 0E 00 63 07 80 0D 02 02 06 00 22 6A AF CB A9 21 00 00 C0 [22:26:26]Write i2c OK [22:26:26]MH_I2C_Read... [22:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:26]Read from MH i2c: E2 [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: E2 03 00 [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [22:26:26]RAPDU: 90 00 [22:26:26]wFMCommunicate OK [22:26:26]wFMCommunicate request_size=4 [22:26:26]MH_SAM_APDU [22:26:26]CAPDU: 80 0D 03 02 [22:26:26]Write to MH i2c: E2 08 00 64 07 80 0D 03 02 00 00 00 00 E6 [22:26:27]Write i2c OK [22:26:27]MH_I2C_Read... [22:26:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:27]Read from MH i2c: E2 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: E2 0B 00 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: E2 0B 00 64 07 00 62 DA 30 88 3A 12 37 2C 90 00 8A [22:26:27]RAPDU: 62 DA 30 88 3A 12 37 2C 90 00 [22:26:27]wFMCommunicate OK [22:26:27]SAM_PROTO_SignData done [22:26:27]FM_MakeSignedData done [22:26:27]CreateOFDProtocolMessage [22:26:27]wFMCommunicate request_size=4 [22:26:27]MH_SAM_APDU [22:26:27]CAPDU: 80 11 00 00 [22:26:27]Write to MH i2c: E2 08 00 65 07 80 11 00 00 00 00 00 00 E6 [22:26:27]Write i2c OK [22:26:27]MH_I2C_Read... [22:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:27]Read from MH i2c: E2 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: E2 17 00 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: E2 17 00 65 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 39 [22:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:26:27]wFMCommunicate OK [22:26:27]CreateOFDProtocolMessage done [22:26:27]OFDSenderStorePacket 57874 [22:26:27]StoreOFDPacket docnum=57874 [22:26:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 39 59 08 01 5B E6 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 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 02 00 00 F4 03 04 00 8D F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 12 E2 00 00 35 04 06 00 22 6A AF CB A9 21 62 DA 30 88 3A 12 37 2C [22:26:27]CheckFolder [22:26:27]dirname=/storage/ofd_packets [22:26:27]CheckFolder done [22:26:27]ProducePacketName [22:26:27]name=ofd_packets/00057874 [22:26:27]NVStorageSaveData ofd_packets/00057874 [22:26:27]File name is /storage/ofd_packets/00057874 [22:26:27]Write 302 bytes [22:26:27]NVStorageSaveData done [22:26:27]OFDSenderStorePacket done [22:26:27]KKMCreateOFDPacket done [22:26:27]NVStorageSaveData kkm_last_timestamp [22:26:27]File name is /storage/kkm_last_timestamp [22:26:27]Write 4 bytes [22:26:27]NVStorageSaveData done [22:26:27]ExternCall_PrintAddStr [22:26:27]wPrintStart [22:26:27]Write to MH i2c: 01 00 00 66 07 6D [22:26:27]Write i2c OK [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: 01 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: 01 07 00 [22:26:27]MH_I2C_Read... [22:26:27]OFD Sender: Processing packet 57874 [packets to send 50, broken 49] [22:26:27]ProducePacketName [22:26:27]name=ofd_packets/00057874 [22:26:27]OFD Sender: To server: pG, [22:26:27]CommunicateWithHost lk.salyk.kg:30040 [22:26:27]ConnectInit lk.salyk.kg [22:26:27]Read from MH i2c: 01 07 00 66 07 00 00 00 00 00 FF 0F 82 [22:26:27]RasterBufferAndPrint [22:26:27]line Счет N : (1)543217 [22:26:27]line ИНН: 02508201610067 [22:26:27]line Контрольно-Кассовый Чек [22:26:27]line ПРОДАЖА [22:26:27]line ТРК (МРК, ГНК) : 14 [22:26:27]line Товар: 2710124130 [22:26:27]line SUPER 92-К-5 [22:26:27]line 2.970 * 67.40 [22:26:27]line = 200.18 [22:26:27]line НДС 12% НСП 1% [22:26:27]line > о реализуемом товаре [22:26:27]line ОКРУГЛЕНИЕ: -0.18 [22:26:27]line ИТОГО: 200.00 [22:26:27]line Внесено: 200.00 [22:26:27]line СДАЧА: 0.00 [22:26:27]line НСП 1% : 1.77 [22:26:27]line НДС 12% : 21.26 [22:26:27]line Наличными: 200.00 [22:26:27]line Безнал.: 0.00 [22:26:27]line Место: АЗС № 117 "Партнер Нефть" [22:26:27]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:26:27]line СНО: Общий режим [22:26:27]line Чек 701 02.06.2024 22:26 [22:26:27]line Смена: 69 ФФД: 1.0 [22:26:27]line ЗНМ: 0300000048 [22:26:27]line РНМ: 0000000000151680 [22:26:27]line Версия ККМ: v1.0 [22:26:27]line ФМ: 0000000000959414 [22:26:27]line ФД: 57874 [22:26:27]line ФПД: 37841611237665 [22:26:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222621&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57874&fm=37841611237665&tin=02508201610067®Number=0000000000151680&sum=20000 [22:26:27]Connected sock=10 [22:26:27]Data to sent: 87 95 written 0, free lines is 4095 [22:26:27]F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 39 59 08 01 5B E6 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 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 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 Write to MH i2c: 00 01 4E 00 08 00 00 00 00 00 07 04 06 00 20 4E 91 00 07 00 98 00 [22:26:28]00 39 Write i2c OK [22:26:28]04 MH_I2C_Read... [22:26:28]06 00 00 00 Read from MH i2c: 00 01 [22:26:28]MH_I2C_Read... [22:26:28]00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 02 00 00 F4 03 04 00 8D F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 Read from MH i2c: 30 01 30 07 30 00 30 [22:26:28]30 MH_I2C_Read... [22:26:28]30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 12 E2 00 00 35 04 06 Read from MH i2c: 00 01 22 07 6A 00 AF 91 CB 07 A9 21 62 DA 30 88 3A 12 37 2C [22:26:29]00 00 00 00 00 E6 0D 92 [22:26:29]RasterBufferAndPrint [22:26:29]line [22:26:29]line [22:26:29]line [22:26:29]line [22:26:29]line [22:26:29]written 0, free lines is 4095 [22:26:29]MH_Cut [22:26:29]Write to MH i2c: D1 01 00 98 07 01 71 [22:26:29]Write i2c OK [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: D1 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: D1 01 00 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: D1 01 00 98 07 00 70 [22:26:29]Write to MH i2c: 01 00 00 99 07 A0 [22:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 Write i2c OK [22:26:29]00 MH_I2C_Read... [22:26:29]1D 15 47 00 30 *** Cut start [22:26:29]AA A5 07 *** Partial cut [22:26:29]*** CUTSNS_PIN = 1 [22:26:29]*** CUTSNS_PIN = 0 [22:26:29]01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 12 E2 00 00 F4 03 04 00 63 9C 5C 66 B6 04 01 00 00 B4 20 80 43 9C 09 1E 56 [22:26:29]CommunicateWithHost err = 0 [22:26:29]CheckOFDResponse [22:26:29]1017 (14) - 77093643461234 [22:26:29]1041 (16) - 0000000000959414 [22:26:29]1040 (4) - 57874 [22:26:29]1012 (4) - 02.06.2024 16:22 [22:26:29]1206 (1) - 0 [22:26:29]OFD Sender: Remove packet 57874 [22:26:29]ProducePacketName [22:26:29]name=ofd_packets/00057874 [22:26:29]NVStorageDeleteData [22:26:29]*** Brake cut motor [22:26:30]Read from MH i2c: 01 [22:26:30]MH_I2C_Read... [22:26:30]*** Stop cut motor [22:26:30]*** Cut end [22:26:30]Read from MH i2c: 01 07 00 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: 01 07 00 99 07 00 00 00 00 00 FF 0F B5 [22:26:30]process_action close_receipt done [22:26:30]requested_data is exist [22:26:30]produce_requested_data [22:26:30]requested_item fm.sn is exist - process it [22:26:30]wFMCommunicate request_size=4 [22:26:30]MH_SAM_APDU [22:26:30]CAPDU: 80 11 00 00 [22:26:30]Write to MH i2c: E2 08 00 9A 07 80 11 00 00 00 00 00 00 OFD Sender: No OFD packet to send [22:26:30]1B [22:26:30]Write i2c OK [22:26:30]MH_I2C_Read... [22:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:30]Read from MH i2c: E2 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: E2 17 00 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: E2 17 00 9A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 6E [22:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:26:30]wFMCommunicate OK [22:26:30]requested_item fd.num is exist - process it [22:26:30]SAM_PROTO_GetFieldsCounters [22:26:30]wFMCommunicate request_size=4 [22:26:30]MH_SAM_APDU [22:26:30]CAPDU: 80 13 00 00 [22:26:30]Write to MH i2c: E2 08 00 9B 07 80 13 00 00 00 00 00 00 1E [22:26:30]Write i2c OK [22:26:30]MH_I2C_Read... [22:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:30]Read from MH i2c: E2 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: E2 62 00 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: E2 62 00 9B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 12 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 BD 02 00 00 5E 04 04 00 BD 02 00 00 57 04 04 00 BE 02 00 00 19 04 04 00 00 00 00 00 90 00 B1 [22:26:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 12 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 BD 02 00 00 5E 04 04 00 BD 02 00 00 57 04 04 00 BE 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:26:31]wFMCommunicate OK [22:26:31]SAM_PROTO_GetFieldsCounters done [22:26:31]requested_item shift.num is exist - process it [22:26:31]requested_item shift.opened is exist - process it [22:26:31]req_shift_opened [22:26:31]FM_GetShiftState [22:26:31]SAM_PROTO_GetShiftState [22:26:31]wFMCommunicate request_size=4 [22:26:31]MH_SAM_APDU [22:26:31]CAPDU: 80 13 01 00 [22:26:31]Write to MH i2c: E2 08 00 9C 07 80 13 01 00 00 00 00 00 20 [22:26:31]Write i2c OK [22:26:31]MH_I2C_Read... [22:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:31]Read from MH i2c: E2 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 0E 00 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 0E 00 9C 07 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 F3 [22:26:31]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:26:31]wFMCommunicate OK [22:26:31]SAM_PROTO_GetShiftState done [22:26:31]FM_GetShiftState done [22:26:31]req_shift_opened done [22:26:31]requested_item shift.open_date is exist - process it [22:26:31]req_shift_open_date [22:26:31]req_shift_open_date done [22:26:31]produce_requested_data done [22:26:31]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57874,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:26:31]process_action_free close_receipt [22:26:31]json_value_free [22:26:31]json_value_free done [22:26:31]process_json_proto returns [22:26:31]Send response to host [22:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57874,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:26:31]free response buf [22:26:31]execute_script done [22:26:31]execute_script returns [22:26:31]free content buf [22:26:31]Sock 9.Close socket [22:26:31]Sock 9.Thread stoped [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [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:45]accept exits with 8 [22:27:45]New connection [22:27:45]New thread 3066592612 created [22:27:45]Thread 3066735972 joined [22:27:45]Waiting for new connection... [22:27:45] Sock 8.Parse request [22:27:45]Sock 8.Check first char [22:27:45]Sock 8.First char is OK [22:27:45]request: POST /json_proto HTTP/1.0 [22:27:45]Method: POST [22:27:45]URL: /json_proto [22:27:45]Method is POST - this is cgi request [22:27:45]url: /json_proto [22:27:45]query_string will be loaded in cgi processing [22:27:45]execute_cgi json_proto POST (null) [22:27:45]execute_cgi path=json_proto method=POST [22:27:45]POST find Content-Length [22:27:45]Host: 172.17.60.68:8080 [22:27:45]Content-Length: 677 [22:27:45]Content-Type: application/json [22:27:45] [22:27:45]POST finish read [22:27:45]Found Content-Length = 677 [22:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543218", "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:27:45]execute_script... [22:27:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543218", "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:27:45]POST & json_proto [22:27:45]process_json_proto [22:27:45]json parsed OK: [22:27:45]protocol is kg_v1.0 [22:27:45]action value=close_receipt [22:27:45]process_action close_receipt [22:27:45]cmd_close_receipt [22:27:45]MH_GetDate [22:27:45]Write to MH i2c: F0 00 00 9D 07 93 [22:27:45]Write i2c OK [22:27:45]MH_I2C_Read... [22:27:45]Read from MH i2c: F0 [22:27:45]MH_I2C_Read... [22:27:45]Read from MH i2c: F0 09 00 [22:27:45]MH_I2C_Read... [22:27:45]Read from MH i2c: F0 09 00 9D 07 00 E2 F1 5C 66 8D A7 02 66 CD [22:27:45]GetLastDocTimeStamp 1717367181 [22:27:45]current date 1717367266 [22:27:45]FM_GetShiftState [22:27:45]SAM_PROTO_GetShiftState [22:27:45]wFMCommunicate request_size=4 [22:27:45]MH_SAM_APDU [22:27:45]CAPDU: 80 13 01 00 [22:27:45]Write to MH i2c: E2 08 00 9E 07 80 13 01 00 00 00 00 00 22 [22:27:45]Write i2c OK [22:27:45]MH_I2C_Read... [22:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:45]Read from MH i2c: E2 [22:27:45]MH_I2C_Read... [22:27:45]Read from MH i2c: E2 0E 00 [22:27:45]MH_I2C_Read... [22:27:45]Read from MH i2c: E2 0E 00 9E 07 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 F5 [22:27:45]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:27:45]wFMCommunicate OK [22:27:45]SAM_PROTO_GetShiftState done [22:27:45]FM_GetShiftState done [22:27:45]opened in 1717288520 [22:27:45]opened+sec_in_day 1717374920 [22:27:45]quantity*price = 35059 [22:27:45]sum+1 = 35060 [22:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 702 02.06.2024 22:27 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57875 ФПД: 200048353714549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222746&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57875&fm=200048353714549&tin=02508201610067®Number=0000000000151680&sum=35000 [22:27:48]StoreToDocumentArchive [22:27:48]shift 69 fd 57875 [22:27:48]save to /storage/0069/doc_00057875 [22:27:48]save last doc name /storage/0069/doc_00057875 to /storage/kkm_last_doc_name [22:27:48]save OK [22:27:48]Clear old archive folders... [22:27:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:48]tlvbuf is 018F61B0 [22:27:48]SAM_PROTO_ClearQueue [22:27:48]wFMCommunicate request_size=4 [22:27:48]MH_SAM_APDU [22:27:48]CAPDU: 80 09 00 00 [22:27:48]Write to MH i2c: E2 08 00 AB 07 80 09 00 00 00 00 00 00 24 [22:27:48]Write i2c OK [22:27:48]MH_I2C_Read... [22:27:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:48]Read from MH i2c: E2 [22:27:48]MH_I2C_Read... [22:27:48]Read from MH i2c: E2 03 00 [22:27:48]MH_I2C_Read... [22:27:48]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [22:27:48]RAPDU: 90 00 [22:27:48]wFMCommunicate OK [22:27:48]SAM_PROTO_ClearQueue done [22:27:48]KKMCreateOFDPacket [22:27:48]OFDProtocolAddRootSTLVToBuf [22:27:48]FM_MakeSignedData [22:27:48]FM_MakeSignedData [22:27:48]SAM_PROTO_SignData [22:27:48]wFMCommunicate request_size=4 [22:27:48]MH_SAM_APDU [22:27:48]CAPDU: 80 0D 01 02 [22:27:48]Write to MH i2c: E2 08 00 AC 07 80 0D 01 02 00 00 00 00 2C [22:27:49]Write i2c OK [22:27:49]MH_I2C_Read... [22:27:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:49]Read from MH i2c: E2 [22:27:49]MH_I2C_Read... [22:27:49]Read from MH i2c: E2 03 00 [22:27:49]MH_I2C_Read... [22:27:49]Read from MH i2c: E2 03 00 AC 07 00 90 00 27 [22:27:49]RAPDU: 90 00 [22:27:49]wFMCommunicate OK [22:27:49]wFMCommunicate request_size=255 [22:27:49]MH_SAM_APDU [22:27:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 BE 02 00 00 F4 03 04 00 E2 F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 13 E2 00 00 35 04 06 00 B5 [22:27:49]Write to MH i2c: E2 02 01 AD 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 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 BE 02 00 00 F4 03 04 00 E2 F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 13 E2 00 00 35 04 06 00 B5 00 00 FE [22:27:50]Write i2c OK [22:27:50]MH_I2C_Read... [22:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:50]Read from MH i2c: E2 [22:27:50]MH_I2C_Read... [22:27:50]Read from MH i2c: E2 03 00 [22:27:50]MH_I2C_Read... [22:27:50]Read from MH i2c: E2 03 00 AD 07 00 90 00 28 [22:27:50]RAPDU: 90 00 [22:27:50]wFMCommunicate OK [22:27:50]wFMCommunicate request_size=10 [22:27:50]MH_SAM_APDU [22:27:50]CAPDU: 80 0D 02 02 05 F1 63 0F A1 75 [22:27:50]Write to MH i2c: E2 0D 00 AE 07 80 0D 02 02 05 00 F1 63 0F A1 75 00 00 B2 [22:27:50]OFD Sender: No OFD packet to send [22:27:50]Write i2c OK [22:27:50]MH_I2C_Read... [22:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:50]Read from MH i2c: E2 [22:27:50]MH_I2C_Read... [22:27:50]Read from MH i2c: E2 03 00 [22:27:50]MH_I2C_Read... [22:27:50]Read from MH i2c: E2 03 00 AE 07 00 90 00 29 [22:27:50]RAPDU: 90 00 [22:27:50]wFMCommunicate OK [22:27:50]wFMCommunicate request_size=4 [22:27:50]MH_SAM_APDU [22:27:50]CAPDU: 80 0D 03 02 [22:27:50]Write to MH i2c: E2 08 00 AF 07 80 0D 03 02 00 00 00 00 31 [22:27:50]Write i2c OK [22:27:50]MH_I2C_Read... [22:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:50]Read from MH i2c: E2 [22:27:50]MH_I2C_Read... [22:27:50]Read from MH i2c: E2 0B 00 [22:27:50]MH_I2C_Read... [22:27:50]Read from MH i2c: E2 0B 00 AF 07 00 2D 28 F2 53 DE 5D AC 0D 90 00 C0 [22:27:50]RAPDU: 2D 28 F2 53 DE 5D AC 0D 90 00 [22:27:50]wFMCommunicate OK [22:27:50]SAM_PROTO_SignData done [22:27:50]FM_MakeSignedData done [22:27:50]CreateOFDProtocolMessage [22:27:50]wFMCommunicate request_size=4 [22:27:50]MH_SAM_APDU [22:27:50]CAPDU: 80 11 00 00 [22:27:50]Write to MH i2c: E2 08 00 B0 07 80 11 00 00 00 00 00 00 31 [22:27:50]Write i2c OK [22:27:50]MH_I2C_Read... [22:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:50]Read from MH i2c: E2 [22:27:50]MH_I2C_Read... [22:27:50]Read from MH i2c: E2 17 00 [22:27:50]MH_I2C_Read... [22:27:50]Read from MH i2c: E2 17 00 B0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 84 [22:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:27:51]wFMCommunicate OK [22:27:51]CreateOFDProtocolMessage done [22:27:51]OFDSenderStorePacket 57875 [22:27:51]StoreOFDPacket docnum=57875 [22:27:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 68 42 07 01 D4 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 BE 02 00 00 F4 03 04 00 E2 F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 13 E2 00 00 35 04 06 00 B5 F1 63 0F A1 75 2D 28 F2 53 DE 5D AC 0D [22:27:51]CheckFolder [22:27:51]dirname=/storage/ofd_packets [22:27:51]CheckFolder done [22:27:51]ProducePacketName [22:27:51]name=ofd_packets/00057875 [22:27:51]NVStorageSaveData ofd_packets/00057875 [22:27:51]File name is /storage/ofd_packets/00057875 [22:27:51]Write 301 bytes [22:27:51]NVStorageSaveData done [22:27:51]OFDSenderStorePacket done [22:27:51]KKMCreateOFDPacket done [22:27:51]NVStorageSaveData kkm_last_timestamp [22:27:51]File name is /storage/kkm_last_timestamp [22:27:51]Write 4 bytes [22:27:51]NVStorageSaveData done [22:27:51]ExternCall_PrintAddStr [22:27:51]wPrintStart [22:27:51]Write to MH i2c: 01 00 00 B1 07 B8 [22:27:51]Write i2c OK [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: 01 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: 01 07 00 [22:27:51]MH_I2C_Read... [22:27:51]OFD Sender: Processing packet 57875 [packets to send 50, broken 49] [22:27:51]ProducePacketName [22:27:51]name=ofd_packets/00057875 [22:27:51]OFD Sender: To server: pG, [22:27:51]CommunicateWithHost lk.salyk.kg:30040 [22:27:51]ConnectInit lk.salyk.kg [22:27:51]Read from MH i2c: 01 07 00 B1 07 00 00 00 00 00 FF 0F CD [22:27:51]RasterBufferAndPrint [22:27:51]line Счет N : (1)543218 [22:27:51]line ИНН: 02508201610067 [22:27:51]line Контрольно-Кассовый Чек [22:27:51]line ПРОДАЖА [22:27:51]line ТРК (МРК, ГНК) : 22 [22:27:51]line Товар: 2710124130 [22:27:51]line Аи-92-К-5 [22:27:51]line 5.280 * 66.40 [22:27:51]line = 350.59 [22:27:51]line НДС 12% НСП 1% [22:27:51]line > о реализуемом товаре [22:27:51]line ОКРУГЛЕНИЕ: -0.59 [22:27:51]line ИТОГО: 350.00 [22:27:51]line Внесено: 350.00 [22:27:51]line СДАЧА: 0.00 [22:27:51]line НСП 1% : 3.10 [22:27:51]line НДС 12% : 37.23 [22:27:51]line Наличными: 350.00 [22:27:51]line Безнал.: 0.00 [22:27:51]line Место: АЗС № 117 "Партнер Нефть" [22:27:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:27:51]Connected sock=9 [22:27:51]line СНО: Общий режим [22:27:51]Data to sent: line Чек 702 02.06.2024 22:27 [22:27:51]87 line Смена: 69 ФФД: 1.0 [22:27:51]95 line ЗНМ: 0300000048 [22:27:51]F6 line РНМ: 0000000000151680 [22:27:51]line Версия ККМ: v1.0 [22:27:51]line ФМ: 0000000000959414 [22:27:51]line ФД: 57875 [22:27:51]line ФПД: 200048353714549 [22:27:51]70 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222746&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57875&fm=200048353714549&tin=02508201610067®Number=0000000000151680&sum=35000 [22:27:51]47 2C 01 00 30 30 written 0, free lines is 4095 [22:27:51]30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 68 42 07 01 D4 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 BE 02 00 00 F4 03 04 00 E2 F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 Write to MH i2c: 30 01 30 00 30 00 30 DC 31 35 31 36 38 30 11 04 10 00 30 07 30 E3 30 [22:27:51]30 Write i2c OK [22:27:51]30 MH_I2C_Read... [22:27:51]30 Read from MH i2c: 30 01 30 [22:27:51]30 30 39 35 39 34 MH_I2C_Read... [22:27:51]31 34 10 04 Read from MH i2c: 04 01 00 07 13 00 E2 [22:27:51]00 00 35 04 06 00 MH_I2C_Read... [22:27:51]B5 F1 63 0F A1 Read from MH i2c: 75 01 2D 07 00 DC 07 00 00 00 00 00 08 0D 28 FF F2 [22:27:52]53 DE 5D AC 0D [22:27:52]RasterBufferAndPrint [22:27:52]line [22:27:52]line [22:27:52]line [22:27:52]line [22:27:52]line [22:27:52]written 0, free lines is 3560 [22:27:52]MH_Cut [22:27:52]Write to MH i2c: D1 01 00 E3 07 01 BC [22:27:52]Write i2c OK [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: D1 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: D1 01 00 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: D1 01 00 E3 07 00 BB [22:27:52]Write to MH i2c: 01 00 00 E4 07 EB [22:27:52]Write i2c OK [22:27:52]MH_I2C_Read... [22:27:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 8A 6A 47 00 D6 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 13 E2 00 00 F4 03 04 00 B6 9C 5C 66 B6 04 01 00 00 01 CB 55 FC C3 CD AC 17 [22:27:52]CommunicateWithHost err = 0 [22:27:52]CheckOFDResponse [22:27:52]*** Cut start [22:27:52]1017 (14) - 77093643461234 [22:27:52]1041 (16) - 0000000000959414 [22:27:52]1040 (4) - 57875 [22:27:52]*** Partial cut [22:27:52]1012 (4) - 02.06.2024 16:24 [22:27:52]*** CUTSNS_PIN = 1 [22:27:52]1206 (1) - 0 [22:27:52]*** CUTSNS_PIN = 0 [22:27:52]OFD Sender: Remove packet 57875 [22:27:52]ProducePacketName [22:27:52]name=ofd_packets/00057875 [22:27:52]NVStorageDeleteData [22:27:53]*** Brake cut motor [22:27:53]Read from MH i2c: 01 [22:27:53]MH_I2C_Read... [22:27:53]*** Stop cut motor [22:27:53]*** Cut end [22:27:53]Read from MH i2c: 01 07 00 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: 01 07 00 E4 07 00 00 00 00 00 FF 0F 00 [22:27:53]process_action close_receipt done [22:27:53]requested_data is exist [22:27:53]produce_requested_data [22:27:53]requested_item fm.sn is exist - process it [22:27:53]wFMCommunicate request_size=4 [22:27:53]MH_SAM_APDU [22:27:53]CAPDU: 80 11 OFD Sender: No OFD packet to send [22:27:53]00 00 [22:27:53]Write to MH i2c: E2 08 00 E5 07 80 11 00 00 00 00 00 00 66 [22:27:53]Write i2c OK [22:27:53]MH_I2C_Read... [22:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:53]Read from MH i2c: E2 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 17 00 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 17 00 E5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 B9 [22:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:27:53]wFMCommunicate OK [22:27:53]requested_item fd.num is exist - process it [22:27:53]SAM_PROTO_GetFieldsCounters [22:27:53]wFMCommunicate request_size=4 [22:27:53]MH_SAM_APDU [22:27:53]CAPDU: 80 13 00 00 [22:27:53]Write to MH i2c: E2 08 00 E6 07 80 13 00 00 00 00 00 00 69 [22:27:53]Write i2c OK [22:27:53]MH_I2C_Read... [22:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:53]Read from MH i2c: E2 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 62 00 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 62 00 E6 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 13 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 BE 02 00 00 5E 04 04 00 BE 02 00 00 57 04 04 00 BF 02 00 00 19 04 04 00 00 00 00 00 90 00 00 [22:27:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 13 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 BE 02 00 00 5E 04 04 00 BE 02 00 00 57 04 04 00 BF 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:54]wFMCommunicate OK [22:27:54]SAM_PROTO_GetFieldsCounters done [22:27:54]requested_item shift.num is exist - process it [22:27:54]requested_item shift.opened is exist - process it [22:27:54]req_shift_opened [22:27:54]FM_GetShiftState [22:27:54]SAM_PROTO_GetShiftState [22:27:54]wFMCommunicate request_size=4 [22:27:54]MH_SAM_APDU [22:27:54]CAPDU: 80 13 01 00 [22:27:54]Write to MH i2c: E2 08 00 E7 07 80 13 01 00 00 00 00 00 6B [22:27:54]Write i2c OK [22:27:54]MH_I2C_Read... [22:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:54]Read from MH i2c: E2 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 0E 00 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 0E 00 E7 07 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 3E [22:27:54]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:27:54]wFMCommunicate OK [22:27:54]SAM_PROTO_GetShiftState done [22:27:54]FM_GetShiftState done [22:27:54]req_shift_opened done [22:27:54]requested_item shift.open_date is exist - process it [22:27:54]req_shift_open_date [22:27:54]req_shift_open_date done [22:27:54]produce_requested_data done [22:27:54]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57875,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:27:54]process_action_free close_receipt [22:27:54]json_value_free [22:27:54]json_value_free done [22:27:54]process_json_proto returns [22:27:54]Send response to host [22:27:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57875,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:27:54]free response buf [22:27:54]execute_script done [22:27:54]execute_script returns [22:27:54]free content buf [22:27:54]Sock 8.Close socket [22:27:54]Sock 8.Thread stoped [22:27:58]OFD Sender: No OFD packet to send [22:28:01]accept exits with 10 [22:28:01]New connection [22:28:01]New thread 3066735972 created [22:28:01]Thread 3066592612 joined [22:28:01]Waiting for new connection... [22:28:01] Sock 10.Parse request [22:28:01]Sock 10.Check first char [22:28:01]Sock 10.First char is OK [22:28:01]request: POST /json_proto HTTP/1.0 [22:28:01]Method: POST [22:28:01]URL: /json_proto [22:28:01]Method is POST - this is cgi request [22:28:01]url: /json_proto [22:28:01]query_string will be loaded in cgi processing [22:28:01]execute_cgi json_proto POST (null) [22:28:01]execute_cgi path=json_proto method=POST [22:28:01]POST find Content-Length [22:28:01]Host: 172.17.60.68:8080 [22:28:01]Content-Length: 840 [22:28:01]Content-Type: application/json [22:28:01] [22:28:01]POST finish read [22:28:01]Found Content-Length = 840 [22:28:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543219", "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" : 4.000, "sum" : 265.60, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 265.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:01]execute_script... [22:28:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543219", "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" : 4.000, "sum" : 265.60, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 265.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:01]POST & json_proto [22:28:01]process_json_proto [22:28:01]json parsed OK: [22:28:01]protocol is kg_v1.0 [22:28:01]action value=close_receipt [22:28:01]process_action close_receipt [22:28:01]cmd_close_receipt [22:28:01]MH_GetDate [22:28:01]Write to MH i2c: F0 00 00 E8 07 DE [22:28:01]Write i2c OK [22:28:01]MH_I2C_Read... [22:28:01]Read from MH i2c: F0 [22:28:01]MH_I2C_Read... [22:28:01]Read from MH i2c: F0 09 00 [22:28:01]MH_I2C_Read... [22:28:01]Read from MH i2c: F0 09 00 E8 07 00 F2 F1 5C 66 8D A7 02 66 28 [22:28:01]GetLastDocTimeStamp 1717367266 [22:28:01]current date 1717367282 [22:28:01]FM_GetShiftState [22:28:01]SAM_PROTO_GetShiftState [22:28:01]wFMCommunicate request_size=4 [22:28:01]MH_SAM_APDU [22:28:01]CAPDU: 80 13 01 00 [22:28:01]Write to MH i2c: E2 08 00 E9 07 80 13 01 00 00 00 00 00 6D [22:28:01]Write i2c OK [22:28:01]MH_I2C_Read... [22:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:01]Read from MH i2c: E2 [22:28:01]MH_I2C_Read... [22:28:01]Read from MH i2c: E2 0E 00 [22:28:01]MH_I2C_Read... [22:28:01]Read from MH i2c: E2 0E 00 E9 07 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 40 [22:28:01]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:28:01]wFMCommunicate OK [22:28:01]SAM_PROTO_GetShiftState done [22:28:01]FM_GetShiftState done [22:28:01]opened in 1717288520 [22:28:01]opened+sec_in_day 1717374920 [22:28:01]quantity*price = 26560 [22:28:01]sum+1 = 26561 [22:28:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 265.60 НСП 1% : 2.35 НДС 12% : 28.20 Наличными: 0.00 Безнал.: 265.60 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 703 02.06.2024 22:28 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000000959414 ФД: 57876 ФПД: 270367912134506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222802&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57876&fm=270367912134506&tin=02508201610067®Number=0000000000151680&sum=26560 [22:28:04]StoreToDocumentArchive [22:28:04]shift 69 fd 57876 [22:28:04]save to /storage/0069/doc_00057876 [22:28:04]save last doc name /storage/0069/doc_00057876 to /storage/kkm_last_doc_name [22:28:04]save OK [22:28:04]Clear old archive folders... [22:28:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:28:04]tlvbuf is 01AE2A80 [22:28:04]SAM_PROTO_ClearQueue [22:28:04]wFMCommunicate request_size=4 [22:28:04]MH_SAM_APDU [22:28:04]CAPDU: 80 09 00 00 [22:28:04]Write to MH i2c: E2 08 00 F6 07 80 09 00 00 00 00 00 00 6F [22:28:04]Write i2c OK [22:28:04]MH_I2C_Read... [22:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:04]Read from MH i2c: E2 [22:28:04]MH_I2C_Read... [22:28:04]Read from MH i2c: E2 03 00 [22:28:04]MH_I2C_Read... [22:28:04]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [22:28:04]RAPDU: 90 00 [22:28:04]wFMCommunicate OK [22:28:04]SAM_PROTO_ClearQueue done [22:28:04]KKMCreateOFDPacket [22:28:04]OFDProtocolAddRootSTLVToBuf [22:28:04]FM_MakeSignedData [22:28:04]FM_MakeSignedData [22:28:04]SAM_PROTO_SignData [22:28:04]wFMCommunicate request_size=4 [22:28:04]MH_SAM_APDU [22:28:04]CAPDU: 80 0D 01 02 [22:28:04]Write to MH i2c: E2 08 00 F7 07 80 0D 01 02 00 00 00 00 77 [22:28:05]Write i2c OK [22:28:05]MH_I2C_Read... [22:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:05]Read from MH i2c: E2 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 03 00 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 03 00 F7 07 00 90 00 72 [22:28:05]RAPDU: 90 00 [22:28:05]wFMCommunicate OK [22:28:05]wFMCommunicate request_size=255 [22:28:05]MH_SAM_APDU [22:28: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 A0 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 02 00 00 F4 03 04 00 F2 F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 14 E2 00 00 35 04 06 00 F5 [22:28:05]Write to MH i2c: E2 02 01 F8 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 A0 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 02 00 00 F4 03 04 00 F2 F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 14 E2 00 00 35 04 06 00 F5 00 00 3A [22:28:06]Write i2c OK [22:28:06]MH_I2C_Read... [22:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:06]Read from MH i2c: E2 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 03 00 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 03 00 F8 07 00 90 00 73 [22:28:06]RAPDU: 90 00 [22:28:06]wFMCommunicate OK [22:28:06]wFMCommunicate request_size=10 [22:28:06]MH_SAM_APDU [22:28:06]CAPDU: 80 0D 02 02 05 E5 EF 5C 87 6A [22:28:06]Write to MH i2c: E2 0D 00 F9 07 80 0D 02 02 05 00 E5 EF 5C 87 6A 00 00 A5 [22:28:06]Write i2c OK [22:28:06]MH_I2C_Read... [22:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:06]Read from MH i2c: E2 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 03 00 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [22:28:06]RAPDU: 90 00 [22:28:06]wFMCommunicate OK [22:28:06]wFMCommunicate request_size=4 [22:28:06]MH_SAM_APDU [22:28:06]CAPDU: 80 0D 03 02 [22:28:06]Write to MH i2c: E2 08 00 FA 07 80 0D 03 02 00 00 00 00 7C [22:28:06]Write i2c OK [22:28:06]MH_I2C_Read... [22:28:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:06]Read from MH i2c: E2 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 0B 00 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 0B 00 FA 07 00 DC 1A 64 26 34 FF D3 DB 90 00 DE [22:28:06]RAPDU: DC 1A 64 26 34 FF D3 DB 90 00 [22:28:06]wFMCommunicate OK [22:28:06]SAM_PROTO_SignData done [22:28:06]FM_MakeSignedData done [22:28:06]CreateOFDProtocolMessage [22:28:06]wFMCommunicate request_size=4 [22:28:06]MH_SAM_APDU [22:28:06]CAPDU: 80 11 00 00 [22:28:06]Write to MH i2c: E2 08 00 FB 07 80 11 00 00 00 00 00 00 7C [22:28:06]Write i2c OK [22:28:06]MH_I2C_Read... [22:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:06]Read from MH i2c: E2 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 17 00 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 17 00 FB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 CF [22:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:28:07]wFMCommunicate OK [22:28:07]CreateOFDProtocolMessage done [22:28:07]OFDSenderStorePacket 57876 [22:28:07]StoreOFDPacket docnum=57876 [22:28:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 EA AC 07 01 C9 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 02 00 00 F4 03 04 00 F2 F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 14 E2 00 00 35 04 06 00 F5 E5 EF 5C 87 6A DC 1A 64 26 34 FF D3 DB [22:28:07]CheckFolder [22:28:07]dirname=/storage/ofd_packets [22:28:07]CheckFolder done [22:28:07]ProducePacketName [22:28:07]name=ofd_packets/00057876 [22:28:07]NVStorageSaveData ofd_packets/00057876 [22:28:07]File name is /storage/ofd_packets/00057876 [22:28:07]Write 301 bytes [22:28:07]NVStorageSaveData done [22:28:07]OFDSenderStorePacket done [22:28:07]KKMCreateOFDPacket done [22:28:07]NVStorageSaveData kkm_last_timestamp [22:28:07]File name is /storage/kkm_last_timestamp [22:28:07]Write 4 bytes [22:28:07]NVStorageSaveData done [22:28:07]ExternCall_PrintAddStr [22:28:07]wPrintStart [22:28:07]Write to MH i2c: 01 00 00 FC 07 03 [22:28:07]OFD Sender: Processing packet 57876 [packets to send 50, broken 49] [22:28:07]ProducePacketName [22:28:07]name=ofd_packets/00057876 [22:28:07]OFD Sender: To server: pG, [22:28:07]CommunicateWithHost lk.salyk.kg:30040 [22:28:07]ConnectInit lk.salyk.kg [22:28:07]Write i2c OK [22:28:07]MH_I2C_Read... [22:28:07]Read from MH i2c: 01 [22:28:07]MH_I2C_Read... [22:28:07]Read from MH i2c: 01 07 00 [22:28:07]MH_I2C_Read... [22:28:07]Read from MH i2c: 01 07 00 FC 07 00 00 00 00 00 FF 0F 18 [22:28:07]RasterBufferAndPrint [22:28:07]line Счет N : (1)543219 [22:28:07]line ИНН: 02508201610067 [22:28:07]line Контрольно-Кассовый Чек [22:28:07]line ПРОДАЖА [22:28:07]line ТРК (МРК, ГНК) : 12 [22:28:07]line Товар: 2710124130 [22:28:07]line Аи-92-К-5 [22:28:07]line 4.000 * 66.40 [22:28:07]line = 265.60 [22:28:07]line НДС 12% НСП 1% [22:28:07]line > о реализуемом товаре [22:28:07]line ИТОГО: 265.60 [22:28:07]line НСП 1% : 2.35 [22:28:07]line НДС 12% : 28.20 [22:28:07]line Наличными: 0.00 [22:28:07]line Безнал.: 265.60 [22:28:07]line Место: АЗС № 117 "Партнер Нефть" [22:28:07]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:28:07]line СНО: Общий режим [22:28:07]line Чек 703 02.06.2024 22:28 [22:28:07]line Смена: 69 ФФД: 1.0 [22:28:07]line ЗНМ: 0300000048 [22:28:07]line РНМ: 0000000000151680 [22:28:07]line Версия ККМ: v1.0 [22:28:07]line Платежная система: АКБ Кыргызстан [22:28:07]line ФМ: 0000000000959414 [22:28:07]line ФД: 57876 [22:28:07]line ФПД: 270367912134506 [22:28:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222802&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57876&fm=270367912134506&tin=02508201610067®Number=0000000000151680&sum=26560 [22:28:07]Connected sock=9 [22:28:07]Data to sent: 87 95 written 0, free lines is 4095 [22:28:07]F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 EA AC 07 01 C9 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0B 00 00 00 00 07 04 06 00 Write to MH i2c: 00 01 00 00 00 00 00 26 00 00 39 04 06 00 08 C0 2E 67 [22:28:07]00 Write i2c OK [22:28:07]00 MH_I2C_Read... [22:28:07]00 Read from MH i2c: 00 01 1F [22:28:07]MH_I2C_Read... [22:28:07]04 02 00 01 00 12 04 04 00 BF 02 00 00 F4 03 04 00 F2 F1 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 Read from MH i2c: 10 00 30 30 30 30 01 30 07 30 00 30 [22:28:08]30 MH_I2C_Read... [22:28:08]30 30 Read from MH i2c: 31 01 35 07 31 00 36 26 38 30 11 04 10 00 08 30 00 30 00 30 00 30 00 30 30 30 30 30 30 00 39 15 35 0D 39 57 34 [22:28:08]31 RasterBufferAndPrint [22:28:08]line [22:28:08]line [22:28:08]line [22:28:08]line [22:28:08]line [22:28:08]34 10 04 04 00 14 E2 00 00 35 04 06 00 F5 E5 EF 5C 87 6A DC 1A 64 26 34 FF D3 DB [22:28:08]written 0, free lines is 3782 [22:28:08]MH_Cut [22:28:08]Write to MH i2c: D1 01 00 2D 08 01 07 [22:28:08]Write i2c OK [22:28:08]MH_I2C_Read... [22:28:08]Read from MH i2c: D1 [22:28:08]MH_I2C_Read... [22:28:08]Read from MH i2c: D1 01 00 [22:28:08]MH_I2C_Read... [22:28:08]Read from MH i2c: D1 01 00 2D 08 00 06 [22:28:08]Write to MH i2c: 01 00 00 2E 08 36 [22:28:08]Write i2c OK [22:28:08]MH_I2C_Read... [22:28:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 C6 49 47 00 8A 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 *** Cut start [22:28:08]33 *** Partial cut [22:28:08]36 34 33 *** CUTSNS_PIN = 1 [22:28:08]34 36 31 *** CUTSNS_PIN = 0 [22:28:08]32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 14 E2 *** Brake cut motor [22:28:09]00 00 F4 03 04 00 C6 9C 5C 66 B6 04 01 00 00 E4 51 FB 54 4F 8D 81 BF [22:28:09]CommunicateWithHost err = 0 [22:28:09]CheckOFDResponse [22:28:09]1017 (14) - 77093643461234 [22:28:09]1041 (16) - 0000000000959414 [22:28:09]1040 (4) - 57876 [22:28:09]1012 (4) - 02.06.2024 16:24 [22:28:09]1206 (1) - 0 [22:28:09]OFD Sender: Remove packet 57876 [22:28:09]ProducePacketName [22:28:09]name=ofd_packets/00057876 [22:28:09]NVStorageDeleteData [22:28:09]Read from MH i2c: *** Stop cut motor [22:28:09]01 *** Cut end [22:28:09] [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: 01 07 00 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: 01 07 00 2E 08 00 00 00 00 00 FF 0F 4B [22:28:09]process_action close_receipt done [22:28:09]requested_data is exist [22:28:09]produce_requested_data [22:28:09]requested_item fm.sn is exist - process it [22:28:09]wFMCommunicate request_size=4 [22:28:09]MH_SAM_APDU [22:28:09]CAPDU: 80 11 00 00 [22:28:09]Write to MH i2c: E2 08 00 2F 08 80 11 00 00 00 00 00 00 B1 [22:28:09]Write i2c OK [22:28:09]MH_I2C_Read... [22:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:09]Read from MH i2c: E2 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: E2 17 00 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: E2 17 00 2F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 04 [22:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:28:09]wFMCommunicate OK [22:28:09]requested_item fd.num is exist - process it [22:28:09]SAM_PROTO_GetFieldsCounters [22:28:09]wFMCommunicate request_size=4 [22:28:09]MH_SAM_APDU [22:28:09]CAPDU: 80 13 00 00 [22:28:09]Write to MH i2c: E2 08 00 30 08 80 13 00 00 00 00 00 00 B4 [22:28:09]Write i2c OK [22:28:09]MH_I2C_Read... [22:28:09]OFD Sender: No OFD packet to send [22:28:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:09]Read from MH i2c: E2 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: E2 62 00 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: E2 62 00 30 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 14 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 BF 02 00 00 5E 04 04 00 BF 02 00 00 57 04 04 00 C0 02 00 00 19 04 04 00 00 00 00 00 90 00 4F [22:28:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 14 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 BF 02 00 00 5E 04 04 00 BF 02 00 00 57 04 04 00 C0 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:10]wFMCommunicate OK [22:28:10]SAM_PROTO_GetFieldsCounters done [22:28:10]requested_item shift.num is exist - process it [22:28:10]requested_item shift.opened is exist - process it [22:28:10]req_shift_opened [22:28:10]FM_GetShiftState [22:28:10]SAM_PROTO_GetShiftState [22:28:10]wFMCommunicate request_size=4 [22:28:10]MH_SAM_APDU [22:28:10]CAPDU: 80 13 01 00 [22:28:10]Write to MH i2c: E2 08 00 31 08 80 13 01 00 00 00 00 00 B6 [22:28:10]Write i2c OK [22:28:10]MH_I2C_Read... [22:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:10]Read from MH i2c: E2 [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: E2 0E 00 [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: E2 0E 00 31 08 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 89 [22:28:10]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:28:10]wFMCommunicate OK [22:28:10]SAM_PROTO_GetShiftState done [22:28:10]FM_GetShiftState done [22:28:10]req_shift_opened done [22:28:10]requested_item shift.open_date is exist - process it [22:28:10]req_shift_open_date [22:28:10]req_shift_open_date done [22:28:10]produce_requested_data done [22:28:10]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57876,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:28:10]process_action_free close_receipt [22:28:10]json_value_free [22:28:10]json_value_free done [22:28:10]process_json_proto returns [22:28:10]Send response to host [22:28:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57876,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:28:10]free response buf [22:28:10]execute_script done [22:28:10]execute_script returns [22:28:10]free content buf [22:28:10]Sock 10.Close socket [22:28:10]Sock 10.Thread stoped [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:54]accept exits with 8 [22:28:54]New connection [22:28:54]New thread 3066592612 created [22:28:54]Thread 3066735972 joined [22:28:54]Waiting for new connection... [22:28:54] Sock 8.Parse request [22:28:54]Sock 8.Check first char [22:28:54]Sock 8.First char is OK [22:28:54]request: POST /json_proto HTTP/1.0 [22:28:54]Method: POST [22:28:54]URL: /json_proto [22:28:54]Method is POST - this is cgi request [22:28:54]url: /json_proto [22:28:54]query_string will be loaded in cgi processing [22:28:54]execute_cgi json_proto POST (null) [22:28:54]execute_cgi path=json_proto method=POST [22:28:54]POST find Content-Length [22:28:54]Host: 172.17.60.68:8080 [22:28:54]Content-Length: 678 [22:28:54]Content-Type: application/json [22:28:54] [22:28:54]POST finish read [22:28:54]Found Content-Length = 678 [22:28:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:54]execute_script... [22:28:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:54]POST & json_proto [22:28:54]process_json_proto [22:28:54]json parsed OK: [22:28:54]protocol is kg_v1.0 [22:28:54]action value=close_receipt [22:28:54]process_action close_receipt [22:28:54]cmd_close_receipt [22:28:54]MH_GetDate [22:28:54]Write to MH i2c: F0 00 00 32 08 29 [22:28:54]Write i2c OK [22:28:54]MH_I2C_Read... [22:28:54]Read from MH i2c: F0 [22:28:54]MH_I2C_Read... [22:28:54]Read from MH i2c: F0 09 00 [22:28:54]MH_I2C_Read... [22:28:54]Read from MH i2c: F0 09 00 32 08 00 27 F2 5C 66 8D A7 02 66 A9 [22:28:55]GetLastDocTimeStamp 1717367282 [22:28:55]current date 1717367335 [22:28:55]FM_GetShiftState [22:28:55]SAM_PROTO_GetShiftState [22:28:55]wFMCommunicate request_size=4 [22:28:55]MH_SAM_APDU [22:28:55]CAPDU: 80 13 01 00 [22:28:55]Write to MH i2c: E2 08 00 33 08 80 13 01 00 00 00 00 00 B8 [22:28:55]Write i2c OK [22:28:55]MH_I2C_Read... [22:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:55]Read from MH i2c: E2 [22:28:55]MH_I2C_Read... [22:28:55]Read from MH i2c: E2 0E 00 [22:28:55]MH_I2C_Read... [22:28:55]Read from MH i2c: E2 0E 00 33 08 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 8B [22:28:55]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:28:55]wFMCommunicate OK [22:28:55]SAM_PROTO_GetShiftState done [22:28:55]FM_GetShiftState done [22:28:55]opened in 1717288520 [22:28:55]opened+sec_in_day 1717374920 [22:28:55]quantity*price = 70052 [22:28:55]sum+1 = 70053 [22:28:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 704 02.06.2024 22:28 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57877 ФПД: 246869555032039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222855&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57877&fm=246869555032039&tin=02508201610067®Number=0000000000151680&sum=70000 [22:28:57]StoreToDocumentArchive [22:28:57]shift 69 fd 57877 [22:28:57]save to /storage/0069/doc_00057877 [22:28:57]save last doc name /storage/0069/doc_00057877 to /storage/kkm_last_doc_name [22:28:57]save OK [22:28:57]Clear old archive folders... [22:28:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:28:57]tlvbuf is 01AE5650 [22:28:57]SAM_PROTO_ClearQueue [22:28:57]wFMCommunicate request_size=4 [22:28:57]MH_SAM_APDU [22:28:57]CAPDU: 80 09 00 00 [22:28:57]Write to MH i2c: E2 08 00 40 08 80 09 00 00 00 00 00 00 BA [22:28:57]Write i2c OK [22:28:57]MH_I2C_Read... [22:28:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:57]Read from MH i2c: E2 [22:28:57]MH_I2C_Read... [22:28:57]Read from MH i2c: E2 03 00 [22:28:57]MH_I2C_Read... [22:28:57]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [22:28:57]RAPDU: 90 00 [22:28:57]wFMCommunicate OK [22:28:57]SAM_PROTO_ClearQueue done [22:28:57]KKMCreateOFDPacket [22:28:57]OFDProtocolAddRootSTLVToBuf [22:28:57]FM_MakeSignedData [22:28:57]FM_MakeSignedData [22:28:57]SAM_PROTO_SignData [22:28:57]wFMCommunicate request_size=4 [22:28:57]MH_SAM_APDU [22:28:57]CAPDU: 80 0D 01 02 [22:28:57]Write to MH i2c: E2 08 00 41 08 80 0D 01 02 00 00 00 00 C2 [22:28:57]Write i2c OK [22:28:57]MH_I2C_Read... [22:28:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:57]Read from MH i2c: E2 [22:28:57]MH_I2C_Read... [22:28:57]Read from MH i2c: E2 03 00 [22:28:57]MH_I2C_Read... [22:28:57]Read from MH i2c: E2 03 00 41 08 00 90 00 BD [22:28:58]RAPDU: 90 00 [22:28:58]wFMCommunicate OK [22:28:58]wFMCommunicate request_size=255 [22:28:58]MH_SAM_APDU [22:28:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 C0 02 00 00 F4 03 04 00 27 F2 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 15 E2 00 00 35 04 06 00 E0 [22:28:58]Write to MH i2c: E2 02 01 42 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 C0 02 00 00 F4 03 04 00 27 F2 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 15 E2 00 00 35 04 06 00 E0 00 00 3D [22:28:58]Write i2c OK [22:28:58]MH_I2C_Read... [22:28:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:59]Read from MH i2c: E2 [22:28:59]MH_I2C_Read... [22:28:59]Read from MH i2c: E2 03 00 [22:28:59]MH_I2C_Read... [22:28:59]Read from MH i2c: E2 03 00 42 08 00 90 00 BE [22:28:59]RAPDU: 90 00 [22:28:59]wFMCommunicate OK [22:28:59]wFMCommunicate request_size=10 [22:28:59]MH_SAM_APDU [22:28:59]CAPDU: 80 0D 02 02 05 86 CC 22 2F E7 [22:28:59]Write to MH i2c: E2 0D 00 43 08 80 0D 02 02 05 00 86 CC 22 2F E7 00 00 59 [22:28:59]Write i2c OK [22:28:59]MH_I2C_Read... [22:28:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:59]Read from MH i2c: E2 [22:28:59]MH_I2C_Read... [22:28:59]Read from MH i2c: E2 03 00 [22:28:59]MH_I2C_Read... [22:28:59]Read from MH i2c: E2 03 00 43 08 00 90 00 BF [22:28:59]RAPDU: 90 00 [22:28:59]wFMCommunicate OK [22:28:59]wFMCommunicate request_size=4 [22:28:59]MH_SAM_APDU [22:28:59]CAPDU: 80 0D 03 02 [22:28:59]Write to MH i2c: E2 08 00 44 08 80 0D 03 02 00 00 00 00 C7 [22:28:59]Write i2c OK [22:28:59]MH_I2C_Read... [22:28:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:59]Read from MH i2c: E2 [22:28:59]MH_I2C_Read... [22:28:59]Read from MH i2c: E2 0B 00 [22:28:59]MH_I2C_Read... [22:28:59]Read from MH i2c: E2 0B 00 44 08 00 6B 41 33 58 82 AF 81 F0 90 00 A1 [22:28:59]RAPDU: 6B 41 33 58 82 AF 81 F0 90 00 [22:28:59]wFMCommunicate OK [22:28:59]SAM_PROTO_SignData done [22:28:59]FM_MakeSignedData done [22:28:59]CreateOFDProtocolMessage [22:28:59]wFMCommunicate request_size=4 [22:28:59]MH_SAM_APDU [22:28:59]CAPDU: 80 11 00 00 [22:28:59]Write to MH i2c: E2 08 00 45 08 80 11 00 00 00 00 00 00 C7 [22:28:59]Write i2c OK [22:28:59]MH_I2C_Read... [22:28:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:59]Read from MH i2c: E2 [22:28:59]MH_I2C_Read... [22:28:59]Read from MH i2c: E2 17 00 [22:28:59]MH_I2C_Read... [22:28:59]Read from MH i2c: E2 17 00 45 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 1A [22:28:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:28:59]wFMCommunicate OK [22:28:59]CreateOFDProtocolMessage done [22:28:59]OFDSenderStorePacket 57877 [22:28:59]StoreOFDPacket docnum=57877 [22:28:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 5B 33 07 01 FF 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 C0 02 00 00 F4 03 04 00 27 F2 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 15 E2 00 00 35 04 06 00 E0 86 CC 22 2F E7 6B 41 33 58 82 AF 81 F0 [22:28:59]CheckFolder [22:28:59]dirname=/storage/ofd_packets [22:28:59]CheckFolder done [22:28:59]ProducePacketName [22:28:59]name=ofd_packets/00057877 [22:28:59]NVStorageSaveData ofd_packets/00057877 [22:28:59]File name is /storage/ofd_packets/00057877 [22:28:59]Write 301 bytes [22:28:59]NVStorageSaveData done [22:28:59]OFDSenderStorePacket done [22:28:59]KKMCreateOFDPacket done [22:28:59]NVStorageSaveData kkm_last_timestamp [22:28:59]File name is /storage/kkm_last_timestamp [22:28:59]Write 4 bytes [22:28:59]NVStorageSaveData done [22:28:59]ExternCall_PrintAddStr [22:28:59]wPrintStart [22:28:59]Write to MH i2c: 01 00 00 46 08 4E [22:28:59]Write i2c OK [22:28:59]MH_I2C_Read... [22:28:59]Read from MH i2c: 01 [22:28:59]MH_I2C_Read... [22:28:59]Read from MH i2c: 01 07 00 [22:28:59]MH_I2C_Read... [22:28:59]Read from MH i2c: 01 07 00 46 08 00 00 00 00 OFD Sender: Processing packet 57877 [packets to send 50, broken 49] [22:28:59]00 ProducePacketName [22:28:59]FF name=ofd_packets/00057877 [22:28:59]0F 63 [22:28:59]RasterBufferAndPrint [22:28:59]line Счет N : (1)543220 [22:28:59]line ИНН: 02508201610067 [22:28:59]OFD Sender: To server: pG, [22:28:59]line Контрольно-Кассовый Чек [22:28:59]CommunicateWithHost lk.salyk.kg:30040 [22:28:59]line ПРОДАЖА [22:28:59]ConnectInit lk.salyk.kg [22:28:59]line ТРК (МРК, ГНК) : 42 [22:28:59]line Товар: 2710124130 [22:28:59]line Аи-92-К-5 [22:28:59]line 10.550 * 66.40 [22:28:59]line = 700.52 [22:28:59]line НДС 12% НСП 1% [22:28:59]line > о реализуемом товаре [22:28:59]line ОКРУГЛЕНИЕ: -0.52 [22:28:59]line ИТОГО: 700.00 [22:28:59]line Внесено: 700.00 [22:28:59]line СДАЧА: 0.00 [22:28:59]line НСП 1% : 6.20 [22:28:59]line НДС 12% : 74.39 [22:28:59]line Наличными: 700.00 [22:28:59]line Безнал.: 0.00 [22:28:59]line Место: АЗС № 117 "Партнер Нефть" [22:28:59]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:28:59]line СНО: Общий режим [22:28:59]line Чек 704 02.06.2024 22:28 [22:28:59]line Смена: 69 ФФД: 1.0 [22:28:59]line ЗНМ: 0300000048 [22:28:59]line РНМ: 0000000000151680 [22:28:59]line Версия ККМ: v1.0 [22:28:59]line ФМ: 0000000000959414 [22:28:59]line ФД: 57877 [22:28:59]line ФПД: 246869555032039 [22:28:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222855&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57877&fm=246869555032039&tin=02508201610067®Number=0000000000151680&sum=70000 [22:28:59]written 0, free lines is 4095 [22:28:59]Connected sock=10 [22:28:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 5B 33 07 01 FF 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 C0 02 00 00 F4 03 04 00 27 F2 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 Write to MH i2c: 30 30 30 30 30 01 30 00 31 00 35 31 36 38 30 11 04 71 10 08 00 79 30 30 30 30 30 30 [22:29:00]30 30 30 30 39 35 Write i2c OK [22:29:00]39 MH_I2C_Read... [22:29:00]34 31 Read from MH i2c: 34 01 10 [22:29:00]04 04 00 15 E2 00 00 MH_I2C_Read... [22:29:00]35 04 06 00 Read from MH i2c: E0 01 86 07 CC 22 2F E7 6B 41 33 00 58 [22:29:00]82 MH_I2C_Read... [22:29:00]AF 81 F0 [22:29:00]Read from MH i2c: 01 07 00 71 08 00 00 00 00 00 D5 0D 62 [22:29:00]RasterBufferAndPrint [22:29:00]line [22:29:00]line [22:29:00]line [22:29:00]line [22:29:00]line [22:29:00]written 0, free lines is 3673 [22:29:00]MH_Cut [22:29:00]Write to MH i2c: D1 01 00 78 08 01 52 [22:29:00]Write i2c OK [22:29:00]MH_I2C_Read... [22:29:00]Read from MH i2c: D1 [22:29:00]MH_I2C_Read... [22:29:00]Read from MH i2c: D1 01 00 [22:29:00]MH_I2C_Read... [22:29:00]Read from MH i2c: D1 01 00 78 08 00 51 [22:29:00]Write to MH i2c: 01 00 00 79 08 81 [22:29:00]Write i2c OK [22:29:00]MH_I2C_Read... [22:29:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 26 E8 47 00 40 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 39 35 39 34 31 34 10 04 04 00 15 E2 00 00 F4 03 04 00 FB 9C 5C 66 B6 04 01 00 00 E1 85 0C 19 BD 86 C9 1A [22:29:01]CommunicateWithHost err = 0 [22:29:01]CheckOFDResponse [22:29:01]1017 (14) - 77093643461234 [22:29:01]1041 (16) - 0000000000959414 [22:29:01]1040 (4) - 57877 [22:29:01]*** Cut start [22:29:01]1012 (4) - 02.06.2024 16:25 [22:29:01]*** Partial cut [22:29:01]1206 (1) - 0 [22:29:01]OFD Sender: Remove packet 57877 [22:29:01]ProducePacketName [22:29:01]name=ofd_packets/00057877 [22:29:01]NVStorageDeleteData [22:29:01]*** CUTSNS_PIN = 1 [22:29:01]*** CUTSNS_PIN = 0 [22:29:01]*** Brake cut motor [22:29:01]OFD Sender: No OFD packet to send [22:29:01]Read from MH i2c: 01 [22:29:01]MH_I2C_Read... [22:29:01]*** Stop cut motor [22:29:01]*** Cut end [22:29:01]Read from MH i2c: 01 07 00 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: 01 07 00 79 08 00 00 00 00 00 FF 0F 96 [22:29:01]process_action close_receipt done [22:29:01]requested_data is exist [22:29:01]produce_requested_data [22:29:01]requested_item fm.sn is exist - process it [22:29:01]wFMCommunicate request_size=4 [22:29:01]MH_SAM_APDU [22:29:01]CAPDU: 80 11 00 00 [22:29:01]Write to MH i2c: E2 08 00 7A 08 80 11 00 00 00 00 00 00 FC [22:29:02]Write i2c OK [22:29:02]MH_I2C_Read... [22:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:02]Read from MH i2c: E2 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 17 00 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 17 00 7A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 4F [22:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:29:02]wFMCommunicate OK [22:29:02]requested_item fd.num is exist - process it [22:29:02]SAM_PROTO_GetFieldsCounters [22:29:02]wFMCommunicate request_size=4 [22:29:02]MH_SAM_APDU [22:29:02]CAPDU: 80 13 00 00 [22:29:02]Write to MH i2c: E2 08 00 7B 08 80 13 00 00 00 00 00 00 FF [22:29:02]Write i2c OK [22:29:02]MH_I2C_Read... [22:29:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:02]Read from MH i2c: E2 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 62 00 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 62 00 7B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 15 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C0 02 00 00 5E 04 04 00 C0 02 00 00 57 04 04 00 C1 02 00 00 19 04 04 00 00 00 00 00 90 00 9E [22:29:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 15 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C0 02 00 00 5E 04 04 00 C0 02 00 00 57 04 04 00 C1 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:29:02]wFMCommunicate OK [22:29:02]SAM_PROTO_GetFieldsCounters done [22:29:02]requested_item shift.num is exist - process it [22:29:02]requested_item shift.opened is exist - process it [22:29:02]req_shift_opened [22:29:02]FM_GetShiftState [22:29:02]SAM_PROTO_GetShiftState [22:29:02]wFMCommunicate request_size=4 [22:29:02]MH_SAM_APDU [22:29:02]CAPDU: 80 13 01 00 [22:29:02]Write to MH i2c: E2 08 00 7C 08 80 13 01 00 00 00 00 00 01 [22:29:02]Write i2c OK [22:29:02]MH_I2C_Read... [22:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:02]Read from MH i2c: E2 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 0E 00 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 0E 00 7C 08 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 D4 [22:29:02]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:29:02]wFMCommunicate OK [22:29:02]SAM_PROTO_GetShiftState done [22:29:02]FM_GetShiftState done [22:29:02]req_shift_opened done [22:29:02]requested_item shift.open_date is exist - process it [22:29:02]req_shift_open_date [22:29:02]req_shift_open_date done [22:29:02]produce_requested_data done [22:29:02]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57877,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:29:02]process_action_free close_receipt [22:29:02]json_value_free [22:29:02]json_value_free done [22:29:02]process_json_proto returns [22:29:02]Send response to host [22:29:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57877,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:29:02]free response buf [22:29:02]execute_script done [22:29:02]execute_script returns [22:29:02]free content buf [22:29:02]Sock 8.Close socket [22:29:02]Sock 8.Thread stoped [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:14]accept exits with 9 [22:29:14]New connection [22:29:14]New thread 3066735972 created [22:29:14]Thread 3066592612 joined [22:29:14]Waiting for new connection... [22:29:14] Sock 9.Parse request [22:29:14]Sock 9.Check first char [22:29:14]Sock 9.First char is OK [22:29:14]request: POST /json_proto HTTP/1.0 [22:29:14]Method: POST [22:29:14]URL: /json_proto [22:29:14]Method is POST - this is cgi request [22:29:14]url: /json_proto [22:29:14]query_string will be loaded in cgi processing [22:29:14]execute_cgi json_proto POST (null) [22:29:14]execute_cgi path=json_proto method=POST [22:29:14]POST find Content-Length [22:29:14]Host: 172.17.60.68:8080 [22:29:14]Content-Length: 846 [22:29:14]Content-Type: application/json [22:29:14] [22:29:14]POST finish read [22:29:14]Found Content-Length = 846 [22:29:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 85.960, "sum" : 3000.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:14]execute_script... [22:29: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)543213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 85.960, "sum" : 3000.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:14]POST & json_proto [22:29:14]process_json_proto [22:29:14]json parsed OK: [22:29:14]protocol is kg_v1.0 [22:29:14]action value=close_receipt [22:29:14]process_action close_receipt [22:29:14]cmd_close_receipt [22:29:14]MH_GetDate [22:29:14]Write to MH i2c: F0 00 00 7D 08 74 [22:29:14]Write i2c OK [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: F0 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: F0 09 00 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: F0 09 00 7D 08 00 3B F2 5C 66 8D A7 02 66 08 [22:29:14]GetLastDocTimeStamp 1717367335 [22:29:14]current date 1717367355 [22:29:14]FM_GetShiftState [22:29:14]SAM_PROTO_GetShiftState [22:29:14]wFMCommunicate request_size=4 [22:29:14]MH_SAM_APDU [22:29:14]CAPDU: 80 13 01 00 [22:29:14]Write to MH i2c: E2 08 00 7E 08 80 13 01 00 00 00 00 00 03 [22:29:14]Write i2c OK [22:29:14]MH_I2C_Read... [22:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:14]Read from MH i2c: E2 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 0E 00 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 0E 00 7E 08 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 D6 [22:29:14]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:29:14]wFMCommunicate OK [22:29:14]SAM_PROTO_GetShiftState done [22:29:14]FM_GetShiftState done [22:29:14]opened in 1717288520 [22:29:14]opened+sec_in_day 1717374920 [22:29:14]quantity*price = 300000 [22:29:14]sum+1 = 300001 [22:29:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.58 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 705 02.06.2024 22:29 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000000959414 ФД: 57878 ФПД: 42817944869707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222915&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57878&fm=42817944869707&tin=02508201610067®Number=0000000000151680&sum=300000 [22:29:17]StoreToDocumentArchive [22:29:17]shift 69 fd 57878 [22:29:17]save to /storage/0069/doc_00057878 [22:29:17]save last doc name /storage/0069/doc_00057878 to /storage/kkm_last_doc_name [22:29:17]save OK [22:29:17]Clear old archive folders... [22:29:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:29:17]tlvbuf is 01AE83F0 [22:29:17]SAM_PROTO_ClearQueue [22:29:17]wFMCommunicate request_size=4 [22:29:17]MH_SAM_APDU [22:29:17]CAPDU: 80 09 00 00 [22:29:17]Write to MH i2c: E2 08 00 8B 08 80 09 00 00 00 00 00 00 05 [22:29:17]Write i2c OK [22:29:17]MH_I2C_Read... [22:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:17]Read from MH i2c: E2 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 8B 08 00 90 00 07 [22:29:17]RAPDU: 90 00 [22:29:17]wFMCommunicate OK [22:29:17]SAM_PROTO_ClearQueue done [22:29:17]KKMCreateOFDPacket [22:29:17]OFDProtocolAddRootSTLVToBuf [22:29:17]FM_MakeSignedData [22:29:17]FM_MakeSignedData [22:29:17]SAM_PROTO_SignData [22:29:17]wFMCommunicate request_size=4 [22:29:17]MH_SAM_APDU [22:29:17]CAPDU: 80 0D 01 02 [22:29:17]Write to MH i2c: E2 08 00 8C 08 80 0D 01 02 00 00 00 00 0D [22:29:17]Write i2c OK [22:29:17]MH_I2C_Read... [22:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:17]Read from MH i2c: E2 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 8C 08 00 90 00 08 [22:29:17]RAPDU: 90 00 [22:29:17]wFMCommunicate OK [22:29:17]wFMCommunicate request_size=255 [22:29:17]MH_SAM_APDU [22:29:17]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C8 4F 01 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 E0 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 02 00 00 F4 03 04 00 3B F2 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 16 E2 00 00 35 04 06 00 26 F1 [22:29:18]Write to MH i2c: E2 02 01 8D 08 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C8 4F 01 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 E0 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 02 00 00 F4 03 04 00 3B F2 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 16 E2 00 00 35 04 06 00 26 F1 00 00 43 [22:29:18]Write i2c OK [22:29:18]MH_I2C_Read... [22:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:18]Read from MH i2c: E2 [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: E2 03 00 [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: E2 03 00 8D 08 00 90 00 09 [22:29:18]RAPDU: 90 00 [22:29:18]wFMCommunicate OK [22:29:18]wFMCommunicate request_size=9 [22:29:18]MH_SAM_APDU [22:29:18]CAPDU: 80 0D 02 02 04 54 64 DB 4B [22:29:18]Write to MH i2c: E2 0C 00 8E 08 80 0D 02 02 04 00 54 64 DB 4B 00 00 F6 [22:29:18]Write i2c OK [22:29:18]MH_I2C_Read... [22:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:19]Read from MH i2c: E2 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 03 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 03 00 8E 08 00 90 00 0A [22:29:19]RAPDU: 90 00 [22:29:19]wFMCommunicate OK [22:29:19]wFMCommunicate request_size=4 [22:29:19]MH_SAM_APDU [22:29:19]CAPDU: 80 0D 03 02 [22:29:19]Write to MH i2c: E2 08 00 8F 08 80 0D 03 02 00 00 00 00 12 [22:29:19]Write i2c OK [22:29:19]MH_I2C_Read... [22:29:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:19]Read from MH i2c: E2 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 0B 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 0B 00 8F 08 00 88 07 0E 86 B2 E2 6D 44 90 00 7B [22:29:19]RAPDU: 88 07 0E 86 B2 E2 6D 44 90 00 [22:29:19]wFMCommunicate OK [22:29:19]SAM_PROTO_SignData done [22:29:19]FM_MakeSignedData done [22:29:19]CreateOFDProtocolMessage [22:29:19]wFMCommunicate request_size=4 [22:29:19]MH_SAM_APDU [22:29:19]CAPDU: 80 11 00 00 [22:29:19]Write to MH i2c: E2 08 00 90 08 80 11 00 00 00 00 00 00 12 [22:29:19]Write i2c OK [22:29:19]MH_I2C_Read... [22:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:19]Read from MH i2c: E2 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 17 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 17 00 90 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 65 [22:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:29:19]wFMCommunicate OK [22:29:19]CreateOFDProtocolMessage done [22:29:19]OFDSenderStorePacket 57878 [22:29:19]StoreOFDPacket docnum=57878 [22:29:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 CE 5B 06 01 30 6E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C8 4F 01 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 E0 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 02 00 00 F4 03 04 00 3B F2 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 16 E2 00 00 35 04 06 00 26 F1 54 64 DB 4B 88 07 0E 86 B2 E2 6D 44 [22:29:19]CheckFolder [22:29:19]dirname=/storage/ofd_packets [22:29:19]CheckFolder done [22:29:19]ProducePacketName [22:29:19]name=ofd_packets/00057878 [22:29:19]NVStorageSaveData ofd_packets/00057878 [22:29:19]File name is /storage/ofd_packets/00057878 [22:29:19]Write 300 bytes [22:29:19]NVStorageSaveData done [22:29:19]OFDSenderStorePacket done [22:29:19]KKMCreateOFDPacket done [22:29:19]NVStorageSaveData kkm_last_timestamp [22:29:19]File name is /storage/kkm_last_timestamp [22:29:19]Write 4 bytes [22:29:19]NVStorageSaveData done [22:29:19]ExternCall_PrintAddStr [22:29:19]wPrintStart [22:29:19]Write to MH i2c: 01 00 00 91 08 99 [22:29:19]Write i2c OK [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: 01 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: 01 07 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: 01 07 00 91 08 00 00 00 00 00 FF 0F AE [22:29:19]RasterBufferAndPrint [22:29:19]line Счет N : (1)543213 [22:29:19]line ИНН: 02508201610067 [22:29:19]line Контрольно-Кассовый Чек [22:29:19]line ПРОДАЖА [22:29:19]line ТРК (МРК, ГНК) : 71 [22:29:19]line Товар: 2711190000 [22:29:19]line ГАЗ-К-5 [22:29:19]line 85.960 * 34.90 [22:29:19]line = 3000.00 [22:29:19]line НДС 12% НСП 1% [22:29:19]line > о реализуемом товаре [22:29:19]line ИТОГО: 3000.00 [22:29:19]line НСП 1% : 26.55 [22:29:19]line НДС 12% : 318.58 [22:29:19]line Наличными: 0.00 [22:29:19]line Безнал.: 3000.00 [22:29:19]line Место: АЗС № 117 "Партнер Нефть" [22:29:19]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:29:19]line СНО: Общий режим [22:29:19]line Чек 705 02.06.2024 22:29 [22:29:19]line Смена: 69 ФФД: 1.0 [22:29:19]line ЗНМ: 0300000048 [22:29:19]line РНМ: 0000000000151680 [22:29:19]OFD Sender: Processing packet 57878 [packets to send 50, broken 49] [22:29:19]line Версия ККМ: v1.0 [22:29:19]ProducePacketName [22:29:19]line Платежная система: АКБ Кыргызстан [22:29:19]name=ofd_packets/00057878 [22:29:19]line ФМ: 0000000000959414 [22:29:19]OFD Sender: To server: pG, [22:29:19]line ФД: 57878 [22:29:19]CommunicateWithHost lk.salyk.kg:30040 [22:29:19]line ФПД: 42817944869707 [22:29:19]ConnectInit lk.salyk.kg [22:29:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222915&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57878&fm=42817944869707&tin=02508201610067®Number=0000000000151680&sum=300000 [22:29:19]written 0, free lines is 4095 [22:29:19]Connected sock=10 [22:29:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 CE 5B 06 01 30 6E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C8 4F 01 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 E0 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 02 00 00 F4 03 04 00 3B F2 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 16 E2 00 00 35 04 06 00 26 F1 54 64 DB 4B 88 07 0E 86 B2 E2 6D 44 [22:29:20]Write to MH i2c: 01 00 00 BB 08 C3 [22:29:20]Write i2c OK [22:29:20]MH_I2C_Read... [22:29:20]Read from MH i2c: 01 [22:29:20]MH_I2C_Read... [22:29:20]Read from MH i2c: 01 07 00 [22:29:20]MH_I2C_Read... [22:29:20]Read from MH i2c: 01 07 00 BB 08 00 00 00 00 00 E1 0E B9 [22:29:20]RasterBufferAndPrint [22:29:20]line [22:29:20]line [22:29:20]line [22:29:20]line [22:29:20]line [22:29:20]written 0, free lines is 3882 [22:29:20]MH_Cut [22:29:20]Write to MH i2c: D1 01 00 C2 08 01 9C [22:29:20]Write i2c OK [22:29:20]MH_I2C_Read... [22:29:20]Read from MH i2c: D1 [22:29:20]MH_I2C_Read... [22:29:20]Read from MH i2c: D1 01 00 [22:29:20]MH_I2C_Read... [22:29:20]Read from MH i2c: D1 01 00 C2 08 00 9B [22:29:20]Write to MH i2c: 01 00 00 C3 08 CB [22:29:20]Write i2c OK [22:29:20]MH_I2C_Read... [22:29:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 20 2B 47 00 4C 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 39 *** Cut start [22:29:21]35 *** Partial cut [22:29:21]39 34 31 *** CUTSNS_PIN = 1 [22:29:21]34 *** CUTSNS_PIN = 0 [22:29:21]10 04 04 00 16 E2 00 00 F4 03 04 00 0E 9D 5C 66 B6 04 01 00 00 5F E3 F9 B6 22 76 96 7C [22:29:21]CommunicateWithHost err = 0 [22:29:21]CheckOFDResponse [22:29:21]1017 (14) - 77093643461234 [22:29:21]1041 (16) - 0000000000959414 [22:29:21]1040 (4) - 57878 [22:29:21]1012 (4) - 02.06.2024 16:25 [22:29:21]1206 (1) - 0 [22:29:21]OFD Sender: Remove packet 57878 [22:29:21]ProducePacketName [22:29:21]name=ofd_packets/00057878 [22:29:21]NVStorageDeleteData [22:29:21]*** Brake cut motor [22:29:21]Read from MH i2c: 01 [22:29:21]MH_I2C_Read... [22:29:21]*** Stop cut motor [22:29:21]*** Cut end [22:29:21]Read from MH i2c: 01 07 00 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: 01 07 00 C3 08 00 00 00 00 00 FF 0F E0 [22:29:21]process_action close_receipt done [22:29:21]requested_data is exist [22:29:21]produce_requested_data [22:29:21]requested_item fm.sn is exist - process it [22:29:21]wFMCommunicate request_size=4 [22:29:21]MH_SAM_APDU [22:29:21]CAPDU: 80 11 00 00 [22:29:21]Write to MH i2c: E2 08 00 C4 08 80 11 00 00 00 00 00 00 46 [22:29:21]Write i2c OK [22:29:21]MH_I2C_Read... [22:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:21]Read from MH i2c: OFD Sender: No OFD packet to send [22:29:21]E2 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: E2 17 00 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: E2 17 00 C4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 99 [22:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:29:21]wFMCommunicate OK [22:29:21]requested_item fd.num is exist - process it [22:29:21]SAM_PROTO_GetFieldsCounters [22:29:21]wFMCommunicate request_size=4 [22:29:21]MH_SAM_APDU [22:29:21]CAPDU: 80 13 00 00 [22:29:21]Write to MH i2c: E2 08 00 C5 08 80 13 00 00 00 00 00 00 49 [22:29:21]Write i2c OK [22:29:21]MH_I2C_Read... [22:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:22]Read from MH i2c: E2 [22:29:22]MH_I2C_Read... [22:29:22]Read from MH i2c: E2 62 00 [22:29:22]MH_I2C_Read... [22:29:22]Read from MH i2c: E2 62 00 C5 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 16 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C1 02 00 00 5E 04 04 00 C1 02 00 00 57 04 04 00 C2 02 00 00 19 04 04 00 00 00 00 00 90 00 EC [22:29:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 16 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C1 02 00 00 5E 04 04 00 C1 02 00 00 57 04 04 00 C2 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:29:22]wFMCommunicate OK [22:29:22]SAM_PROTO_GetFieldsCounters done [22:29:22]requested_item shift.num is exist - process it [22:29:22]requested_item shift.opened is exist - process it [22:29:22]req_shift_opened [22:29:22]FM_GetShiftState [22:29:22]SAM_PROTO_GetShiftState [22:29:22]wFMCommunicate request_size=4 [22:29:22]MH_SAM_APDU [22:29:22]CAPDU: 80 13 01 00 [22:29:22]Write to MH i2c: E2 08 00 C6 08 80 13 01 00 00 00 00 00 4B [22:29:22]Write i2c OK [22:29:22]MH_I2C_Read... [22:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:22]Read from MH i2c: E2 [22:29:22]MH_I2C_Read... [22:29:22]Read from MH i2c: E2 0E 00 [22:29:22]MH_I2C_Read... [22:29:22]Read from MH i2c: E2 0E 00 C6 08 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 1E [22:29:22]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:29:22]wFMCommunicate OK [22:29:22]SAM_PROTO_GetShiftState done [22:29:22]FM_GetShiftState done [22:29:22]req_shift_opened done [22:29:22]requested_item shift.open_date is exist - process it [22:29:22]req_shift_open_date [22:29:22]req_shift_open_date done [22:29:22]produce_requested_data done [22:29:22]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57878,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:29:22]process_action_free close_receipt [22:29:22]json_value_free [22:29:22]json_value_free done [22:29:22]process_json_proto returns [22:29:22]Send response to host [22:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57878,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:29:22]free response buf [22:29:22]execute_script done [22:29:22]execute_script returns [22:29:22]free content buf [22:29:22]Sock 9.Close socket [22:29:22]Sock 9.Thread stoped [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:43]accept exits with 8 [22:32:43]New connection [22:32:43]New thread 3066592612 created [22:32:43]Thread 3066735972 joined [22:32:43]Waiting for new connection... [22:32:43] Sock 8.Parse request [22:32:43]Sock 8.Check first char [22:32:43]Sock 8.First char is OK [22:32:43]request: POST /json_proto HTTP/1.0 [22:32:43]Method: POST [22:32:43]URL: /json_proto [22:32:43]Method is POST - this is cgi request [22:32:43]url: /json_proto [22:32:43]query_string will be loaded in cgi processing [22:32:43]execute_cgi json_proto POST (null) [22:32:43]execute_cgi path=json_proto method=POST [22:32:43]POST find Content-Length [22:32:43]Host: 172.17.60.68:8080 [22:32:43]Content-Length: 677 [22:32:43]Content-Type: application/json [22:32:43] [22:32:43]POST finish read [22:32:43]Found Content-Length = 677 [22:32:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543221", "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" : 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" ] } } [22:32:43]execute_script... [22:32:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543221", "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" : 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" ] } } [22:32:43]POST & json_proto [22:32:43]process_json_proto [22:32:43]json parsed OK: [22:32:43]protocol is kg_v1.0 [22:32:43]action value=close_receipt [22:32:43]process_action close_receipt [22:32:43]cmd_close_receipt [22:32:43]MH_GetDate [22:32:43]Write to MH i2c: F0 00 00 C7 08 BE [22:32:43]Write i2c OK [22:32:43]MH_I2C_Read... [22:32:43]Read from MH i2c: F0 [22:32:43]MH_I2C_Read... [22:32:43]Read from MH i2c: F0 09 00 [22:32:43]MH_I2C_Read... [22:32:43]Read from MH i2c: F0 09 00 C7 08 00 0C F3 5C 66 8D A7 02 66 24 [22:32:43]GetLastDocTimeStamp 1717367355 [22:32:43]current date 1717367564 [22:32:43]FM_GetShiftState [22:32:43]SAM_PROTO_GetShiftState [22:32:43]wFMCommunicate request_size=4 [22:32:43]MH_SAM_APDU [22:32:43]CAPDU: 80 13 01 00 [22:32:43]Write to MH i2c: E2 08 00 C8 08 80 13 01 00 00 00 00 00 4D [22:32:43]Write i2c OK [22:32:43]MH_I2C_Read... [22:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:43]Read from MH i2c: E2 [22:32:43]MH_I2C_Read... [22:32:43]Read from MH i2c: E2 0E 00 [22:32:43]MH_I2C_Read... [22:32:43]Read from MH i2c: E2 0E 00 C8 08 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 20 [22:32:43]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:32:43]wFMCommunicate OK [22:32:43]SAM_PROTO_GetShiftState done [22:32:43]FM_GetShiftState done [22:32:43]opened in 1717288520 [22:32:43]opened+sec_in_day 1717374920 [22:32:43]quantity*price = 50065 [22:32:43]sum+1 = 50067 [22:32:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 706 02.06.2024 22:32 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57879 ФПД: 67157525396539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223244&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57879&fm=67157525396539&tin=02508201610067®Number=0000000000151680&sum=50000 [22:32:44]StoreToDocumentArchive [22:32:44]shift 69 fd 57879 [22:32:44]save to /storage/0069/doc_00057879 [22:32:44]save last doc name /storage/0069/doc_00057879 to /storage/kkm_last_doc_name [22:32:44]save OK [22:32:44]Clear old archive folders... [22:32:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:32:44]tlvbuf is 01BBABE0 [22:32:44]SAM_PROTO_ClearQueue [22:32:44]wFMCommunicate request_size=4 [22:32:44]MH_SAM_APDU [22:32:44]CAPDU: 80 09 00 00 [22:32:44]Write to MH i2c: E2 08 00 D5 08 80 09 00 00 00 00 00 00 4F [22:32:44]Write i2c OK [22:32:44]MH_I2C_Read... [22:32:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:44]Read from MH i2c: E2 [22:32:44]MH_I2C_Read... [22:32:44]Read from MH i2c: E2 03 00 [22:32:44]MH_I2C_Read... [22:32:44]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [22:32:44]RAPDU: 90 00 [22:32:44]wFMCommunicate OK [22:32:44]SAM_PROTO_ClearQueue done [22:32:44]KKMCreateOFDPacket [22:32:44]OFDProtocolAddRootSTLVToBuf [22:32:44]FM_MakeSignedData [22:32:44]FM_MakeSignedData [22:32:44]SAM_PROTO_SignData [22:32:44]wFMCommunicate request_size=4 [22:32:44]MH_SAM_APDU [22:32:44]CAPDU: 80 0D 01 02 [22:32:44]Write to MH i2c: E2 08 00 D6 08 80 0D 01 02 00 00 00 00 57 [22:32:44]Write i2c OK [22:32:44]MH_I2C_Read... [22:32:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:44]Read from MH i2c: E2 [22:32:44]MH_I2C_Read... [22:32:44]Read from MH i2c: E2 03 00 [22:32:44]MH_I2C_Read... [22:32:44]Read from MH i2c: E2 03 00 D6 08 00 90 00 52 [22:32:44]RAPDU: 90 00 [22:32:44]wFMCommunicate OK [22:32:44]wFMCommunicate request_size=255 [22:32:44]MH_SAM_APDU [22:32:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C2 02 00 00 F4 03 04 00 0C F3 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 17 E2 00 00 35 04 06 00 3D [22:32:44]Write to MH i2c: E2 02 01 D7 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 C2 02 00 00 F4 03 04 00 0C F3 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 17 E2 00 00 35 04 06 00 3D 00 00 07 [22:32:44]Write i2c OK [22:32:44]MH_I2C_Read... [22:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:45]Read from MH i2c: E2 [22:32:45]MH_I2C_Read... [22:32:45]Read from MH i2c: E2 03 00 [22:32:45]MH_I2C_Read... [22:32:45]Read from MH i2c: E2 03 00 D7 08 00 90 00 53 [22:32:45]RAPDU: 90 00 [22:32:45]wFMCommunicate OK [22:32:45]wFMCommunicate request_size=10 [22:32:45]MH_SAM_APDU [22:32:45]CAPDU: 80 0D 02 02 05 14 54 71 FC 3B [22:32:45]Write to MH i2c: E2 0D 00 D8 08 80 0D 02 02 05 00 14 54 71 FC 3B 00 00 74 [22:32:45]Write i2c OK [22:32:45]MH_I2C_Read... [22:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:45]Read from MH i2c: E2 [22:32:45]MH_I2C_Read... [22:32:45]Read from MH i2c: E2 03 00 [22:32:45]MH_I2C_Read... [22:32:45]Read from MH i2c: E2 03 00 D8 08 00 90 00 54 [22:32:45]RAPDU: 90 00 [22:32:45]wFMCommunicate OK [22:32:45]wFMCommunicate request_size=4 [22:32:45]MH_SAM_APDU [22:32:45]CAPDU: 80 0D 03 02 [22:32:45]Write to MH i2c: E2 08 00 D9 08 80 0D 03 02 00 00 00 00 5C [22:32:45]Write i2c OK [22:32:45]MH_I2C_Read... [22:32:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:45]Read from MH i2c: E2 [22:32:45]MH_I2C_Read... [22:32:45]Read from MH i2c: E2 0B 00 [22:32:45]MH_I2C_Read... [22:32:45]Read from MH i2c: E2 0B 00 D9 08 00 74 EB C9 D3 3B 31 E0 E5 90 00 89 [22:32:45]RAPDU: 74 EB C9 D3 3B 31 E0 E5 90 00 [22:32:45]wFMCommunicate OK [22:32:45]SAM_PROTO_SignData done [22:32:45]FM_MakeSignedData done [22:32:45]CreateOFDProtocolMessage [22:32:45]wFMCommunicate request_size=4 [22:32:45]MH_SAM_APDU [22:32:45]CAPDU: 80 11 00 00 [22:32:45]Write to MH i2c: E2 08 00 DA 08 80 11 00 00 00 00 00 00 5C [22:32:45]Write i2c OK [22:32:45]MH_I2C_Read... [22:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:45]Read from MH i2c: E2 [22:32:45]MH_I2C_Read... [22:32:45]Read from MH i2c: E2 17 00 [22:32:45]MH_I2C_Read... [22:32:45]Read from MH i2c: E2 17 00 DA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 AF [22:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:32:45]wFMCommunicate OK [22:32:45]CreateOFDProtocolMessage done [22:32:45]OFDSenderStorePacket 57879 [22:32:45]StoreOFDPacket docnum=57879 [22:32:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 1B E6 07 01 EC BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C2 02 00 00 F4 03 04 00 0C F3 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 17 E2 00 00 35 04 06 00 3D 14 54 71 FC 3B 74 EB C9 D3 3B 31 E0 E5 [22:32:45]CheckFolder [22:32:45]dirname=/storage/ofd_packets [22:32:45]CheckFolder done [22:32:45]ProducePacketName [22:32:45]name=ofd_packets/00057879 [22:32:45]NVStorageSaveData ofd_packets/00057879 [22:32:45]File name is /storage/ofd_packets/00057879 [22:32:45]Write 301 bytes [22:32:45]NVStorageSaveData done [22:32:45]OFDSenderStorePacket done [22:32:45]KKMCreateOFDPacket done [22:32:45]NVStorageSaveData kkm_last_timestamp [22:32:45]File name is /storage/kkm_last_timestamp [22:32:45]Write 4 bytes [22:32:45]NVStorageSaveData done [22:32:45]ExternCall_PrintAddStr [22:32:45]wPrintStart [22:32:45]Write to MH i2c: 01 00 00 DB 08 E3 [22:32:45]Write i2c OK [22:32:45]MH_I2C_Read... [22:32:45]Read from MH i2c: 01 [22:32:45]MH_I2C_Read... [22:32:45]Read from MH i2c: 01 07 00 [22:32:45]MH_I2C_Read... [22:32:45]Read from MH i2c: 01 07 00 DB 08 00 00 00 00 00 FF 0F F8 [22:32:45]RasterBufferAndPrint [22:32:45]line Счет N : (1)543221 [22:32:45]line ИНН: 02508201610067 [22:32:45]line Контрольно-Кассовый Чек [22:32:45]line ПРОДАЖА [22:32:45]line ТРК (МРК, ГНК) : 22 [22:32:45]line Товар: 2710124130 [22:32:45]line Аи-92-К-5 [22:32:45]line 7.540 * 66.40 [22:32:45]line = 500.66 [22:32:45]line НДС 12% НСП 1% [22:32:45]line > о реализуемом товаре [22:32:45]line ОКРУГЛЕНИЕ: -0.66 [22:32:45]line ИТОГО: 500.00 [22:32:45]line Внесено: 500.00 [22:32:45]line СДАЧА: 0.00 [22:32:45]line НСП 1% : 4.43 [22:32:45]line НДС 12% : 53.17 [22:32:45]line Наличными: 500.00 [22:32:45]line Безнал.: 0.00 [22:32:45]line Место: АЗС № 117 "Партнер Нефть" [22:32:45]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:32:45]line СНО: Общий режим [22:32:45]line Чек 706 02.06.2024 22:32 [22:32:45]line Смена: 69 ФФД: 1.0 [22:32:45]line ЗНМ: 0300000048 [22:32:45]line РНМ: 0000000000151680 [22:32:45]line Версия ККМ: v1.0 [22:32:45]line ФМ: 0000000000959414 [22:32:45]line ФД: 57879 [22:32:45]line ФПД: 67157525396539 [22:32:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223244&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57879&fm=67157525396539&tin=02508201610067®Number=0000000000151680&sum=50000 [22:32:45]OFD Sender: Processing packet 57879 [packets to send 50, broken 49] [22:32:45]ProducePacketName [22:32:45]name=ofd_packets/00057879 [22:32:45]OFD Sender: To server: pG, [22:32:45]CommunicateWithHost lk.salyk.kg:30040 [22:32:45]ConnectInit lk.salyk.kg [22:32:45]written 0, free lines is 4095 [22:32:46]Write to MH i2c: 01 00 00 06 09 0F [22:32:46]Write i2c OK [22:32:46]MH_I2C_Read... [22:32:46]Read from MH i2c: 01 [22:32:46]MH_I2C_Read... [22:32:46]Read from MH i2c: 01 07 00 [22:32:46]MH_I2C_Read... [22:32:46]Read from MH i2c: 01 07 00 06 09 00 00 00 00 00 A1 0C C3 [22:32:46]RasterBufferAndPrint [22:32:46]line [22:32:46]line [22:32:46]line [22:32:46]line [22:32:46]line [22:32:46]written 0, free lines is 3235 [22:32:46]MH_Cut [22:32:46]Write to MH i2c: D1 01 00 0D 09 01 E8 [22:32:46]Write i2c OK [22:32:46]MH_I2C_Read... [22:32:46]Read from MH i2c: D1 [22:32:46]MH_I2C_Read... [22:32:46]Read from MH i2c: D1 01 00 [22:32:46]MH_I2C_Read... [22:32:46]Read from MH i2c: D1 01 00 0D 09 00 E7 [22:32:46]Write to MH i2c: 01 00 00 0E 09 17 [22:32:46]Write i2c OK [22:32:46]MH_I2C_Read... [22:32:47]*** Cut start [22:32:47]*** Partial cut [22:32:47]*** CUTSNS_PIN = 1 [22:32:47]*** CUTSNS_PIN = 0 [22:32:47]*** Brake cut motor [22:32:47]Read from MH i2c: 01 [22:32:47]MH_I2C_Read... [22:32:47]*** Stop cut motor [22:32:47]*** Cut end [22:32:47]Read from MH i2c: 01 07 00 [22:32:47]MH_I2C_Read... [22:32:47]Read from MH i2c: 01 07 00 0E 09 00 00 00 00 00 FF 0F 2C [22:32:47]process_action close_receipt done [22:32:47]requested_data is exist [22:32:47]produce_requested_data [22:32:47]requested_item fm.sn is exist - process it [22:32:47]wFMCommunicate request_size=4 [22:32:47]MH_SAM_APDU [22:32:47]CAPDU: 80 11 00 00 [22:32:47]Write to MH i2c: E2 08 00 0F 09 80 11 00 00 00 00 00 00 92 [22:32:47]Write i2c OK [22:32:47]MH_I2C_Read... [22:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:47]Read from MH i2c: E2 [22:32:47]MH_I2C_Read... [22:32:47]Read from MH i2c: E2 17 00 [22:32:47]MH_I2C_Read... [22:32:47]Read from MH i2c: E2 17 00 0F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 E5 [22:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:32:47]wFMCommunicate OK [22:32:47]requested_item fd.num is exist - process it [22:32:47]SAM_PROTO_GetFieldsCounters [22:32:47]wFMCommunicate request_size=4 [22:32:47]MH_SAM_APDU [22:32:47]CAPDU: 80 13 00 00 [22:32:47]Write to MH i2c: E2 08 00 10 09 80 13 00 00 00 00 00 00 95 [22:32:47]Write i2c OK [22:32:47]MH_I2C_Read... [22:32:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:47]Read from MH i2c: E2 [22:32:47]MH_I2C_Read... [22:32:47]Read from MH i2c: E2 62 00 [22:32:47]MH_I2C_Read... [22:32:47]Read from MH i2c: E2 62 00 10 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 17 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C2 02 00 00 5E 04 04 00 C2 02 00 00 57 04 04 00 C3 02 00 00 19 04 04 00 00 00 00 00 90 00 3C [22:32:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 17 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C2 02 00 00 5E 04 04 00 C2 02 00 00 57 04 04 00 C3 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:32:47]wFMCommunicate OK [22:32:47]SAM_PROTO_GetFieldsCounters done [22:32:47]requested_item shift.num is exist - process it [22:32:47]requested_item shift.opened is exist - process it [22:32:47]req_shift_opened [22:32:47]FM_GetShiftState [22:32:47]SAM_PROTO_GetShiftState [22:32:47]wFMCommunicate request_size=4 [22:32:47]MH_SAM_APDU [22:32:47]CAPDU: 80 13 01 00 [22:32:47]Write to MH i2c: E2 08 00 11 09 80 13 01 00 00 00 00 00 97 [22:32:47]Write i2c OK [22:32:47]MH_I2C_Read... [22:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:47]Read from MH i2c: E2 [22:32:47]MH_I2C_Read... [22:32:47]Read from MH i2c: E2 0E 00 [22:32:47]MH_I2C_Read... [22:32:47]Read from MH i2c: E2 0E 00 11 09 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 6A [22:32:47]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:32:47]wFMCommunicate OK [22:32:47]SAM_PROTO_GetShiftState done [22:32:47]FM_GetShiftState done [22:32:47]req_shift_opened done [22:32:47]requested_item shift.open_date is exist - process it [22:32:47]req_shift_open_date [22:32:47]req_shift_open_date done [22:32:47]produce_requested_data done [22:32:47]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57879,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:32:47]process_action_free close_receipt [22:32:47]json_value_free [22:32:47]json_value_free done [22:32:47]process_json_proto returns [22:32:47]Send response to host [22:32:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57879,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:32:47]free response buf [22:32:47]execute_script done [22:32:47]execute_script returns [22:32:47]free content buf [22:32:47]Sock 8.Close socket [22:32:47]Sock 8.Thread stoped [22:34:56]ConnectInit Can't connect to host [22:34:56]CommunicateWithHost connect error [22:34:56]CommunicateWithHost err = -1 [22:34:56]OFD Sender: Server communicate error [22:35:01]OFD Sender: Processing packet 57879 [packets to send 50, broken 49] [22:35:01]ProducePacketName [22:35:01]name=ofd_packets/00057879 [22:35:01]OFD Sender: To server: pG, [22:35:01]CommunicateWithHost lk.salyk.kg:30040 [22:35:01]ConnectInit lk.salyk.kg [22:35:01]Connected sock=8 [22:35:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 1B E6 07 01 EC BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C2 02 00 00 F4 03 04 00 0C F3 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 17 E2 00 00 35 04 06 00 3D 14 54 71 FC 3B 74 EB C9 D3 3B 31 E0 E5 [22:35:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 9D 99 47 00 01 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 17 E2 00 00 F4 03 04 00 63 9E 5C 66 B6 04 01 00 00 C1 F1 62 B0 C6 CC 4A ED [22:35:01]CommunicateWithHost err = 0 [22:35:01]CheckOFDResponse [22:35:01]1017 (14) - 77093643461234 [22:35:01]1041 (16) - 0000000000959414 [22:35:01]1040 (4) - 57879 [22:35:01]1012 (4) - 02.06.2024 16:31 [22:35:01]1206 (1) - 0 [22:35:01]OFD Sender: Remove packet 57879 [22:35:01]ProducePacketName [22:35:01]name=ofd_packets/00057879 [22:35:01]NVStorageDeleteData [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:05]accept exits with 9 [22:41:05]New connection [22:41:05]New thread 3066735972 created [22:41:05]Thread 3066592612 joined [22:41:05]Waiting for new connection... [22:41:05] Sock 9.Parse request [22:41:05]Sock 9.Check first char [22:41:05]Sock 9.First char is OK [22:41:05]request: POST /json_proto HTTP/1.0 [22:41:05]Method: POST [22:41:05]URL: /json_proto [22:41:05]Method is POST - this is cgi request [22:41:05]url: /json_proto [22:41:05]query_string will be loaded in cgi processing [22:41:05]execute_cgi json_proto POST (null) [22:41:05]execute_cgi path=json_proto method=POST [22:41:05]POST find Content-Length [22:41:05]Host: 172.17.60.68:8080 [22:41:05]Content-Length: 794 [22:41:05]Content-Type: application/json [22:41:05] [22:41:05]POST finish read [22:41:05]Found Content-Length = 794 [22:41:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 11.870, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:05]execute_script... [22:41:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 11.870, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:05]POST & json_proto [22:41:05]process_json_proto [22:41:05]json parsed OK: [22:41:05]protocol is kg_v1.0 [22:41:05]action value=close_receipt [22:41:05]process_action close_receipt [22:41:05]cmd_close_receipt [22:41:05]MH_GetDate [22:41:05]Write to MH i2c: F0 00 00 12 09 0A [22:41:05]Write i2c OK [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: F0 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: F0 09 00 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: F0 09 00 12 09 00 02 F5 5C 66 8D A7 02 66 68 [22:41:05]GetLastDocTimeStamp 1717367564 [22:41:05]current date 1717368066 [22:41:05]FM_GetShiftState [22:41:05]SAM_PROTO_GetShiftState [22:41:05]wFMCommunicate request_size=4 [22:41:05]MH_SAM_APDU [22:41:05]CAPDU: 80 13 01 00 [22:41:05]Write to MH i2c: E2 08 00 13 09 80 13 01 00 00 00 00 00 99 [22:41:05]Write i2c OK [22:41:05]MH_I2C_Read... [22:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:05]Read from MH i2c: E2 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: E2 0E 00 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: E2 0E 00 13 09 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 6C [22:41:05]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:41:05]wFMCommunicate OK [22:41:05]SAM_PROTO_GetShiftState done [22:41:05]FM_GetShiftState done [22:41:05]opened in 1717288520 [22:41:05]opened+sec_in_day 1717374920 [22:41:05]quantity*price = 80003 [22:41:05]sum+1 = 80005 [22:41:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.04 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.04 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 707 02.06.2024 22:41 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57880 ФПД: 230541034659513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224106&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57880&fm=230541034659513&tin=02508201610067®Number=0000000000151680&sum=80004 [22:41:07]StoreToDocumentArchive [22:41:07]shift 69 fd 57880 [22:41:07]save to /storage/0069/doc_00057880 [22:41:07]save last doc name /storage/0069/doc_00057880 to /storage/kkm_last_doc_name [22:41:07]save OK [22:41:07]Clear old archive folders... [22:41:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:41:07]tlvbuf is 019AB850 [22:41:07]SAM_PROTO_ClearQueue [22:41:07]wFMCommunicate request_size=4 [22:41:07]MH_SAM_APDU [22:41:07]CAPDU: 80 09 00 00 [22:41:07]Write to MH i2c: E2 08 00 20 09 80 09 00 00 00 00 00 00 9B [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 03 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [22:41:07]RAPDU: 90 00 [22:41:07]wFMCommunicate OK [22:41:07]SAM_PROTO_ClearQueue done [22:41:07]KKMCreateOFDPacket [22:41:07]OFDProtocolAddRootSTLVToBuf [22:41:07]FM_MakeSignedData [22:41:07]FM_MakeSignedData [22:41:07]SAM_PROTO_SignData [22:41:07]wFMCommunicate request_size=4 [22:41:07]MH_SAM_APDU [22:41:07]CAPDU: 80 0D 01 02 [22:41:07]Write to MH i2c: E2 08 00 21 09 80 0D 01 02 00 00 00 00 A3 [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 03 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 03 00 21 09 00 90 00 9E [22:41:07]RAPDU: 90 00 [22:41:07]wFMCommunicate OK [22:41:07]wFMCommunicate request_size=255 [22:41:07]MH_SAM_APDU [22:41:07]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 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 02 00 00 F4 03 04 00 02 F5 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 18 E2 00 00 35 04 06 00 [22:41:07]Write to MH i2c: E2 02 01 22 09 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 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 02 00 00 F4 03 04 00 02 F5 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 18 E2 00 00 35 04 06 00 00 00 4B [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 03 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 03 00 22 09 00 90 00 9F [22:41:07]RAPDU: 90 00 [22:41:07]wFMCommunicate OK [22:41:07]wFMCommunicate request_size=11 [22:41:07]MH_SAM_APDU [22:41:07]CAPDU: 80 0D 02 02 06 D1 AD 04 7A 1E B9 [22:41:07]Write to MH i2c: E2 0E 00 23 09 80 0D 02 02 06 00 D1 AD 04 7A 1E B9 00 00 85 [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 03 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 03 00 23 09 00 90 00 A0 [22:41:07]RAPDU: 90 00 [22:41:07]wFMCommunicate OK [22:41:07]wFMCommunicate request_size=4 [22:41:07]MH_SAM_APDU [22:41:07]CAPDU: 80 0D 03 02 [22:41:07]Write to MH i2c: E2 08 00 24 09 80 0D 03 02 00 00 00 00 A8 [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:07]OFD Sender: No OFD packet to send [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 0B 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 0B 00 24 09 00 0F 9C D0 F0 A9 6E A2 DE 90 00 AB [22:41:07]RAPDU: 0F 9C D0 F0 A9 6E A2 DE 90 00 [22:41:07]wFMCommunicate OK [22:41:07]SAM_PROTO_SignData done [22:41:07]FM_MakeSignedData done [22:41:07]CreateOFDProtocolMessage [22:41:07]wFMCommunicate request_size=4 [22:41:07]MH_SAM_APDU [22:41:07]CAPDU: 80 11 00 00 [22:41:07]Write to MH i2c: E2 08 00 25 09 80 11 00 00 00 00 00 00 A8 [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 17 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 17 00 25 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 FB [22:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:41:07]wFMCommunicate OK [22:41:07]CreateOFDProtocolMessage done [22:41:07]OFDSenderStorePacket 57880 [22:41:07]StoreOFDPacket docnum=57880 [22:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 F6 09 08 01 AE 15 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 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 02 00 00 F4 03 04 00 02 F5 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 18 E2 00 00 35 04 06 00 D1 AD 04 7A 1E B9 0F 9C D0 F0 A9 6E A2 DE [22:41:07]CheckFolder [22:41:07]dirname=/storage/ofd_packets [22:41:07]CheckFolder done [22:41:07]ProducePacketName [22:41:07]name=ofd_packets/00057880 [22:41:07]NVStorageSaveData ofd_packets/00057880 [22:41:07]File name is /storage/ofd_packets/00057880 [22:41:07]Write 302 bytes [22:41:07]NVStorageSaveData done [22:41:07]OFDSenderStorePacket done [22:41:07]KKMCreateOFDPacket done [22:41:07]NVStorageSaveData kkm_last_timestamp [22:41:07]File name is /storage/kkm_last_timestamp [22:41:07]Write 4 bytes [22:41:07]NVStorageSaveData done [22:41:07]ExternCall_PrintAddStr [22:41:07]wPrintStart [22:41:07]Write to MH i2c: 01 00 00 26 09 2F [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: 01 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: 01 07 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: 01 07 00 26 09 00 00 00 00 00 FF 0F 44 [22:41:07]RasterBufferAndPrint [22:41:07]line Счет N : (1)543222 [22:41:07]line ИНН: 02508201610067 [22:41:07]line Контрольно-Кассовый Чек [22:41:07]line ПРОДАЖА [22:41:07]line ТРК (МРК, ГНК) : 24 [22:41:07]line Товар: 2710124130 [22:41:07]line SUPER 92-К-5 [22:41:07]line 11.870 * 67.40 [22:41:07]line = 800.04 [22:41:07]line НДС 12% НСП 1% [22:41:07]line > о реализуемом товаре [22:41:07]line ИТОГО: 800.04 [22:41:07]line НСП 1% : 7.08 [22:41:07]line НДС 12% : 84.96 [22:41:07]line Наличными: 0.00 [22:41:07]line Безнал.: 800.04 [22:41:07]line Место: АЗС № 117 "Партнер Нефть" [22:41:07]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:41:07]line СНО: Общий режим [22:41:07]line Чек 707 02.06.2024 22:41 [22:41:07]line Смена: 69 ФФД: 1.0 [22:41:07]line ЗНМ: 0300000048 [22:41:07]line РНМ: 0000000000151680 [22:41:07]line Версия ККМ: v1.0 [22:41:07]line Платежная система: O! деньги [22:41:07]line ФМ: 0000000000959414 [22:41:07]line ФД: 57880 [22:41:07]line ФПД: 230541034659513 [22:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224106&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57880&fm=230541034659513&tin=02508201610067®Number=0000000000151680&sum=80004 [22:41:07]OFD Sender: Processing packet 57880 [packets to send 50, broken 49] [22:41:07]ProducePacketName [22:41:07]name=ofd_packets/00057880 [22:41:07]OFD Sender: To server: pG, [22:41:07]CommunicateWithHost lk.salyk.kg:30040 [22:41:07]ConnectInit lk.salyk.kg [22:41:07]written 0, free lines is 4095 [22:41:08]Connected sock=10 [22:41:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 F6 09 08 01 AE 15 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 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 02 00 00 F4 03 04 00 02 F5 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 18 E2 00 00 35 04 06 00 D1 AD 04 7A 1E B9 0F 9C D0 F0 A9 6E A2 DE [22:41:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 3B 14 47 00 82 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 18 E2 00 00 F4 03 04 00 D2 9F 5C 66 B6 04 01 00 00 28 99 EA E4 FF 34 C8 C8 [22:41:08]CommunicateWithHost err = 0 [22:41:08]CheckOFDResponse [22:41:08]1017 (14) - 77093643461234 [22:41:08]1041 (16) - 0000000000959414 [22:41:08]1040 (4) - 57880 [22:41:08]1012 (4) - 02.06.2024 16:37 [22:41:08]1206 (1) - 0 [22:41:08]OFD Sender: Remove packet 57880 [22:41:08]ProducePacketName [22:41:08]name=ofd_packets/00057880 [22:41:08]NVStorageDeleteData [22:41:08]Write to MH i2c: 01 00 00 50 09 59 [22:41:08]Write i2c OK [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: 01 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: 01 07 00 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: 01 07 00 50 09 00 00 00 00 00 C1 0C 2D [22:41:08]RasterBufferAndPrint [22:41:08]line [22:41:08]line [22:41:08]line [22:41:08]line [22:41:08]line [22:41:08]written 0, free lines is 3271 [22:41:08]MH_Cut [22:41:08]Write to MH i2c: D1 01 00 57 09 01 32 [22:41:08]Write i2c OK [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: D1 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: D1 01 00 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: D1 01 00 57 09 00 31 [22:41:08]Write to MH i2c: 01 00 00 58 09 61 [22:41:08]Write i2c OK [22:41:08]MH_I2C_Read... [22:41:08]OFD Sender: No OFD packet to send [22:41:09]*** Cut start [22:41:09]*** Partial cut [22:41:09]*** CUTSNS_PIN = 1 [22:41:09]*** CUTSNS_PIN = 0 [22:41:09]*** Brake cut motor [22:41:09]Read from MH i2c: 01 [22:41:09]MH_I2C_Read... [22:41:09]*** Stop cut motor [22:41:09]*** Cut end [22:41:09]Read from MH i2c: 01 07 00 [22:41:09]MH_I2C_Read... [22:41:09]Read from MH i2c: 01 07 00 58 09 00 00 00 00 00 FF 0F 76 [22:41:09]process_action close_receipt done [22:41:09]requested_data is exist [22:41:09]produce_requested_data [22:41:09]requested_item fm.sn is exist - process it [22:41:09]wFMCommunicate request_size=4 [22:41:09]MH_SAM_APDU [22:41:09]CAPDU: 80 11 00 00 [22:41:09]Write to MH i2c: E2 08 00 59 09 80 11 00 00 00 00 00 00 DC [22:41:09]Write i2c OK [22:41:09]MH_I2C_Read... [22:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:09]Read from MH i2c: E2 [22:41:09]MH_I2C_Read... [22:41:09]Read from MH i2c: E2 17 00 [22:41:09]MH_I2C_Read... [22:41:09]Read from MH i2c: E2 17 00 59 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 2F [22:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:41:09]wFMCommunicate OK [22:41:09]requested_item fd.num is exist - process it [22:41:09]SAM_PROTO_GetFieldsCounters [22:41:09]wFMCommunicate request_size=4 [22:41:09]MH_SAM_APDU [22:41:09]CAPDU: 80 13 00 00 [22:41:09]Write to MH i2c: E2 08 00 5A 09 80 13 00 00 00 00 00 00 DF [22:41:09]Write i2c OK [22:41:09]MH_I2C_Read... [22:41:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:10]Read from MH i2c: E2 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: E2 62 00 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: E2 62 00 5A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 18 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C3 02 00 00 5E 04 04 00 C3 02 00 00 57 04 04 00 C4 02 00 00 19 04 04 00 00 00 00 00 90 00 8A [22:41:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 18 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C3 02 00 00 5E 04 04 00 C3 02 00 00 57 04 04 00 C4 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:41:10]wFMCommunicate OK [22:41:10]SAM_PROTO_GetFieldsCounters done [22:41:10]requested_item shift.num is exist - process it [22:41:10]requested_item shift.opened is exist - process it [22:41:10]req_shift_opened [22:41:10]FM_GetShiftState [22:41:10]SAM_PROTO_GetShiftState [22:41:10]wFMCommunicate request_size=4 [22:41:10]MH_SAM_APDU [22:41:10]CAPDU: 80 13 01 00 [22:41:10]Write to MH i2c: E2 08 00 5B 09 80 13 01 00 00 00 00 00 E1 [22:41:10]Write i2c OK [22:41:10]MH_I2C_Read... [22:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:10]Read from MH i2c: E2 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: E2 0E 00 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: E2 0E 00 5B 09 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 B4 [22:41:10]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:41:10]wFMCommunicate OK [22:41:10]SAM_PROTO_GetShiftState done [22:41:10]FM_GetShiftState done [22:41:10]req_shift_opened done [22:41:10]requested_item shift.open_date is exist - process it [22:41:10]req_shift_open_date [22:41:10]req_shift_open_date done [22:41:10]produce_requested_data done [22:41:10]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57880,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:41:10]process_action_free close_receipt [22:41:10]json_value_free [22:41:10]json_value_free done [22:41:10]process_json_proto returns [22:41:10]Send response to host [22:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57880,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:41:10]free response buf [22:41:10]execute_script done [22:41:10]execute_script returns [22:41:10]free content buf [22:41:10]Sock 9.Close socket [22:41:10]Sock 9.Thread stoped [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:02]accept exits with 8 [22:43:02]New connection [22:43:02]New thread 3066592612 created [22:43:02]Thread 3066735972 joined [22:43:02]Waiting for new connection... [22:43:02] Sock 8.Parse request [22:43:02]Sock 8.Check first char [22:43:02]Sock 8.First char is OK [22:43:02]request: POST /json_proto HTTP/1.0 [22:43:02]Method: POST [22:43:02]URL: /json_proto [22:43:02]Method is POST - this is cgi request [22:43:02]url: /json_proto [22:43:02]query_string will be loaded in cgi processing [22:43:02]execute_cgi json_proto POST (null) [22:43:02]execute_cgi path=json_proto method=POST [22:43:02]POST find Content-Length [22:43:02]Host: 172.17.60.68:8080 [22:43:02]Content-Length: 677 [22:43:02]Content-Type: application/json [22:43:02] [22:43:02]POST finish read [22:43:02]Found Content-Length = 677 [22:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543223", "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 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:02]execute_script... [22:43:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543223", "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 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:02]POST & json_proto [22:43:02]process_json_proto [22:43:02]json parsed OK: [22:43:02]protocol is kg_v1.0 [22:43:02]action value=close_receipt [22:43:02]process_action close_receipt [22:43:02]cmd_close_receipt [22:43:02]MH_GetDate [22:43:02]Write to MH i2c: F0 00 00 5C 09 54 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: F0 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: F0 09 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: F0 09 00 5C 09 00 77 F5 5C 66 8D A7 02 66 27 [22:43:02]GetLastDocTimeStamp 1717368066 [22:43:02]current date 1717368183 [22:43:02]FM_GetShiftState [22:43:02]SAM_PROTO_GetShiftState [22:43:02]wFMCommunicate request_size=4 [22:43:02]MH_SAM_APDU [22:43:02]CAPDU: 80 13 01 00 [22:43:02]Write to MH i2c: E2 08 00 5D 09 80 13 01 00 00 00 00 00 E3 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:02]Read from MH i2c: E2 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 0E 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 0E 00 5D 09 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 B6 [22:43:02]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:43:02]wFMCommunicate OK [22:43:02]SAM_PROTO_GetShiftState done [22:43:02]FM_GetShiftState done [22:43:02]opened in 1717288520 [22:43:02]opened+sec_in_day 1717374920 [22:43:02]quantity*price = 50065 [22:43:02]sum+1 = 50067 [22:43:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 708 02.06.2024 22:43 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57881 ФПД: 37473777359612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224303&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57881&fm=37473777359612&tin=02508201610067®Number=0000000000151680&sum=50000 [22:43:03]StoreToDocumentArchive [22:43:03]shift 69 fd 57881 [22:43:03]save to /storage/0069/doc_00057881 [22:43:03]save last doc name /storage/0069/doc_00057881 to /storage/kkm_last_doc_name [22:43:03]save OK [22:43:03]Clear old archive folders... [22:43:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:43:03]tlvbuf is 019AAC60 [22:43:03]SAM_PROTO_ClearQueue [22:43:03]wFMCommunicate request_size=4 [22:43:03]MH_SAM_APDU [22:43:03]CAPDU: 80 09 00 00 [22:43:03]Write to MH i2c: E2 08 00 6A 09 80 09 00 00 00 00 00 00 E5 [22:43:03]Write i2c OK [22:43:03]MH_I2C_Read... [22:43:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:03]Read from MH i2c: E2 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: E2 03 00 [22:43:03]MH_I2C_Read... [22:43:03]OFD Sender: No OFD packet to send [22:43:03]Read from MH i2c: E2 03 00 6A 09 00 90 00 E7 [22:43:03]RAPDU: 90 00 [22:43:03]wFMCommunicate OK [22:43:03]SAM_PROTO_ClearQueue done [22:43:03]KKMCreateOFDPacket [22:43:03]OFDProtocolAddRootSTLVToBuf [22:43:03]FM_MakeSignedData [22:43:03]FM_MakeSignedData [22:43:03]SAM_PROTO_SignData [22:43:03]wFMCommunicate request_size=4 [22:43:03]MH_SAM_APDU [22:43:03]CAPDU: 80 0D 01 02 [22:43:03]Write to MH i2c: E2 08 00 6B 09 80 0D 01 02 00 00 00 00 ED [22:43:03]Write i2c OK [22:43:03]MH_I2C_Read... [22:43:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:03]Read from MH i2c: E2 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: E2 03 00 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: E2 03 00 6B 09 00 90 00 E8 [22:43:03]RAPDU: 90 00 [22:43:03]wFMCommunicate OK [22:43:03]wFMCommunicate request_size=255 [22:43:03]MH_SAM_APDU [22:43:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C4 02 00 00 F4 03 04 00 77 F5 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 19 E2 00 00 35 04 06 00 22 [22:43:03]Write to MH i2c: E2 02 01 6C 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 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 C4 02 00 00 F4 03 04 00 77 F5 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 19 E2 00 00 35 04 06 00 22 00 00 F3 [22:43:03]Write i2c OK [22:43:03]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 03 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 03 00 6C 09 00 90 00 E9 [22:43:04]RAPDU: 90 00 [22:43:04]wFMCommunicate OK [22:43:04]wFMCommunicate request_size=10 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 0D 02 02 05 15 0B 30 1A FC [22:43:04]Write to MH i2c: E2 0D 00 6D 09 80 0D 02 02 05 00 15 0B 30 1A FC 00 00 60 [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 03 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 03 00 6D 09 00 90 00 EA [22:43:04]RAPDU: 90 00 [22:43:04]wFMCommunicate OK [22:43:04]wFMCommunicate request_size=4 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 0D 03 02 [22:43:04]Write to MH i2c: E2 08 00 6E 09 80 0D 03 02 00 00 00 00 F2 [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 0B 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 0B 00 6E 09 00 A0 99 7F 26 D7 10 87 FD 90 00 3C [22:43:04]RAPDU: A0 99 7F 26 D7 10 87 FD 90 00 [22:43:04]wFMCommunicate OK [22:43:04]SAM_PROTO_SignData done [22:43:04]FM_MakeSignedData done [22:43:04]CreateOFDProtocolMessage [22:43:04]wFMCommunicate request_size=4 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 11 00 00 [22:43:04]Write to MH i2c: E2 08 00 6F 09 80 11 00 00 00 00 00 00 F2 [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 17 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 17 00 6F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 45 [22:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:43:04]wFMCommunicate OK [22:43:04]CreateOFDProtocolMessage done [22:43:04]OFDSenderStorePacket 57881 [22:43:04]StoreOFDPacket docnum=57881 [22:43:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 12 7F 07 01 E8 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 C4 02 00 00 F4 03 04 00 77 F5 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 19 E2 00 00 35 04 06 00 22 15 0B 30 1A FC A0 99 7F 26 D7 10 87 FD [22:43:04]CheckFolder [22:43:04]dirname=/storage/ofd_packets [22:43:04]CheckFolder done [22:43:04]ProducePacketName [22:43:04]name=ofd_packets/00057881 [22:43:04]NVStorageSaveData ofd_packets/00057881 [22:43:04]File name is /storage/ofd_packets/00057881 [22:43:04]Write 301 bytes [22:43:04]NVStorageSaveData done [22:43:04]OFDSenderStorePacket done [22:43:04]KKMCreateOFDPacket done [22:43:04]NVStorageSaveData kkm_last_timestamp [22:43:04]File name is /storage/kkm_last_timestamp [22:43:04]Write 4 bytes [22:43:04]NVStorageSaveData done [22:43:04]ExternCall_PrintAddStr [22:43:04]wPrintStart [22:43:04]Write to MH i2c: 01 00 00 70 09 79 [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: 01 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: 01 07 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: 01 07 00 70 09 00 00 00 00 00 FF 0F 8E [22:43:04]RasterBufferAndPrint [22:43:04]line Счет N : (1)543223 [22:43:04]line ИНН: 02508201610067 [22:43:04]line Контрольно-Кассовый Чек [22:43:04]line ПРОДАЖА [22:43:04]line ТРК (МРК, ГНК) : 12 [22:43:04]line Товар: 2710124130 [22:43:04]line Аи-92-К-5 [22:43:04]line 7.540 * 66.40 [22:43:04]line = 500.66 [22:43:04]line НДС 12% НСП 1% [22:43:04]line > о реализуемом товаре [22:43:04]line ОКРУГЛЕНИЕ: -0.66 [22:43:04]line ИТОГО: 500.00 [22:43:04]line Внесено: 500.00 [22:43:04]line СДАЧА: 0.00 [22:43:04]line НСП 1% : 4.43 [22:43:04]line НДС 12% : 53.17 [22:43:04]line Наличными: 500.00 [22:43:04]line Безнал.: 0.00 [22:43:04]line Место: АЗС № 117 "Партнер Нефть" [22:43:04]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:43:04]line СНО: Общий режим [22:43:04]line Чек 708 02.06.2024 22:43 [22:43:04]line Смена: 69 ФФД: 1.0 [22:43:04]line ЗНМ: 0300000048 [22:43:04]line РНМ: 0000000000151680 [22:43:04]line Версия ККМ: v1.0 [22:43:04]line ФМ: 0000000000959414 [22:43:04]line ФД: 57881 [22:43:04]line ФПД: 37473777359612 [22:43:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224303&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57881&fm=37473777359612&tin=02508201610067®Number=0000000000151680&sum=50000 [22:43:04]OFD Sender: Processing packet 57881 [packets to send 50, broken 49] [22:43:04]ProducePacketName [22:43:04]name=ofd_packets/00057881 [22:43:04]OFD Sender: To server: pG, [22:43:04]CommunicateWithHost lk.salyk.kg:30040 [22:43:04]ConnectInit lk.salyk.kg [22:43:04]written 0, free lines is 4095 [22:43:04]Connected sock=10 [22:43:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 12 7F 07 01 E8 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 C4 02 00 00 F4 03 04 00 77 F5 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 19 E2 00 00 35 04 06 00 22 15 0B 30 1A FC A0 99 7F 26 D7 10 87 FD [22:43:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 39 4A 47 00 28 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 19 E2 00 00 F4 03 04 00 47 A0 5C 66 B6 04 01 00 00 A5 DE 00 1E F9 6F D0 0E [22:43:04]CommunicateWithHost err = 0 [22:43:04]CheckOFDResponse [22:43:04]1017 (14) - 77093643461234 [22:43:04]1041 (16) - 0000000000959414 [22:43:04]1040 (4) - 57881 [22:43:04]1012 (4) - 02.06.2024 16:39 [22:43:04]1206 (1) - 0 [22:43:04]OFD Sender: Remove packet 57881 [22:43:04]ProducePacketName [22:43:04]name=ofd_packets/00057881 [22:43:04]NVStorageDeleteData [22:43:05]Write to MH i2c: 01 00 00 9B 09 A4 [22:43:05]Write i2c OK [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: 01 [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: 01 07 00 [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: 01 07 00 9B 09 00 00 00 00 00 AD 0C 64 [22:43:05]RasterBufferAndPrint [22:43:05]line [22:43:05]line [22:43:05]line [22:43:05]line [22:43:05]line [22:43:05]written 0, free lines is 3251 [22:43:05]MH_Cut [22:43:05]Write to MH i2c: D1 01 00 A2 09 01 7D [22:43:05]Write i2c OK [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: D1 [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: D1 01 00 [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: D1 01 00 A2 09 00 7C [22:43:05]Write to MH i2c: 01 00 00 A3 09 AC [22:43:05]Write i2c OK [22:43:05]MH_I2C_Read... [22:43:05]OFD Sender: No OFD packet to send [22:43:06]*** Cut start [22:43:06]*** Partial cut [22:43:06]*** CUTSNS_PIN = 1 [22:43:06]*** CUTSNS_PIN = 0 [22:43:06]*** Brake cut motor [22:43:06]Read from MH i2c: 01 [22:43:06]MH_I2C_Read... [22:43:06]*** Stop cut motor [22:43:06]*** Cut end [22:43:06]Read from MH i2c: 01 07 00 [22:43:06]MH_I2C_Read... [22:43:06]Read from MH i2c: 01 07 00 A3 09 00 00 00 00 00 FF 0F C1 [22:43:06]process_action close_receipt done [22:43:06]requested_data is exist [22:43:06]produce_requested_data [22:43:06]requested_item fm.sn is exist - process it [22:43:06]wFMCommunicate request_size=4 [22:43:06]MH_SAM_APDU [22:43:06]CAPDU: 80 11 00 00 [22:43:06]Write to MH i2c: E2 08 00 A4 09 80 11 00 00 00 00 00 00 27 [22:43:06]Write i2c OK [22:43:06]MH_I2C_Read... [22:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:06]Read from MH i2c: E2 [22:43:06]MH_I2C_Read... [22:43:06]Read from MH i2c: E2 17 00 [22:43:06]MH_I2C_Read... [22:43:06]Read from MH i2c: E2 17 00 A4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 7A [22:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:43:06]wFMCommunicate OK [22:43:06]requested_item fd.num is exist - process it [22:43:06]SAM_PROTO_GetFieldsCounters [22:43:06]wFMCommunicate request_size=4 [22:43:06]MH_SAM_APDU [22:43:06]CAPDU: 80 13 00 00 [22:43:06]Write to MH i2c: E2 08 00 A5 09 80 13 00 00 00 00 00 00 2A [22:43:06]Write i2c OK [22:43:06]MH_I2C_Read... [22:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:06]Read from MH i2c: E2 [22:43:06]MH_I2C_Read... [22:43:06]Read from MH i2c: E2 62 00 [22:43:06]MH_I2C_Read... [22:43:06]Read from MH i2c: E2 62 00 A5 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 19 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C4 02 00 00 5E 04 04 00 C4 02 00 00 57 04 04 00 C5 02 00 00 19 04 04 00 00 00 00 00 90 00 D9 [22:43:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 19 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C4 02 00 00 5E 04 04 00 C4 02 00 00 57 04 04 00 C5 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:43:06]wFMCommunicate OK [22:43:06]SAM_PROTO_GetFieldsCounters done [22:43:06]requested_item shift.num is exist - process it [22:43:06]requested_item shift.opened is exist - process it [22:43:06]req_shift_opened [22:43:06]FM_GetShiftState [22:43:06]SAM_PROTO_GetShiftState [22:43:06]wFMCommunicate request_size=4 [22:43:06]MH_SAM_APDU [22:43:06]CAPDU: 80 13 01 00 [22:43:06]Write to MH i2c: E2 08 00 A6 09 80 13 01 00 00 00 00 00 2C [22:43:06]Write i2c OK [22:43:06]MH_I2C_Read... [22:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:06]Read from MH i2c: E2 [22:43:06]MH_I2C_Read... [22:43:06]Read from MH i2c: E2 0E 00 [22:43:06]MH_I2C_Read... [22:43:06]Read from MH i2c: E2 0E 00 A6 09 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 FF [22:43:06]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:43:06]wFMCommunicate OK [22:43:06]SAM_PROTO_GetShiftState done [22:43:06]FM_GetShiftState done [22:43:06]req_shift_opened done [22:43:06]requested_item shift.open_date is exist - process it [22:43:06]req_shift_open_date [22:43:06]req_shift_open_date done [22:43:06]produce_requested_data done [22:43:06]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57881,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:43:06]process_action_free close_receipt [22:43:06]json_value_free [22:43:06]json_value_free done [22:43:06]process_json_proto returns [22:43:06]Send response to host [22:43:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57881,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:43:06]free response buf [22:43:06]execute_script done [22:43:06]execute_script returns [22:43:06]free content buf [22:43:06]Sock 8.Close socket [22:43:06]Sock 8.Thread stoped [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:32]accept exits with 9 [22:46:32]New connection [22:46:32]New thread 3066735972 created [22:46:32]Thread 3066592612 joined [22:46:32]Waiting for new connection... [22:46:32] Sock 9.Parse request [22:46:32]Sock 9.Check first char [22:46:32]Sock 9.First char is OK [22:46:32]request: POST /json_proto HTTP/1.0 [22:46:32]Method: POST [22:46:32]URL: /json_proto [22:46:32]Method is POST - this is cgi request [22:46:32]url: /json_proto [22:46:32]query_string will be loaded in cgi processing [22:46:32]execute_cgi json_proto POST (null) [22:46:32]execute_cgi path=json_proto method=POST [22:46:32]POST find Content-Length [22:46:32]Host: 172.17.60.68:8080 [22:46:32]Content-Length: 674 [22:46:32]Content-Type: application/json [22:46:32] [22:46:32]POST finish read [22:46:32]Found Content-Length = 674 [22:46:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543224", "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" : 3.020, "sum" : 220.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:32]execute_script... [22:46:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543224", "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" : 3.020, "sum" : 220.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:32]POST & json_proto [22:46:32]process_json_proto [22:46:32]json parsed OK: [22:46:32]protocol is kg_v1.0 [22:46:32]action value=close_receipt [22:46:32]process_action close_receipt [22:46:32]cmd_close_receipt [22:46:32]MH_GetDate [22:46:32]Write to MH i2c: F0 00 00 A7 09 9F [22:46:32]Write i2c OK [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: F0 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: F0 09 00 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: F0 09 00 A7 09 00 49 F6 5C 66 8D A7 02 66 45 [22:46:32]GetLastDocTimeStamp 1717368183 [22:46:32]current date 1717368393 [22:46:32]FM_GetShiftState [22:46:32]SAM_PROTO_GetShiftState [22:46:32]wFMCommunicate request_size=4 [22:46:32]MH_SAM_APDU [22:46:32]CAPDU: 80 13 01 00 [22:46:32]Write to MH i2c: E2 08 00 A8 09 80 13 01 00 00 00 00 00 2E [22:46:32]Write i2c OK [22:46:32]MH_I2C_Read... [22:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:32]Read from MH i2c: E2 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: E2 0E 00 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: E2 0E 00 A8 09 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 01 [22:46:32]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:46:32]wFMCommunicate OK [22:46:32]SAM_PROTO_GetShiftState done [22:46:32]FM_GetShiftState done [22:46:32]opened in 1717288520 [22:46:32]opened+sec_in_day 1717374920 [22:46:32]quantity*price = 22015 [22:46:32]sum+1 = 22017 [22:46:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.38 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 709 02.06.2024 22:46 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57882 ФПД: 140925170456234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224633&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57882&fm=140925170456234&tin=02508201610067®Number=0000000000151680&sum=22000 [22:46:34]StoreToDocumentArchive [22:46:34]shift 69 fd 57882 [22:46:34]save to /storage/0069/doc_00057882 [22:46:34]save last doc name /storage/0069/doc_00057882 to /storage/kkm_last_doc_name [22:46:34]save OK [22:46:34]Clear old archive folders... [22:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:46:34]tlvbuf is 01A3D500 [22:46:34]SAM_PROTO_ClearQueue [22:46:34]wFMCommunicate request_size=4 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 09 00 00 [22:46:34]Write to MH i2c: E2 08 00 B5 09 80 09 00 00 00 00 00 00 30 [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:34]Read from MH i2c: E2 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 03 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 03 00 B5 09 00 90 00 32 [22:46:34]RAPDU: 90 00 [22:46:34]wFMCommunicate OK [22:46:34]SAM_PROTO_ClearQueue done [22:46:34]KKMCreateOFDPacket [22:46:34]OFDProtocolAddRootSTLVToBuf [22:46:34]FM_MakeSignedData [22:46:34]FM_MakeSignedData [22:46:34]SAM_PROTO_SignData [22:46:34]wFMCommunicate request_size=4 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 0D 01 02 [22:46:34]Write to MH i2c: E2 08 00 B6 09 80 0D 01 02 00 00 00 00 38 [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:34]Read from MH i2c: E2 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 03 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 03 00 B6 09 00 90 00 33 [22:46:34]RAPDU: 90 00 [22:46:34]wFMCommunicate OK [22:46:34]wFMCommunicate request_size=255 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 02 00 00 F4 03 04 00 49 F6 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1A E2 00 00 35 04 06 00 80 2B B2 B9 [22:46:34]Write to MH i2c: E2 02 01 B7 09 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 CC 0B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 02 00 00 F4 03 04 00 49 F6 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1A E2 00 00 35 04 06 00 80 2B B2 B9 00 00 EB [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:34]Read from MH i2c: E2 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 03 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 03 00 B7 09 00 90 00 34 [22:46:34]RAPDU: 90 00 [22:46:34]wFMCommunicate OK [22:46:34]wFMCommunicate request_size=7 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 0D 02 02 02 96 AA [22:46:34]Write to MH i2c: E2 0A 00 B8 09 80 0D 02 02 02 00 96 AA 00 00 7F [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:34]Read from MH i2c: E2 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 03 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 03 00 B8 09 00 90 00 35 [22:46:34]RAPDU: 90 00 [22:46:34]wFMCommunicate OK [22:46:34]wFMCommunicate request_size=4 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 0D 03 02 [22:46:34]Write to MH i2c: E2 08 00 B9 09 80 0D 03 02 00 00 00 00 3D [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:34]Read from MH i2c: E2 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 0B 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 0B 00 B9 09 00 2D 21 F4 C3 82 8A FF 8E 90 00 DC [22:46:34]RAPDU: 2D 21 F4 C3 82 8A FF 8E 90 00 [22:46:34]wFMCommunicate OK [22:46:34]SAM_PROTO_SignData done [22:46:34]FM_MakeSignedData done [22:46:34]CreateOFDProtocolMessage [22:46:34]wFMCommunicate request_size=4 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 11 00 00 [22:46:34]Write to MH i2c: E2 08 00 BA 09 80 11 00 00 00 00 00 00 3D [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:34]Read from MH i2c: E2 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 17 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 17 00 BA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 90 [22:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:46:34]wFMCommunicate OK [22:46:34]CreateOFDProtocolMessage done [22:46:34]OFDSenderStorePacket 57882 [22:46:34]StoreOFDPacket docnum=57882 [22:46:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 23 78 04 01 97 CF 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 CC 0B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 02 00 00 F4 03 04 00 49 F6 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1A E2 00 00 35 04 06 00 80 2B B2 B9 96 AA 2D 21 F4 C3 82 8A FF 8E [22:46:34]CheckFolder [22:46:34]dirname=/storage/ofd_packets [22:46:34]CheckFolder done [22:46:34]ProducePacketName [22:46:34]name=ofd_packets/00057882 [22:46:34]NVStorageSaveData ofd_packets/00057882 [22:46:34]File name is /storage/ofd_packets/00057882 [22:46:34]Write 298 bytes [22:46:34]NVStorageSaveData done [22:46:34]OFDSenderStorePacket done [22:46:34]KKMCreateOFDPacket done [22:46:34]NVStorageSaveData kkm_last_timestamp [22:46:34]File name is /storage/kkm_last_timestamp [22:46:34]Write 4 bytes [22:46:34]NVStorageSaveData done [22:46:34]ExternCall_PrintAddStr [22:46:34]wPrintStart [22:46:34]Write to MH i2c: 01 00 00 BB 09 C4 [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: 01 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: 01 07 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: 01 07 00 BB 09 00 00 00 00 00 FF 0F D9 [22:46:34]RasterBufferAndPrint [22:46:34]line Счет N : (1)543224 [22:46:34]line ИНН: 02508201610067 [22:46:34]line Контрольно-Кассовый Чек [22:46:34]line ПРОДАЖА [22:46:34]line ТРК (МРК, ГНК) : 11 [22:46:34]line Товар: 2710194210 [22:46:34]line ДТ-К-5 [22:46:34]line 3.020 * 72.90 [22:46:34]line = 220.16 [22:46:34]line НДС 12% НСП 1% [22:46:34]line > о реализуемом товаре [22:46:34]line ОКРУГЛЕНИЕ: -0.16 [22:46:34]line ИТОГО: 220.00 [22:46:34]line Внесено: 220.00 [22:46:34]line СДАЧА: 0.00 [22:46:34]line НСП 1% : 1.95 [22:46:34]line НДС 12% : 23.38 [22:46:34]line Наличными: 220.00 [22:46:34]line Безнал.: 0.00 [22:46:34]line Место: АЗС № 117 "Партнер Нефть" [22:46:34]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:46:34]line СНО: Общий режим [22:46:34]line Чек 709 02.06.2024 22:46 [22:46:34]line Смена: 69 ФФД: 1.0 [22:46:34]line ЗНМ: 0300000048 [22:46:34]line РНМ: 0000000000151680 [22:46:34]line Версия ККМ: v1.0 [22:46:34]line ФМ: 0000000000959414 [22:46:34]line ФД: 57882 [22:46:34]line ФПД: 140925170456234 [22:46:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224633&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57882&fm=140925170456234&tin=02508201610067®Number=0000000000151680&sum=22000 [22:46:34]OFD Sender: Processing packet 57882 [packets to send 50, broken 49] [22:46:34]ProducePacketName [22:46:34]name=ofd_packets/00057882 [22:46:34]OFD Sender: To server: pG, [22:46:34]CommunicateWithHost lk.salyk.kg:30040 [22:46:34]ConnectInit lk.salyk.kg [22:46:34]written 0, free lines is 4095 [22:46:34]Connected sock=10 [22:46:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 23 78 04 01 97 CF 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 CC 0B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 02 00 00 F4 03 04 00 49 F6 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1A E2 00 00 35 04 06 00 80 2B B2 B9 96 AA 2D 21 F4 C3 82 8A FF 8E [22:46:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 EF FF 47 00 9F 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1A E2 00 00 F4 03 04 00 19 A1 5C 66 B6 04 01 00 00 27 89 96 45 40 28 20 3D [22:46:35]CommunicateWithHost err = 0 [22:46:35]CheckOFDResponse [22:46:35]1017 (14) - 77093643461234 [22:46:35]1041 (16) - 0000000000959414 [22:46:35]1040 (4) - 57882 [22:46:35]1012 (4) - 02.06.2024 16:43 [22:46:35]1206 (1) - 0 [22:46:35]OFD Sender: Remove packet 57882 [22:46:35]ProducePacketName [22:46:35]name=ofd_packets/00057882 [22:46:35]NVStorageDeleteData [22:46:35]Write to MH i2c: 01 00 00 E6 09 EF [22:46:35]Write i2c OK [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: 01 [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: 01 07 00 [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: 01 07 00 E6 09 00 00 00 00 00 AA 0C AC [22:46:35]RasterBufferAndPrint [22:46:35]line [22:46:35]line [22:46:35]line [22:46:35]line [22:46:35]line [22:46:35]written 0, free lines is 3247 [22:46:35]MH_Cut [22:46:35]Write to MH i2c: D1 01 00 ED 09 01 C8 [22:46:35]Write i2c OK [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: D1 [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: D1 01 00 [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: D1 01 00 ED 09 00 C7 [22:46:35]Write to MH i2c: 01 00 00 EE 09 F7 [22:46:35]Write i2c OK [22:46:35]MH_I2C_Read... [22:46:35]OFD Sender: No OFD packet to send [22:46:36]*** Cut start [22:46:36]*** Partial cut [22:46:36]*** CUTSNS_PIN = 1 [22:46:36]*** CUTSNS_PIN = 0 [22:46:36]*** Brake cut motor [22:46:36]Read from MH i2c: 01 [22:46:36]MH_I2C_Read... [22:46:36]*** Stop cut motor [22:46:36]*** Cut end [22:46:36]Read from MH i2c: 01 07 00 [22:46:36]MH_I2C_Read... [22:46:36]Read from MH i2c: 01 07 00 EE 09 00 00 00 00 00 FF 0F 0C [22:46:36]process_action close_receipt done [22:46:36]requested_data is exist [22:46:36]produce_requested_data [22:46:36]requested_item fm.sn is exist - process it [22:46:36]wFMCommunicate request_size=4 [22:46:36]MH_SAM_APDU [22:46:36]CAPDU: 80 11 00 00 [22:46:36]Write to MH i2c: E2 08 00 EF 09 80 11 00 00 00 00 00 00 72 [22:46:36]Write i2c OK [22:46:36]MH_I2C_Read... [22:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:36]Read from MH i2c: E2 [22:46:36]MH_I2C_Read... [22:46:36]Read from MH i2c: E2 17 00 [22:46:36]MH_I2C_Read... [22:46:36]Read from MH i2c: E2 17 00 EF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 C5 [22:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:46:36]wFMCommunicate OK [22:46:36]requested_item fd.num is exist - process it [22:46:36]SAM_PROTO_GetFieldsCounters [22:46:36]wFMCommunicate request_size=4 [22:46:36]MH_SAM_APDU [22:46:36]CAPDU: 80 13 00 00 [22:46:36]Write to MH i2c: E2 08 00 F0 09 80 13 00 00 00 00 00 00 75 [22:46:36]Write i2c OK [22:46:36]MH_I2C_Read... [22:46:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:37]Read from MH i2c: E2 [22:46:37]MH_I2C_Read... [22:46:37]Read from MH i2c: E2 62 00 [22:46:37]MH_I2C_Read... [22:46:37]Read from MH i2c: E2 62 00 F0 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 1A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C5 02 00 00 5E 04 04 00 C5 02 00 00 57 04 04 00 C6 02 00 00 19 04 04 00 00 00 00 00 90 00 28 [22:46:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 1A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C5 02 00 00 5E 04 04 00 C5 02 00 00 57 04 04 00 C6 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:46:37]wFMCommunicate OK [22:46:37]SAM_PROTO_GetFieldsCounters done [22:46:37]requested_item shift.num is exist - process it [22:46:37]requested_item shift.opened is exist - process it [22:46:37]req_shift_opened [22:46:37]FM_GetShiftState [22:46:37]SAM_PROTO_GetShiftState [22:46:37]wFMCommunicate request_size=4 [22:46:37]MH_SAM_APDU [22:46:37]CAPDU: 80 13 01 00 [22:46:37]Write to MH i2c: E2 08 00 F1 09 80 13 01 00 00 00 00 00 77 [22:46:37]Write i2c OK [22:46:37]MH_I2C_Read... [22:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:37]Read from MH i2c: E2 [22:46:37]MH_I2C_Read... [22:46:37]Read from MH i2c: E2 0E 00 [22:46:37]MH_I2C_Read... [22:46:37]Read from MH i2c: E2 0E 00 F1 09 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 4A [22:46:37]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:46:37]wFMCommunicate OK [22:46:37]SAM_PROTO_GetShiftState done [22:46:37]FM_GetShiftState done [22:46:37]req_shift_opened done [22:46:37]requested_item shift.open_date is exist - process it [22:46:37]req_shift_open_date [22:46:37]req_shift_open_date done [22:46:37]produce_requested_data done [22:46:37]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57882,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:46:37]process_action_free close_receipt [22:46:37]json_value_free [22:46:37]json_value_free done [22:46:37]process_json_proto returns [22:46:37]Send response to host [22:46:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57882,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:46:37]free response buf [22:46:37]execute_script done [22:46:37]execute_script returns [22:46:37]free content buf [22:46:37]Sock 9.Close socket [22:46:37]Sock 9.Thread stoped [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:25]OFD Sender: No OFD packet to send [22:47:30]OFD Sender: No OFD packet to send [22:47:35]OFD Sender: No OFD packet to send [22:47:40]OFD Sender: No OFD packet to send [22:47:45]OFD Sender: No OFD packet to send [22:47:50]OFD Sender: No OFD packet to send [22:47:55]OFD Sender: No OFD packet to send [22:48:00]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:43]accept exits with 8 [22:50:43]New connection [22:50:43]New thread 3066592612 created [22:50:43]Thread 3066735972 joined [22:50:43]Waiting for new connection... [22:50:43] Sock 8.Parse request [22:50:43]Sock 8.Check first char [22:50:43]Sock 8.First char is OK [22:50:43]request: POST /json_proto HTTP/1.0 [22:50:43]Method: POST [22:50:43]URL: /json_proto [22:50:43]Method is POST - this is cgi request [22:50:43]url: /json_proto [22:50:43]query_string will be loaded in cgi processing [22:50:43]execute_cgi json_proto POST (null) [22:50:43]execute_cgi path=json_proto method=POST [22:50:43]POST find Content-Length [22:50:43]Host: 172.17.60.68:8080 [22:50:43]Content-Length: 674 [22:50:43]Content-Type: application/json [22:50:43] [22:50:43]POST finish read [22:50:43]Found Content-Length = 674 [22:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:43]execute_script... [22:50:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:43]POST & json_proto [22:50:43]process_json_proto [22:50:43]json parsed OK: [22:50:43]protocol is kg_v1.0 [22:50:43]action value=close_receipt [22:50:43]process_action close_receipt [22:50:43]cmd_close_receipt [22:50:43]MH_GetDate [22:50:43]Write to MH i2c: F0 00 00 F2 09 EA [22:50:43]Write i2c OK [22:50:43]MH_I2C_Read... [22:50:43]Read from MH i2c: F0 [22:50:43]MH_I2C_Read... [22:50:43]Read from MH i2c: F0 09 00 [22:50:43]MH_I2C_Read... [22:50:43]Read from MH i2c: F0 09 00 F2 09 00 44 F7 5C 66 8D A7 02 66 8C [22:50:43]GetLastDocTimeStamp 1717368393 [22:50:43]current date 1717368644 [22:50:43]FM_GetShiftState [22:50:43]SAM_PROTO_GetShiftState [22:50:43]wFMCommunicate request_size=4 [22:50:43]MH_SAM_APDU [22:50:43]CAPDU: 80 13 01 00 [22:50:43]Write to MH i2c: E2 08 00 F3 09 80 13 01 00 00 00 00 00 79 [22:50:43]Write i2c OK [22:50:43]MH_I2C_Read... [22:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:43]Read from MH i2c: E2 [22:50:43]MH_I2C_Read... [22:50:43]Read from MH i2c: E2 0E 00 [22:50:43]MH_I2C_Read... [22:50:43]Read from MH i2c: E2 0E 00 F3 09 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 4C [22:50:43]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:50:43]wFMCommunicate OK [22:50:43]SAM_PROTO_GetShiftState done [22:50:43]FM_GetShiftState done [22:50:43]opened in 1717288520 [22:50:43]opened+sec_in_day 1717374920 [22:50:43]quantity*price = 50009 [22:50:43]sum+1 = 50010 [22:50:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 710 02.06.2024 22:50 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57883 ФПД: 119134138011185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225044&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57883&fm=119134138011185&tin=02508201610067®Number=0000000000151680&sum=50000 [22:50:44]StoreToDocumentArchive [22:50:44]shift 69 fd 57883 [22:50:44]save to /storage/0069/doc_00057883 [22:50:44]save last doc name /storage/0069/doc_00057883 to /storage/kkm_last_doc_name [22:50:44]save OK [22:50:44]Clear old archive folders... [22:50:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:50:44]tlvbuf is 01879A40 [22:50:44]SAM_PROTO_ClearQueue [22:50:44]wFMCommunicate request_size=4 [22:50:44]MH_SAM_APDU [22:50:44]CAPDU: 80 09 00 00 [22:50:44]Write to MH i2c: E2 08 00 00 0A 80 09 00 00 00 00 00 00 7C [22:50:44]Write i2c OK [22:50:44]MH_I2C_Read... [22:50:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:44]Read from MH i2c: E2 [22:50:44]MH_I2C_Read... [22:50:44]Read from MH i2c: E2 03 00 [22:50:44]MH_I2C_Read... [22:50:44]Read from MH i2c: E2 03 00 00 0A 00 90 00 7E [22:50:44]RAPDU: 90 00 [22:50:44]wFMCommunicate OK [22:50:44]SAM_PROTO_ClearQueue done [22:50:44]KKMCreateOFDPacket [22:50:44]OFDProtocolAddRootSTLVToBuf [22:50:44]FM_MakeSignedData [22:50:44]FM_MakeSignedData [22:50:44]SAM_PROTO_SignData [22:50:44]wFMCommunicate request_size=4 [22:50:44]MH_SAM_APDU [22:50:44]CAPDU: 80 0D 01 02 [22:50:44]Write to MH i2c: E2 08 00 01 0A 80 0D 01 02 00 00 00 00 84 [22:50:44]Write i2c OK [22:50:44]MH_I2C_Read... [22:50:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:44]Read from MH i2c: E2 [22:50:44]MH_I2C_Read... [22:50:44]Read from MH i2c: E2 03 00 [22:50:44]MH_I2C_Read... [22:50:44]Read from MH i2c: E2 03 00 01 0A 00 90 00 7F [22:50:44]RAPDU: 90 00 [22:50:44]wFMCommunicate OK [22:50:44]wFMCommunicate request_size=255 [22:50:44]MH_SAM_APDU [22:50:44]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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 02 00 00 F4 03 04 00 44 F7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1B E2 00 00 35 04 06 00 6C 5A 13 FA [22:50:44]Write to MH i2c: E2 02 01 02 0A 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 02 00 00 F4 03 04 00 44 F7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1B E2 00 00 35 04 06 00 6C 5A 13 FA 00 00 04 [22:50:44]Write i2c OK [22:50:44]MH_I2C_Read... [22:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:45]Read from MH i2c: E2 [22:50:45]MH_I2C_Read... [22:50:45]Read from MH i2c: E2 03 00 [22:50:45]MH_I2C_Read... [22:50:45]Read from MH i2c: E2 03 00 02 0A 00 90 00 80 [22:50:45]RAPDU: 90 00 [22:50:45]wFMCommunicate OK [22:50:45]wFMCommunicate request_size=7 [22:50:45]MH_SAM_APDU [22:50:45]CAPDU: 80 0D 02 02 02 0E 31 [22:50:45]Write to MH i2c: E2 0A 00 03 0A 80 0D 02 02 02 00 0E 31 00 00 CA [22:50:45]Write i2c OK [22:50:45]MH_I2C_Read... [22:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:45]Read from MH i2c: E2 [22:50:45]MH_I2C_Read... [22:50:45]Read from MH i2c: E2 03 00 [22:50:45]MH_I2C_Read... [22:50:45]Read from MH i2c: E2 03 00 03 0A 00 90 00 81 [22:50:45]RAPDU: 90 00 [22:50:45]wFMCommunicate OK [22:50:45]wFMCommunicate request_size=4 [22:50:45]MH_SAM_APDU [22:50:45]CAPDU: 80 0D 03 02 [22:50:45]Write to MH i2c: E2 08 00 04 0A 80 0D 03 02 00 00 00 00 89 [22:50:45]Write i2c OK [22:50:45]MH_I2C_Read... [22:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:45]Read from MH i2c: E2 [22:50:45]MH_I2C_Read... [22:50:45]Read from MH i2c: E2 0B 00 [22:50:45]MH_I2C_Read... [22:50:45]Read from MH i2c: E2 0B 00 04 0A 00 88 30 3C 20 E1 1C 02 42 90 00 DF [22:50:45]RAPDU: 88 30 3C 20 E1 1C 02 42 90 00 [22:50:45]wFMCommunicate OK [22:50:45]SAM_PROTO_SignData done [22:50:45]FM_MakeSignedData done [22:50:45]CreateOFDProtocolMessage [22:50:45]wFMCommunicate request_size=4 [22:50:45]MH_SAM_APDU [22:50:45]CAPDU: 80 11 00 00 [22:50:45]Write to MH i2c: E2 08 00 05 0A 80 11 00 00 00 00 00 00 89 [22:50:45]Write i2c OK [22:50:45]MH_I2C_Read... [22:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:45]Read from MH i2c: E2 [22:50:45]MH_I2C_Read... [22:50:45]Read from MH i2c: E2 17 00 [22:50:45]MH_I2C_Read... [22:50:45]Read from MH i2c: E2 17 00 05 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 DC [22:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:50:45]wFMCommunicate OK [22:50:45]CreateOFDProtocolMessage done [22:50:45]OFDSenderStorePacket 57883 [22:50:45]StoreOFDPacket docnum=57883 [22:50:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 21 19 04 01 9A 39 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 02 00 00 F4 03 04 00 44 F7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1B E2 00 00 35 04 06 00 6C 5A 13 FA 0E 31 88 30 3C 20 E1 1C 02 42 [22:50:45]CheckFolder [22:50:45]dirname=/storage/ofd_packets [22:50:45]CheckFolder done [22:50:45]ProducePacketName [22:50:45]name=ofd_packets/00057883 [22:50:45]NVStorageSaveData ofd_packets/00057883 [22:50:45]File name is /storage/ofd_packets/00057883 [22:50:45]Write 298 bytes [22:50:45]NVStorageSaveData done [22:50:45]OFDSenderStorePacket done [22:50:45]KKMCreateOFDPacket done [22:50:45]NVStorageSaveData kkm_last_timestamp [22:50:45]File name is /storage/kkm_last_timestamp [22:50:45]Write 4 bytes [22:50:45]NVStorageSaveData done [22:50:45]OFD Sender: Processing packet 57883 [packets to send 50, broken 49] [22:50:45]ProducePacketName [22:50:45]name=ofd_packets/00057883 [22:50:45]OFD Sender: To server: pG, [22:50:45]CommunicateWithHost lk.salyk.kg:30040 [22:50:45]ConnectInit lk.salyk.kg [22:50:45]ExternCall_PrintAddStr [22:50:45]wPrintStart [22:50:45]Write to MH i2c: 01 00 00 06 0A 10 [22:50:45]Write i2c OK [22:50:45]MH_I2C_Read... [22:50:45]Read from MH i2c: 01 [22:50:45]MH_I2C_Read... [22:50:45]Read from MH i2c: 01 07 00 [22:50:45]MH_I2C_Read... [22:50:45]Read from MH i2c: 01 07 00 06 0A 00 00 00 00 00 FF 0F 25 [22:50:45]RasterBufferAndPrint [22:50:45]line Счет N : (1)543227 [22:50:45]line ИНН: 02508201610067 [22:50:45]line Контрольно-Кассовый Чек [22:50:45]line ПРОДАЖА [22:50:45]line ТРК (МРК, ГНК) : 41 [22:50:45]line Товар: 2710194210 [22:50:45]line ДТ-К-5 [22:50:45]line 6.860 * 72.90 [22:50:45]line = 500.09 [22:50:45]line НДС 12% НСП 1% [22:50:45]line > о реализуемом товаре [22:50:45]line ОКРУГЛЕНИЕ: -0.09 [22:50:45]line ИТОГО: 500.00 [22:50:45]line Внесено: 500.00 [22:50:45]line СДАЧА: 0.00 [22:50:45]line НСП 1% : 4.43 [22:50:45]line НДС 12% : 53.11 [22:50:45]line Наличными: 500.00 [22:50:45]line Безнал.: 0.00 [22:50:45]line Место: АЗС № 117 "Партнер Нефть" [22:50:45]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:50:45]line СНО: Общий режим [22:50:45]line Чек 710 02.06.2024 22:50 [22:50:45]line Смена: 69 ФФД: 1.0 [22:50:45]line ЗНМ: 0300000048 [22:50:45]line РНМ: 0000000000151680 [22:50:45]line Версия ККМ: v1.0 [22:50:45]line ФМ: 0000000000959414 [22:50:45]line ФД: 57883 [22:50:45]line ФПД: 119134138011185 [22:50:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225044&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57883&fm=119134138011185&tin=02508201610067®Number=0000000000151680&sum=50000 [22:50:45]Connected sock=11 [22:50:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 21 19 04 01 9A 39 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 02 00 00 F4 03 04 00 44 F7 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1B E2 00 00 35 04 06 00 6C 5A 13 FA 0E 31 88 30 3C 20 E1 1C 02 42 [22:50:45]written 0, free lines is 4095 [22:50:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 C4 2B 47 00 57 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1B E2 00 00 F4 03 04 00 14 A2 5C 66 B6 04 01 00 00 01 BA 4E 80 C2 66 3C A8 [22:50:45]CommunicateWithHost err = 0 [22:50:45]CheckOFDResponse [22:50:45]1017 (14) - 77093643461234 [22:50:45]1041 (16) - 0000000000959414 [22:50:45]1040 (4) - 57883 [22:50:45]1012 (4) - 02.06.2024 16:47 [22:50:45]1206 (1) - 0 [22:50:45]OFD Sender: Remove packet 57883 [22:50:45]ProducePacketName [22:50:45]name=ofd_packets/00057883 [22:50:45]NVStorageDeleteData [22:50:46]Write to MH i2c: 01 00 00 31 0A 3B [22:50:46]Write i2c OK [22:50:46]MH_I2C_Read... [22:50:46]Read from MH i2c: 01 [22:50:46]MH_I2C_Read... [22:50:46]Read from MH i2c: 01 07 00 [22:50:46]MH_I2C_Read... [22:50:46]Read from MH i2c: 01 07 00 31 0A 00 00 00 00 00 99 0C E7 [22:50:46]RasterBufferAndPrint [22:50:46]line [22:50:46]line [22:50:46]line [22:50:46]line [22:50:46]line [22:50:46]written 0, free lines is 3229 [22:50:46]MH_Cut [22:50:46]Write to MH i2c: D1 01 00 38 0A 01 14 [22:50:46]Write i2c OK [22:50:46]MH_I2C_Read... [22:50:46]Read from MH i2c: D1 [22:50:46]MH_I2C_Read... [22:50:46]Read from MH i2c: D1 01 00 [22:50:46]MH_I2C_Read... [22:50:46]Read from MH i2c: D1 01 00 38 0A 00 13 [22:50:46]Write to MH i2c: 01 00 00 39 0A 43 [22:50:46]Write i2c OK [22:50:46]MH_I2C_Read... [22:50:46]OFD Sender: No OFD packet to send [22:50:47]*** Cut start [22:50:47]*** Partial cut [22:50:47]*** CUTSNS_PIN = 1 [22:50:47]*** CUTSNS_PIN = 0 [22:50:47]*** Brake cut motor [22:50:47]Read from MH i2c: 01 [22:50:47]MH_I2C_Read... [22:50:47]*** Stop cut motor [22:50:47]*** Cut end [22:50:47]Read from MH i2c: 01 07 00 [22:50:47]MH_I2C_Read... [22:50:47]Read from MH i2c: 01 07 00 39 0A 00 00 00 00 00 FF 0F 58 [22:50:47]process_action close_receipt done [22:50:47]requested_data is exist [22:50:47]produce_requested_data [22:50:47]requested_item fm.sn is exist - process it [22:50:47]wFMCommunicate request_size=4 [22:50:47]MH_SAM_APDU [22:50:47]CAPDU: 80 11 00 00 [22:50:47]Write to MH i2c: E2 08 00 3A 0A 80 11 00 00 00 00 00 00 BE [22:50:47]Write i2c OK [22:50:47]MH_I2C_Read... [22:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:47]Read from MH i2c: E2 [22:50:47]MH_I2C_Read... [22:50:47]Read from MH i2c: E2 17 00 [22:50:47]MH_I2C_Read... [22:50:47]Read from MH i2c: E2 17 00 3A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 11 [22:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:50:47]wFMCommunicate OK [22:50:47]requested_item fd.num is exist - process it [22:50:47]SAM_PROTO_GetFieldsCounters [22:50:47]wFMCommunicate request_size=4 [22:50:47]MH_SAM_APDU [22:50:47]CAPDU: 80 13 00 00 [22:50:47]Write to MH i2c: E2 08 00 3B 0A 80 13 00 00 00 00 00 00 C1 [22:50:47]Write i2c OK [22:50:47]MH_I2C_Read... [22:50:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:47]Read from MH i2c: E2 [22:50:47]MH_I2C_Read... [22:50:47]Read from MH i2c: E2 62 00 [22:50:47]MH_I2C_Read... [22:50:47]Read from MH i2c: E2 62 00 3B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 1B E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C6 02 00 00 5E 04 04 00 C6 02 00 00 57 04 04 00 C7 02 00 00 19 04 04 00 00 00 00 00 90 00 78 [22:50:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 1B E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C6 02 00 00 5E 04 04 00 C6 02 00 00 57 04 04 00 C7 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:47]wFMCommunicate OK [22:50:47]SAM_PROTO_GetFieldsCounters done [22:50:47]requested_item shift.num is exist - process it [22:50:47]requested_item shift.opened is exist - process it [22:50:47]req_shift_opened [22:50:47]FM_GetShiftState [22:50:47]SAM_PROTO_GetShiftState [22:50:47]wFMCommunicate request_size=4 [22:50:47]MH_SAM_APDU [22:50:47]CAPDU: 80 13 01 00 [22:50:47]Write to MH i2c: E2 08 00 3C 0A 80 13 01 00 00 00 00 00 C3 [22:50:47]Write i2c OK [22:50:47]MH_I2C_Read... [22:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:47]Read from MH i2c: E2 [22:50:47]MH_I2C_Read... [22:50:47]Read from MH i2c: E2 0E 00 [22:50:47]MH_I2C_Read... [22:50:47]Read from MH i2c: E2 0E 00 3C 0A 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 96 [22:50:47]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:50:47]wFMCommunicate OK [22:50:47]SAM_PROTO_GetShiftState done [22:50:47]FM_GetShiftState done [22:50:47]req_shift_opened done [22:50:47]requested_item shift.open_date is exist - process it [22:50:47]req_shift_open_date [22:50:47]req_shift_open_date done [22:50:47]produce_requested_data done [22:50:47]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57883,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:50:47]process_action_free close_receipt [22:50:47]json_value_free [22:50:47]json_value_free done [22:50:47]process_json_proto returns [22:50:47]Send response to host [22:50:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57883,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:50:47]free response buf [22:50:47]execute_script done [22:50:47]execute_script returns [22:50:47]free content buf [22:50:47]Sock 8.Close socket [22:50:47]Sock 8.Thread stoped [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:23]accept exits with 9 [22:51:23]New connection [22:51:23]New thread 3066735972 created [22:51:23]Thread 3066592612 joined [22:51:23]Waiting for new connection... [22:51:23] Sock 9.Parse request [22:51:23]Sock 9.Check first char [22:51:23]Sock 9.First char is OK [22:51:23]request: POST /json_proto HTTP/1.0 [22:51:23]Method: POST [22:51:23]URL: /json_proto [22:51:23]Method is POST - this is cgi request [22:51:23]url: /json_proto [22:51:23]query_string will be loaded in cgi processing [22:51:23]execute_cgi json_proto POST (null) [22:51:23]execute_cgi path=json_proto method=POST [22:51:23]POST find Content-Length [22:51:23]Host: 172.17.60.68:8080 [22:51:23]Content-Length: 1215 [22:51:23]Content-Type: application/json [22:51:23] [22:51:23]POST finish read [22:51:23]Found Content-Length = 1215 [22:51:23]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 117\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420.\u000A\u0421\u0447\u0435\u0442 N : (1)543226\u000A02.06.2024 22:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.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\u000A72610\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:23]execute_script... [22:51:23]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 117\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420.\u000A\u0421\u0447\u0435\u0442 N : (1)543226\u000A02.06.2024 22:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.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\u000A72610\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:23]POST & json_proto [22:51:23]process_json_proto [22:51:23]json parsed OK: [22:51:23]protocol is kg_v1.0 [22:51:23]action value=print_text [22:51:23]process_action print_text [22:51:23]cmd_print_text [22:51:23]ExternCall_PrintAddStr [22:51:23]wPrintStart [22:51:23]Write to MH i2c: 01 00 00 3D 0A 47 [22:51:23]Write i2c OK [22:51:23]MH_I2C_Read... [22:51:23]Read from MH i2c: 01 [22:51:23]MH_I2C_Read... [22:51:23]Read from MH i2c: 01 07 00 [22:51:23]MH_I2C_Read... [22:51:23]Read from MH i2c: 01 07 00 3D 0A 00 00 00 00 00 FF 0F 5C [22:51:23]RasterBufferAndPrint [22:51:23]line *****ТОВАРНЫЙ ЧЕК***** [22:51:23]line АЗС 117 [22:51:23]line Партнер нефть [22:51:23]line 02508201610067 [22:51:23]line Кассир : Койгельдиева Р. [22:51:23]line Счет N : (1)543226 [22:51:23]line 02.06.2024 22:41 [22:51:23]line ПРОДАЖА [22:51:23]line ТРК (МРК, ГНК): 21 [22:51:23]line Вид ГСМ : 2710194210 [22:51:23]line ДТ-К-5 [22:51:23]line 40.000 x 72.90 [22:51:23]line ИТОГ: 2916.00 [22:51:23]line Тип оплаты: Талоны: Топливная Карта [22:51:23]line 72610 [22:51:23]line ______________________ [22:51:23]line (подпись) [22:51:23]written 0, free lines is 4095 [22:51:23]Write to MH i2c: 01 00 00 52 0A 5C [22:51:23]Write i2c OK [22:51:23]MH_I2C_Read... [22:51:23]Read from MH i2c: 01 [22:51:23]MH_I2C_Read... [22:51:23]Read from MH i2c: 01 07 00 [22:51:23]MH_I2C_Read... [22:51:23]Read from MH i2c: 01 07 00 52 0A 00 00 00 00 00 F5 0D 65 [22:51:23]RasterBufferAndPrint [22:51:23]line [22:51:23]line [22:51:23]line [22:51:23]line [22:51:23]line [22:51:23]written 0, free lines is 3575 [22:51:23]MH_Cut [22:51:23]Write to MH i2c: D1 01 00 59 0A 01 35 [22:51:23]Write i2c OK [22:51:23]MH_I2C_Read... [22:51:23]Read from MH i2c: D1 [22:51:23]MH_I2C_Read... [22:51:23]Read from MH i2c: D1 01 00 [22:51:23]MH_I2C_Read... [22:51:23]Read from MH i2c: D1 01 00 59 0A 00 34 [22:51:23]Write to MH i2c: 01 00 00 5A 0A 64 [22:51:23]Write i2c OK [22:51:23]MH_I2C_Read... [22:51:24]*** Cut start [22:51:24]*** Partial cut [22:51:24]*** CUTSNS_PIN = 1 [22:51:24]*** CUTSNS_PIN = 0 [22:51:24]*** Brake cut motor [22:51:25]Read from MH i2c: 01 [22:51:25]MH_I2C_Read... [22:51:25]*** Stop cut motor [22:51:25]*** Cut end [22:51:25]Read from MH i2c: 01 07 00 [22:51:25]MH_I2C_Read... [22:51:25]Read from MH i2c: 01 07 00 5A 0A 00 00 00 00 00 FF 0F 79 [22:51:25]process_action print_text done [22:51:25]requested_data is exist [22:51:25]produce_requested_data [22:51:25]requested_item fm.sn is exist - process it [22:51:25]wFMCommunicate request_size=4 [22:51:25]MH_SAM_APDU [22:51:25]CAPDU: 80 11 00 00 [22:51:25]Write to MH i2c: E2 08 00 5B 0A 80 11 00 00 00 00 00 00 DF [22:51:25]Write i2c OK [22:51:25]MH_I2C_Read... [22:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:25]Read from MH i2c: E2 [22:51:25]MH_I2C_Read... [22:51:25]Read from MH i2c: E2 17 00 [22:51:25]MH_I2C_Read... [22:51:25]Read from MH i2c: E2 17 00 5B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 32 [22:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:51:25]wFMCommunicate OK [22:51:25]requested_item fd.num is exist - process it [22:51:25]SAM_PROTO_GetFieldsCounters [22:51:25]wFMCommunicate request_size=4 [22:51:25]MH_SAM_APDU [22:51:25]CAPDU: 80 13 00 00 [22:51:25]Write to MH i2c: E2 08 00 5C 0A 80 13 00 00 00 00 00 00 E2 [22:51:25]Write i2c OK [22:51:25]MH_I2C_Read... [22:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:25]Read from MH i2c: E2 [22:51:25]MH_I2C_Read... [22:51:25]Read from MH i2c: E2 62 00 [22:51:25]MH_I2C_Read... [22:51:25]Read from MH i2c: E2 62 00 5C 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 1B E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C6 02 00 00 5E 04 04 00 C6 02 00 00 57 04 04 00 C7 02 00 00 19 04 04 00 00 00 00 00 90 00 99 [22:51:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 1B E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C6 02 00 00 5E 04 04 00 C6 02 00 00 57 04 04 00 C7 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:51:25]wFMCommunicate OK [22:51:25]SAM_PROTO_GetFieldsCounters done [22:51:25]requested_item shift.num is exist - process it [22:51:25]requested_item shift.opened is exist - process it [22:51:25]req_shift_opened [22:51:25]FM_GetShiftState [22:51:25]SAM_PROTO_GetShiftState [22:51:25]wFMCommunicate request_size=4 [22:51:25]MH_SAM_APDU [22:51:25]CAPDU: 80 13 01 00 [22:51:25]Write to MH i2c: E2 08 00 5D 0A 80 13 01 00 00 00 00 00 E4 [22:51:25]Write i2c OK [22:51:25]MH_I2C_Read... [22:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:25]Read from MH i2c: E2 [22:51:25]MH_I2C_Read... [22:51:25]Read from MH i2c: E2 0E 00 [22:51:25]MH_I2C_Read... [22:51:25]Read from MH i2c: E2 0E 00 5D 0A 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 B7 [22:51:25]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:51:25]wFMCommunicate OK [22:51:25]SAM_PROTO_GetShiftState done [22:51:25]FM_GetShiftState done [22:51:25]req_shift_opened done [22:51:25]requested_item shift.open_date is exist - process it [22:51:25]req_shift_open_date [22:51:25]req_shift_open_date done [22:51:25]produce_requested_data done [22:51:25]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57883,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:51:25]process_action_free print_text [22:51:25]json_value_free [22:51:25]json_value_free done [22:51:25]process_json_proto returns [22:51:25]Send response to host [22:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57883,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:51:25]free response buf [22:51:25]execute_script done [22:51:25]execute_script returns [22:51:25]free content buf [22:51:25]Sock 9.Close socket [22:51:25]Sock 9.Thread stoped [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]accept exits with 8 [22:54:51]New connection [22:54:51]New thread 3066592612 created [22:54:51]Thread 3066735972 joined [22:54:51]Waiting for new connection... [22:54:51] Sock 8.Parse request [22:54:51]Sock 8.Check first char [22:54:51]Sock 8.First char is OK [22:54:51]request: POST /json_proto HTTP/1.0 [22:54:51]Method: POST [22:54:51]URL: /json_proto [22:54:51]Method is POST - this is cgi request [22:54:51]url: /json_proto [22:54:51]query_string will be loaded in cgi processing [22:54:51]execute_cgi json_proto POST (null) [22:54:51]execute_cgi path=json_proto method=POST [22:54:51]POST find Content-Length [22:54:51]Host: 172.17.60.68:8080 [22:54:51]Content-Length: 671 [22:54:51]Content-Type: application/json [22:54:51] [22:54:51]POST finish read [22:54:51]Found Content-Length = 671 [22:54:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:51]execute_script... [22:54:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:51]POST & json_proto [22:54:51]process_json_proto [22:54:51]json parsed OK: [22:54:51]protocol is kg_v1.0 [22:54:51]action value=close_receipt [22:54:51]process_action close_receipt [22:54:51]cmd_close_receipt [22:54:51]MH_GetDate [22:54:51]Write to MH i2c: F0 00 00 5E 0A 57 [22:54:51]Write i2c OK [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: F0 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: F0 09 00 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: F0 09 00 5E 0A 00 3C F8 5C 66 8D A7 02 66 F2 [22:54:51]GetLastDocTimeStamp 1717368644 [22:54:51]current date 1717368892 [22:54:51]FM_GetShiftState [22:54:51]SAM_PROTO_GetShiftState [22:54:51]wFMCommunicate request_size=4 [22:54:51]MH_SAM_APDU [22:54:51]CAPDU: 80 13 01 00 [22:54:51]Write to MH i2c: E2 08 00 5F 0A 80 13 01 00 00 00 00 00 E6 [22:54:51]Write i2c OK [22:54:51]MH_I2C_Read... [22:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:51]Read from MH i2c: E2 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: E2 0E 00 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: E2 0E 00 5F 0A 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 B9 [22:54:51]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:54:51]wFMCommunicate OK [22:54:51]SAM_PROTO_GetShiftState done [22:54:51]FM_GetShiftState done [22:54:51]opened in 1717288520 [22:54:51]opened+sec_in_day 1717374920 [22:54:51]quantity*price = 70028 [22:54:51]sum+1 = 70030 [22:54:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 711 02.06.2024 22:54 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57884 ФПД: 110152428675367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225452&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57884&fm=110152428675367&tin=02508201610067®Number=0000000000151680&sum=70000 [22:54:52]StoreToDocumentArchive [22:54:52]shift 69 fd 57884 [22:54:52]save to /storage/0069/doc_00057884 [22:54:52]save last doc name /storage/0069/doc_00057884 to /storage/kkm_last_doc_name [22:54:52]save OK [22:54:52]Clear old archive folders... [22:54:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:54:52]tlvbuf is 01880690 [22:54:52]SAM_PROTO_ClearQueue [22:54:52]wFMCommunicate request_size=4 [22:54:52]MH_SAM_APDU [22:54:52]CAPDU: 80 09 00 00 [22:54:52]Write to MH i2c: E2 08 00 6C 0A 80 09 00 00 00 00 00 00 E8 [22:54:52]Write i2c OK [22:54:52]MH_I2C_Read... [22:54:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:52]Read from MH i2c: E2 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: E2 03 00 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: E2 03 00 6C 0A 00 90 00 EA [22:54:52]RAPDU: 90 00 [22:54:52]wFMCommunicate OK [22:54:52]SAM_PROTO_ClearQueue done [22:54:52]KKMCreateOFDPacket [22:54:52]OFDProtocolAddRootSTLVToBuf [22:54:52]FM_MakeSignedData [22:54:52]FM_MakeSignedData [22:54:52]SAM_PROTO_SignData [22:54:52]wFMCommunicate request_size=4 [22:54:52]MH_SAM_APDU [22:54:52]CAPDU: 80 0D 01 02 [22:54:52]Write to MH i2c: E2 08 00 6D 0A 80 0D 01 02 00 00 00 00 F0 [22:54:52]Write i2c OK [22:54:52]MH_I2C_Read... [22:54:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:52]Read from MH i2c: E2 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: E2 03 00 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: E2 03 00 6D 0A 00 90 00 EB [22:54:52]RAPDU: 90 00 [22:54:52]wFMCommunicate OK [22:54:52]wFMCommunicate request_size=255 [22:54:52]MH_SAM_APDU [22:54:52]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 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 02 00 00 F4 03 04 00 3C F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1C E2 00 00 35 04 06 00 [22:54:52]Write to MH i2c: E2 02 01 6E 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 02 00 00 F4 03 04 00 3C F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1C E2 00 00 35 04 06 00 00 00 FC [22:54:52]Write i2c OK [22:54:52]MH_I2C_Read... [22:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:52]Read from MH i2c: E2 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: E2 03 00 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: E2 03 00 6E 0A 00 90 00 EC [22:54:52]RAPDU: 90 00 [22:54:52]wFMCommunicate OK [22:54:52]wFMCommunicate request_size=11 [22:54:52]MH_SAM_APDU [22:54:52]CAPDU: 80 0D 02 02 06 64 2E DC 61 E1 27 [22:54:52]Write to MH i2c: E2 0E 00 6F 0A 80 0D 02 02 06 00 64 2E DC 61 E1 27 00 00 D6 [22:54:52]Write i2c OK [22:54:52]MH_I2C_Read... [22:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:52]Read from MH i2c: E2 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: E2 03 00 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: E2 03 00 6F 0A 00 90 00 ED [22:54:52]RAPDU: 90 00 [22:54:52]wFMCommunicate OK [22:54:52]wFMCommunicate request_size=4 [22:54:52]MH_SAM_APDU [22:54:52]CAPDU: 80 0D 03 02 [22:54:52]Write to MH i2c: E2 08 00 70 0A 80 0D 03 02 00 00 00 00 F5 [22:54:52]Write i2c OK [22:54:52]MH_I2C_Read... [22:54:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:53]Read from MH i2c: E2 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: E2 0B 00 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: E2 0B 00 70 0A 00 A4 C8 4D B7 A6 D1 F0 4F 90 00 1C [22:54:53]RAPDU: A4 C8 4D B7 A6 D1 F0 4F 90 00 [22:54:53]wFMCommunicate OK [22:54:53]SAM_PROTO_SignData done [22:54:53]FM_MakeSignedData done [22:54:53]CreateOFDProtocolMessage [22:54:53]wFMCommunicate request_size=4 [22:54:53]MH_SAM_APDU [22:54:53]CAPDU: 80 11 00 00 [22:54:53]Write to MH i2c: E2 08 00 71 0A 80 11 00 00 00 00 00 00 F5 [22:54:53]Write i2c OK [22:54:53]MH_I2C_Read... [22:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:53]Read from MH i2c: E2 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: E2 17 00 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: E2 17 00 71 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 48 [22:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:54:53]wFMCommunicate OK [22:54:53]CreateOFDProtocolMessage done [22:54:53]OFDSenderStorePacket 57884 [22:54:53]StoreOFDPacket docnum=57884 [22:54:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 2D 93 08 01 1A 24 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 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 02 00 00 F4 03 04 00 3C F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1C E2 00 00 35 04 06 00 64 2E DC 61 E1 27 A4 C8 4D B7 A6 D1 F0 4F [22:54:53]CheckFolder [22:54:53]dirname=/storage/ofd_packets [22:54:53]CheckFolder done [22:54:53]ProducePacketName [22:54:53]name=ofd_packets/00057884 [22:54:53]NVStorageSaveData ofd_packets/00057884 [22:54:53]File name is /storage/ofd_packets/00057884 [22:54:53]Write 302 bytes [22:54:53]NVStorageSaveData done [22:54:53]OFDSenderStorePacket done [22:54:53]KKMCreateOFDPacket done [22:54:53]NVStorageSaveData kkm_last_timestamp [22:54:53]File name is /storage/kkm_last_timestamp [22:54:53]Write 4 bytes [22:54:53]NVStorageSaveData done [22:54:53]ExternCall_PrintAddStr [22:54:53]wPrintStart [22:54:53]Write to MH i2c: 01 00 00 72 0A 7C [22:54:53]Write i2c OK [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: 01 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: 01 07 00 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: 01 07 00 72 0A 00 00 00 00 00 FF 0F 91 [22:54:53]RasterBufferAndPrint [22:54:53]line Счет N : (1)543229 [22:54:53]line ИНН: 02508201610067 [22:54:53]line Контрольно-Кассовый Чек [22:54:53]line ПРОДАЖА [22:54:53]line ТРК (МРК, ГНК) : 14 [22:54:53]line Товар: 2710124130 [22:54:53]line SUPER 92-К-5 [22:54:53]line 10.390 * 67.40 [22:54:53]line = 700.29 [22:54:53]line НДС 12% НСП 1% [22:54:53]line > о реализуемом товаре [22:54:53]line ОКРУГЛЕНИЕ: -0.29 [22:54:53]line ИТОГО: 700.00 [22:54:53]line Внесено: 700.00 [22:54:53]line СДАЧА: 0.00 [22:54:53]line НСП 1% : 6.20 [22:54:53]line НДС 12% : 74.37 [22:54:53]line Наличными: 700.00 [22:54:53]line Безнал.: 0.00 [22:54:53]line Место: АЗС № 117 "Партнер Нефть" [22:54:53]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:54:53]line СНО: Общий режим [22:54:53]line Чек 711 02.06.2024 22:54 [22:54:53]line Смена: 69 ФФД: 1.0 [22:54:53]line ЗНМ: 0300000048 [22:54:53]line РНМ: 0000000000151680 [22:54:53]line Версия ККМ: v1.0 [22:54:53]line ФМ: 0000000000959414 [22:54:53]line ФД: 57884 [22:54:53]line ФПД: 110152428675367 [22:54:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225452&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57884&fm=110152428675367&tin=02508201610067®Number=0000000000151680&sum=70000 [22:54:53]written 0, free lines is 4095 [22:54:53]OFD Sender: Processing packet 57884 [packets to send 50, broken 49] [22:54:53]ProducePacketName [22:54:53]name=ofd_packets/00057884 [22:54:53]OFD Sender: To server: pG, [22:54:53]CommunicateWithHost lk.salyk.kg:30040 [22:54:53]ConnectInit lk.salyk.kg [22:54:53]Connected sock=10 [22:54:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 2D 93 08 01 1A 24 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 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 02 00 00 F4 03 04 00 3C F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1C E2 00 00 35 04 06 00 64 2E DC 61 E1 27 A4 C8 4D B7 A6 D1 F0 4F [22:54:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 F8 E2 47 00 4A 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1C E2 00 00 F4 03 04 00 0B A3 5C 66 B6 04 01 00 00 45 0B D3 40 C1 CF 22 74 [22:54:53]CommunicateWithHost err = 0 [22:54:53]CheckOFDResponse [22:54:53]1017 (14) - 77093643461234 [22:54:53]1041 (16) - 0000000000959414 [22:54:53]1040 (4) - 57884 [22:54:53]1012 (4) - 02.06.2024 16:51 [22:54:53]1206 (1) - 0 [22:54:53]OFD Sender: Remove packet 57884 [22:54:53]ProducePacketName [22:54:53]name=ofd_packets/00057884 [22:54:53]NVStorageDeleteData [22:54:53]Write to MH i2c: 01 00 00 9D 0A A7 [22:54:53]Write i2c OK [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: 01 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: 01 07 00 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: 01 07 00 9D 0A 00 00 00 00 00 A9 0C 63 [22:54:53]RasterBufferAndPrint [22:54:53]line [22:54:53]line [22:54:53]line [22:54:53]line [22:54:53]line [22:54:53]written 0, free lines is 3247 [22:54:53]MH_Cut [22:54:53]Write to MH i2c: D1 01 00 A4 0A 01 80 [22:54:53]Write i2c OK [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: D1 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: D1 01 00 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: D1 01 00 A4 0A 00 7F [22:54:53]Write to MH i2c: 01 00 00 A5 0A AF [22:54:53]Write i2c OK [22:54:53]MH_I2C_Read... [22:54:53]OFD Sender: No OFD packet to send [22:54:54]*** Cut start [22:54:54]*** Partial cut [22:54:54]*** CUTSNS_PIN = 1 [22:54:54]*** CUTSNS_PIN = 0 [22:54:54]*** Brake cut motor [22:54:55]Read from MH i2c: 01 [22:54:55]MH_I2C_Read... [22:54:55]*** Stop cut motor [22:54:55]*** Cut end [22:54:55]Read from MH i2c: 01 07 00 [22:54:55]MH_I2C_Read... [22:54:55]Read from MH i2c: 01 07 00 A5 0A 00 00 00 00 00 FF 0F C4 [22:54:55]process_action close_receipt done [22:54:55]requested_data is exist [22:54:55]produce_requested_data [22:54:55]requested_item fm.sn is exist - process it [22:54:55]wFMCommunicate request_size=4 [22:54:55]MH_SAM_APDU [22:54:55]CAPDU: 80 11 00 00 [22:54:55]Write to MH i2c: E2 08 00 A6 0A 80 11 00 00 00 00 00 00 2A [22:54:55]Write i2c OK [22:54:55]MH_I2C_Read... [22:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:55]Read from MH i2c: E2 [22:54:55]MH_I2C_Read... [22:54:55]Read from MH i2c: E2 17 00 [22:54:55]MH_I2C_Read... [22:54:55]Read from MH i2c: E2 17 00 A6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 7D [22:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:54:55]wFMCommunicate OK [22:54:55]requested_item fd.num is exist - process it [22:54:55]SAM_PROTO_GetFieldsCounters [22:54:55]wFMCommunicate request_size=4 [22:54:55]MH_SAM_APDU [22:54:55]CAPDU: 80 13 00 00 [22:54:55]Write to MH i2c: E2 08 00 A7 0A 80 13 00 00 00 00 00 00 2D [22:54:55]Write i2c OK [22:54:55]MH_I2C_Read... [22:54:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:55]Read from MH i2c: E2 [22:54:55]MH_I2C_Read... [22:54:55]Read from MH i2c: E2 62 00 [22:54:55]MH_I2C_Read... [22:54:55]Read from MH i2c: E2 62 00 A7 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 1C E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C7 02 00 00 5E 04 04 00 C7 02 00 00 57 04 04 00 C8 02 00 00 19 04 04 00 00 00 00 00 90 00 E8 [22:54:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 1C E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C7 02 00 00 5E 04 04 00 C7 02 00 00 57 04 04 00 C8 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:54:55]wFMCommunicate OK [22:54:55]SAM_PROTO_GetFieldsCounters done [22:54:55]requested_item shift.num is exist - process it [22:54:55]requested_item shift.opened is exist - process it [22:54:55]req_shift_opened [22:54:55]FM_GetShiftState [22:54:55]SAM_PROTO_GetShiftState [22:54:55]wFMCommunicate request_size=4 [22:54:55]MH_SAM_APDU [22:54:55]CAPDU: 80 13 01 00 [22:54:55]Write to MH i2c: E2 08 00 A8 0A 80 13 01 00 00 00 00 00 2F [22:54:55]Write i2c OK [22:54:55]MH_I2C_Read... [22:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:55]Read from MH i2c: E2 [22:54:55]MH_I2C_Read... [22:54:55]Read from MH i2c: E2 0E 00 [22:54:55]MH_I2C_Read... [22:54:55]Read from MH i2c: E2 0E 00 A8 0A 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 02 [22:54:55]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:54:55]wFMCommunicate OK [22:54:55]SAM_PROTO_GetShiftState done [22:54:55]FM_GetShiftState done [22:54:55]req_shift_opened done [22:54:55]requested_item shift.open_date is exist - process it [22:54:55]req_shift_open_date [22:54:55]req_shift_open_date done [22:54:55]produce_requested_data done [22:54:55]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57884,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:54:55]process_action_free close_receipt [22:54:55]json_value_free [22:54:55]json_value_free done [22:54:55]process_json_proto returns [22:54:55]Send response to host [22:54:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57884,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:54:55]free response buf [22:54:55]execute_script done [22:54:55]execute_script returns [22:54:55]free content buf [22:54:55]Sock 8.Close socket [22:54:55]Sock 8.Thread stoped [22:54:57]accept exits with 9 [22:54:57]New connection [22:54:57]New thread 3066735972 created [22:54:57]Thread 3066592612 joined [22:54:57]Waiting for new connection... [22:54:57] Sock 9.Parse request [22:54:57]Sock 9.Check first char [22:54:57]Sock 9.First char is OK [22:54:57]request: POST /json_proto HTTP/1.0 [22:54:57]Method: POST [22:54:57]URL: /json_proto [22:54:57]Method is POST - this is cgi request [22:54:57]url: /json_proto [22:54:57]query_string will be loaded in cgi processing [22:54:57]execute_cgi json_proto POST (null) [22:54:57]execute_cgi path=json_proto method=POST [22:54:57]POST find Content-Length [22:54:57]Host: 172.17.60.68:8080 [22:54:57]Content-Length: 846 [22:54:57]Content-Type: application/json [22:54:57] [22:54:57]POST finish read [22:54:57]Found Content-Length = 846 [22:54:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 40.120, "sum" : 1400.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1400.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:57]execute_script... [22:54: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)543225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 40.120, "sum" : 1400.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1400.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:57]POST & json_proto [22:54:57]process_json_proto [22:54:57]json parsed OK: [22:54:57]protocol is kg_v1.0 [22:54:57]action value=close_receipt [22:54:57]process_action close_receipt [22:54:57]cmd_close_receipt [22:54:57]MH_GetDate [22:54:57]Write to MH i2c: F0 00 00 A9 0A A2 [22:54:57]Write i2c OK [22:54:57]MH_I2C_Read... [22:54:57]Read from MH i2c: F0 [22:54:57]MH_I2C_Read... [22:54:57]Read from MH i2c: F0 09 00 [22:54:57]MH_I2C_Read... [22:54:57]Read from MH i2c: F0 09 00 A9 0A 00 42 F8 5C 66 8D A7 02 66 43 [22:54:57]GetLastDocTimeStamp 1717368892 [22:54:57]current date 1717368898 [22:54:57]FM_GetShiftState [22:54:57]SAM_PROTO_GetShiftState [22:54:57]wFMCommunicate request_size=4 [22:54:57]MH_SAM_APDU [22:54:57]CAPDU: 80 13 01 00 [22:54:57]Write to MH i2c: E2 08 00 AA 0A 80 13 01 00 00 00 00 00 31 [22:54:57]Write i2c OK [22:54:57]MH_I2C_Read... [22:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:57]Read from MH i2c: E2 [22:54:57]MH_I2C_Read... [22:54:57]Read from MH i2c: E2 0E 00 [22:54:57]MH_I2C_Read... [22:54:57]Read from MH i2c: E2 0E 00 AA 0A 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 04 [22:54:57]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:54:57]wFMCommunicate OK [22:54:57]SAM_PROTO_GetShiftState done [22:54:57]FM_GetShiftState done [22:54:57]opened in 1717288520 [22:54:57]opened+sec_in_day 1717374920 [22:54:57]quantity*price = 140018 [22:54:57]sum+1 = 140020 [22:54:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1400.19 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 0.00 Безнал.: 1400.19 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 712 02.06.2024 22:54 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000000959414 ФД: 57885 ФПД: 202955985871056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225458&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57885&fm=202955985871056&tin=02508201610067®Number=0000000000151680&sum=140019 [22:54:58]StoreToDocumentArchive [22:54:58]shift 69 fd 57885 [22:54:58]save to /storage/0069/doc_00057885 [22:54:58]save last doc name /storage/0069/doc_00057885 to /storage/kkm_last_doc_name [22:54:58]save OK [22:54:58]Clear old archive folders... [22:54:58]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:54:58]tlvbuf is 0195FF30 [22:54:58]SAM_PROTO_ClearQueue [22:54:58]wFMCommunicate request_size=4 [22:54:58]MH_SAM_APDU [22:54:58]CAPDU: 80 09 00 00 [22:54:58]Write to MH i2c: E2 08 00 B7 0A 80 09 00 00 00 00 00 00 33 [22:54:58]Write i2c OK [22:54:58]MH_I2C_Read... [22:54:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:58]Read from MH i2c: E2 [22:54:58]MH_I2C_Read... [22:54:58]Read from MH i2c: E2 03 00 [22:54:58]MH_I2C_Read... [22:54:58]Read from MH i2c: E2 03 00 B7 0A 00 90 00 35 [22:54:58]RAPDU: 90 00 [22:54:58]wFMCommunicate OK [22:54:58]SAM_PROTO_ClearQueue done [22:54:58]KKMCreateOFDPacket [22:54:58]OFDProtocolAddRootSTLVToBuf [22:54:58]FM_MakeSignedData [22:54:58]FM_MakeSignedData [22:54:58]SAM_PROTO_SignData [22:54:58]wFMCommunicate request_size=4 [22:54:58]MH_SAM_APDU [22:54:58]CAPDU: 80 0D 01 02 [22:54:58]Write to MH i2c: E2 08 00 B8 0A 80 0D 01 02 00 00 00 00 3B [22:54:58]Write i2c OK [22:54:58]MH_I2C_Read... [22:54:58]OFD Sender: No OFD packet to send [22:54:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:58]Read from MH i2c: E2 [22:54:58]MH_I2C_Read... [22:54:58]Read from MH i2c: E2 03 00 [22:54:58]MH_I2C_Read... [22:54:58]Read from MH i2c: E2 03 00 B8 0A 00 90 00 36 [22:54:58]RAPDU: 90 00 [22:54:58]wFMCommunicate OK [22:54:58]wFMCommunicate request_size=255 [22:54:58]MH_SAM_APDU [22:54:58]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 9C 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 F3 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 02 00 00 F4 03 04 00 42 F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1D E2 00 00 35 04 06 00 B8 96 [22:54:59]Write to MH i2c: E2 02 01 B9 0A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 9C 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 F3 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 02 00 00 F4 03 04 00 42 F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1D E2 00 00 35 04 06 00 B8 96 00 00 B2 [22:54:59]Write i2c OK [22:54:59]MH_I2C_Read... [22:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:59]Read from MH i2c: E2 [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: E2 03 00 [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: E2 03 00 B9 0A 00 90 00 37 [22:54:59]RAPDU: 90 00 [22:54:59]wFMCommunicate OK [22:54:59]wFMCommunicate request_size=9 [22:54:59]MH_SAM_APDU [22:54:59]CAPDU: 80 0D 02 02 04 5F 71 60 D0 [22:54:59]Write to MH i2c: E2 0C 00 BA 0A 80 0D 02 02 04 00 5F 71 60 D0 00 00 46 [22:54:59]Write i2c OK [22:54:59]MH_I2C_Read... [22:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:59]Read from MH i2c: E2 [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: E2 03 00 [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: E2 03 00 BA 0A 00 90 00 38 [22:54:59]RAPDU: 90 00 [22:54:59]wFMCommunicate OK [22:54:59]wFMCommunicate request_size=4 [22:54:59]MH_SAM_APDU [22:54:59]CAPDU: 80 0D 03 02 [22:54:59]Write to MH i2c: E2 08 00 BB 0A 80 0D 03 02 00 00 00 00 40 [22:54:59]Write i2c OK [22:54:59]MH_I2C_Read... [22:54:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:59]Read from MH i2c: E2 [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: E2 0B 00 [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: E2 0B 00 BB 0A 00 40 80 AA A9 E9 63 B2 00 90 00 52 [22:54:59]RAPDU: 40 80 AA A9 E9 63 B2 00 90 00 [22:54:59]wFMCommunicate OK [22:54:59]SAM_PROTO_SignData done [22:54:59]FM_MakeSignedData done [22:54:59]CreateOFDProtocolMessage [22:54:59]wFMCommunicate request_size=4 [22:54:59]MH_SAM_APDU [22:54:59]CAPDU: 80 11 00 00 [22:54:59]Write to MH i2c: E2 08 00 BC 0A 80 11 00 00 00 00 00 00 40 [22:54:59]Write i2c OK [22:54:59]MH_I2C_Read... [22:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:59]Read from MH i2c: E2 [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: E2 17 00 [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: E2 17 00 BC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 93 [22:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:54:59]wFMCommunicate OK [22:54:59]CreateOFDProtocolMessage done [22:54:59]OFDSenderStorePacket 57885 [22:54:59]StoreOFDPacket docnum=57885 [22:54:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 1B 47 06 01 5F D4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 9C 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 F3 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 02 00 00 F4 03 04 00 42 F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1D E2 00 00 35 04 06 00 B8 96 5F 71 60 D0 40 80 AA A9 E9 63 B2 00 [22:54:59]CheckFolder [22:54:59]dirname=/storage/ofd_packets [22:54:59]CheckFolder done [22:54:59]ProducePacketName [22:54:59]name=ofd_packets/00057885 [22:54:59]NVStorageSaveData ofd_packets/00057885 [22:54:59]File name is /storage/ofd_packets/00057885 [22:54:59]Write 300 bytes [22:54:59]NVStorageSaveData done [22:54:59]OFDSenderStorePacket done [22:54:59]KKMCreateOFDPacket done [22:54:59]NVStorageSaveData kkm_last_timestamp [22:54:59]File name is /storage/kkm_last_timestamp [22:54:59]Write 4 bytes [22:54:59]NVStorageSaveData done [22:54:59]ExternCall_PrintAddStr [22:54:59]wPrintStart [22:54:59]Write to MH i2c: 01 00 00 BD 0A C7 [22:54:59]Write i2c OK [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: 01 [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: 01 07 00 [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: 01 07 00 BD 0A 00 00 00 00 00 FF 0F DC [22:54:59]RasterBufferAndPrint [22:54:59]line Счет N : (1)543225 [22:54:59]line ИНН: 02508201610067 [22:54:59]line Контрольно-Кассовый Чек [22:54:59]line ПРОДАЖА [22:54:59]line ТРК (МРК, ГНК) : 72 [22:54:59]line Товар: 2711190000 [22:54:59]line ГАЗ-К-5 [22:54:59]line 40.120 * 34.90 [22:54:59]line = 1400.19 [22:54:59]line НДС 12% НСП 1% [22:54:59]line > о реализуемом товаре [22:54:59]line ИТОГО: 1400.19 [22:54:59]line НСП 1% : 12.39 [22:54:59]line НДС 12% : 148.69 [22:54:59]line Наличными: 0.00 [22:54:59]line Безнал.: 1400.19 [22:54:59]line Место: АЗС № 117 "Партнер Нефть" [22:54:59]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:54:59]line СНО: Общий режим [22:54:59]line Чек 712 02.06.2024 22:54 [22:54:59]line Смена: 69 ФФД: 1.0 [22:54:59]line ЗНМ: 0300000048 [22:54:59]line РНМ: 0000000000151680 [22:54:59]line Версия ККМ: v1.0 [22:54:59]line Платежная система: АКБ Кыргызстан [22:54:59]line ФМ: 0000000000959414 [22:54:59]line ФД: 57885 [22:54:59]line ФПД: 202955985871056 [22:54:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225458&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57885&fm=202955985871056&tin=02508201610067®Number=0000000000151680&sum=140019 [22:54:59]written 0, free lines is 4095 [22:54:59]OFD Sender: Processing packet 57885 [packets to send 50, broken 49] [22:54:59]ProducePacketName [22:54:59]name=ofd_packets/00057885 [22:54:59]OFD Sender: To server: pG, [22:54:59]CommunicateWithHost lk.salyk.kg:30040 [22:54:59]ConnectInit lk.salyk.kg [22:54:59]Connected sock=10 [22:54:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 1B 47 06 01 5F D4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 9C 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 F3 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 02 00 00 F4 03 04 00 42 F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1D E2 00 00 35 04 06 00 B8 96 5F 71 60 D0 40 80 AA A9 E9 63 B2 00 [22:54:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 B5 1D 47 00 FA 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1D E2 00 00 F4 03 04 00 12 A3 5C 66 B6 04 01 00 00 A9 DD DD 3E F9 C5 96 4A [22:54:59]CommunicateWithHost err = 0 [22:54:59]CheckOFDResponse [22:54:59]1017 (14) - 77093643461234 [22:54:59]1041 (16) - 0000000000959414 [22:54:59]1040 (4) - 57885 [22:54:59]1012 (4) - 02.06.2024 16:51 [22:54:59]1206 (1) - 0 [22:54:59]OFD Sender: Remove packet 57885 [22:54:59]ProducePacketName [22:54:59]name=ofd_packets/00057885 [22:54:59]NVStorageDeleteData [22:54:59]Write to MH i2c: 01 00 00 E7 0A F1 [22:54:59]Write i2c OK [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: 01 [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: 01 07 00 [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: 01 07 00 E7 0A 00 00 00 00 00 CE 0C D2 [22:54:59]RasterBufferAndPrint [22:54:59]line [22:54:59]line [22:54:59]line [22:54:59]line [22:54:59]line [22:54:59]written 0, free lines is 3292 [22:54:59]MH_Cut [22:54:59]Write to MH i2c: D1 01 00 EE 0A 01 CA [22:54:59]Write i2c OK [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: D1 [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: D1 01 00 [22:54:59]MH_I2C_Read... [22:54:59]Read from MH i2c: D1 01 00 EE 0A 00 C9 [22:54:59]Write to MH i2c: 01 00 00 EF 0A F9 [22:54:59]Write i2c OK [22:54:59]MH_I2C_Read... [22:55:00]OFD Sender: No OFD packet to send [22:55:00]*** Cut start [22:55:00]*** Partial cut [22:55:00]*** CUTSNS_PIN = 1 [22:55:00]*** CUTSNS_PIN = 0 [22:55:01]*** Brake cut motor [22:55:01]Read from MH i2c: 01 [22:55:01]MH_I2C_Read... [22:55:01]*** Stop cut motor [22:55:01]*** Cut end [22:55:01]Read from MH i2c: 01 07 00 [22:55:01]MH_I2C_Read... [22:55:01]Read from MH i2c: 01 07 00 EF 0A 00 00 00 00 00 FF 0F 0E [22:55:01]process_action close_receipt done [22:55:01]requested_data is exist [22:55:01]produce_requested_data [22:55:01]requested_item fm.sn is exist - process it [22:55:01]wFMCommunicate request_size=4 [22:55:01]MH_SAM_APDU [22:55:01]CAPDU: 80 11 00 00 [22:55:01]Write to MH i2c: E2 08 00 F0 0A 80 11 00 00 00 00 00 00 74 [22:55:01]Write i2c OK [22:55:01]MH_I2C_Read... [22:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:01]Read from MH i2c: E2 [22:55:01]MH_I2C_Read... [22:55:01]Read from MH i2c: E2 17 00 [22:55:01]MH_I2C_Read... [22:55:01]Read from MH i2c: E2 17 00 F0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 C7 [22:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:55:01]wFMCommunicate OK [22:55:01]requested_item fd.num is exist - process it [22:55:01]SAM_PROTO_GetFieldsCounters [22:55:01]wFMCommunicate request_size=4 [22:55:01]MH_SAM_APDU [22:55:01]CAPDU: 80 13 00 00 [22:55:01]Write to MH i2c: E2 08 00 F1 0A 80 13 00 00 00 00 00 00 77 [22:55:01]Write i2c OK [22:55:01]MH_I2C_Read... [22:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:01]Read from MH i2c: E2 [22:55:01]MH_I2C_Read... [22:55:01]Read from MH i2c: E2 62 00 [22:55:01]MH_I2C_Read... [22:55:01]Read from MH i2c: E2 62 00 F1 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 1D E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C8 02 00 00 5E 04 04 00 C8 02 00 00 57 04 04 00 C9 02 00 00 19 04 04 00 00 00 00 00 90 00 36 [22:55:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 1D E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C8 02 00 00 5E 04 04 00 C8 02 00 00 57 04 04 00 C9 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:01]wFMCommunicate OK [22:55:01]SAM_PROTO_GetFieldsCounters done [22:55:01]requested_item shift.num is exist - process it [22:55:01]requested_item shift.opened is exist - process it [22:55:01]req_shift_opened [22:55:01]FM_GetShiftState [22:55:01]SAM_PROTO_GetShiftState [22:55:01]wFMCommunicate request_size=4 [22:55:01]MH_SAM_APDU [22:55:01]CAPDU: 80 13 01 00 [22:55:01]Write to MH i2c: E2 08 00 F2 0A 80 13 01 00 00 00 00 00 79 [22:55:01]Write i2c OK [22:55:01]MH_I2C_Read... [22:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:01]Read from MH i2c: E2 [22:55:01]MH_I2C_Read... [22:55:01]Read from MH i2c: E2 0E 00 [22:55:01]MH_I2C_Read... [22:55:01]Read from MH i2c: E2 0E 00 F2 0A 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 4C [22:55:01]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:55:01]wFMCommunicate OK [22:55:01]SAM_PROTO_GetShiftState done [22:55:01]FM_GetShiftState done [22:55:01]req_shift_opened done [22:55:01]requested_item shift.open_date is exist - process it [22:55:01]req_shift_open_date [22:55:01]req_shift_open_date done [22:55:01]produce_requested_data done [22:55:01]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57885,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:55:01]process_action_free close_receipt [22:55:01]json_value_free [22:55:01]json_value_free done [22:55:01]process_json_proto returns [22:55:01]Send response to host [22:55:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57885,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:55:01]free response buf [22:55:01]execute_script done [22:55:01]execute_script returns [22:55:01]free content buf [22:55:01]Sock 9.Close socket [22:55:01]Sock 9.Thread stoped [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:15]accept exits with 8 [22:55:15]New connection [22:55:15]New thread 3066592612 created [22:55:15]Thread 3066735972 joined [22:55:15]Waiting for new connection... [22:55:15] Sock 8.Parse request [22:55:15]Sock 8.Check first char [22:55:15]Sock 8.First char is OK [22:55:15]request: POST /json_proto HTTP/1.0 [22:55:15]Method: POST [22:55:15]URL: /json_proto [22:55:15]Method is POST - this is cgi request [22:55:15]url: /json_proto [22:55:15]query_string will be loaded in cgi processing [22:55:15]execute_cgi json_proto POST (null) [22:55:15]execute_cgi path=json_proto method=POST [22:55:15]POST find Content-Length [22:55:15]Host: 172.17.60.68:8080 [22:55:15]Content-Length: 840 [22:55:15]Content-Type: application/json [22:55:15] [22:55:15]POST finish read [22:55:15]Found Content-Length = 840 [22:55:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:15]execute_script... [22:55: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)543230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:15]POST & json_proto [22:55:15]process_json_proto [22:55:15]json parsed OK: [22:55:15]protocol is kg_v1.0 [22:55:15]action value=close_receipt [22:55:15]process_action close_receipt [22:55:15]cmd_close_receipt [22:55:15]MH_GetDate [22:55:15]Write to MH i2c: F0 00 00 F3 0A EC [22:55:15]Write i2c OK [22:55:15]MH_I2C_Read... [22:55:15]Read from MH i2c: F0 [22:55:15]MH_I2C_Read... [22:55:15]Read from MH i2c: F0 09 00 [22:55:15]MH_I2C_Read... [22:55:15]Read from MH i2c: F0 09 00 F3 0A 00 54 F8 5C 66 8D A7 02 66 9F [22:55:15]GetLastDocTimeStamp 1717368898 [22:55:15]current date 1717368916 [22:55:15]FM_GetShiftState [22:55:15]SAM_PROTO_GetShiftState [22:55:15]wFMCommunicate request_size=4 [22:55:15]MH_SAM_APDU [22:55:15]CAPDU: 80 13 01 00 [22:55:15]Write to MH i2c: E2 08 00 F4 0A 80 13 01 00 00 00 00 00 7B [22:55:15]Write i2c OK [22:55:15]MH_I2C_Read... [22:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:16]Read from MH i2c: E2 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: E2 0E 00 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: E2 0E 00 F4 0A 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 4E [22:55:16]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:55:16]wFMCommunicate OK [22:55:16]SAM_PROTO_GetShiftState done [22:55:16]FM_GetShiftState done [22:55:16]opened in 1717288520 [22:55:16]opened+sec_in_day 1717374920 [22:55:16]quantity*price = 50065 [22:55:16]sum+1 = 50067 [22:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 713 02.06.2024 22:55 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000000959414 ФД: 57886 ФПД: 135014789127035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225516&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57886&fm=135014789127035&tin=02508201610067®Number=0000000000151680&sum=50066 [22:55:17]StoreToDocumentArchive [22:55:17]shift 69 fd 57886 [22:55:17]save to /storage/0069/doc_00057886 [22:55:17]save last doc name /storage/0069/doc_00057886 to /storage/kkm_last_doc_name [22:55:17]save OK [22:55:17]Clear old archive folders... [22:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:55:17]tlvbuf is 01A3C7E0 [22:55:17]SAM_PROTO_ClearQueue [22:55:17]wFMCommunicate request_size=4 [22:55:17]MH_SAM_APDU [22:55:17]CAPDU: 80 09 00 00 [22:55:17]Write to MH i2c: E2 08 00 01 0B 80 09 00 00 00 00 00 00 7E [22:55:17]Write i2c OK [22:55:17]MH_I2C_Read... [22:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:17]Read from MH i2c: E2 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: E2 03 00 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: E2 03 00 01 0B 00 90 00 80 [22:55:17]RAPDU: 90 00 [22:55:17]wFMCommunicate OK [22:55:17]SAM_PROTO_ClearQueue done [22:55:17]KKMCreateOFDPacket [22:55:17]OFDProtocolAddRootSTLVToBuf [22:55:17]FM_MakeSignedData [22:55:17]FM_MakeSignedData [22:55:17]SAM_PROTO_SignData [22:55:17]wFMCommunicate request_size=4 [22:55:17]MH_SAM_APDU [22:55:17]CAPDU: 80 0D 01 02 [22:55:17]Write to MH i2c: E2 08 00 02 0B 80 0D 01 02 00 00 00 00 86 [22:55:17]Write i2c OK [22:55:17]MH_I2C_Read... [22:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:17]Read from MH i2c: E2 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: E2 03 00 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [22:55:17]RAPDU: 90 00 [22:55:17]wFMCommunicate OK [22:55:17]wFMCommunicate request_size=255 [22:55:17]MH_SAM_APDU [22:55:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C9 02 00 00 F4 03 04 00 54 F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1E E2 00 00 35 04 06 00 7A [22:55:17]Write to MH i2c: E2 02 01 03 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 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 C9 02 00 00 F4 03 04 00 54 F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1E E2 00 00 35 04 06 00 7A 00 00 52 [22:55:17]Write i2c OK [22:55:17]MH_I2C_Read... [22:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:17]Read from MH i2c: E2 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: E2 03 00 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: E2 03 00 03 0B 00 90 00 82 [22:55:17]RAPDU: 90 00 [22:55:17]wFMCommunicate OK [22:55:17]wFMCommunicate request_size=10 [22:55:17]MH_SAM_APDU [22:55:17]CAPDU: 80 0D 02 02 05 CB 94 8B 9B 7B [22:55:17]Write to MH i2c: E2 0D 00 04 0B 80 0D 02 02 05 00 CB 94 8B 9B 7B 00 00 93 [22:55:17]Write i2c OK [22:55:17]MH_I2C_Read... [22:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:17]Read from MH i2c: E2 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: E2 03 00 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: E2 03 00 04 0B 00 90 00 83 [22:55:17]RAPDU: 90 00 [22:55:17]wFMCommunicate OK [22:55:17]wFMCommunicate request_size=4 [22:55:17]MH_SAM_APDU [22:55:17]CAPDU: 80 0D 03 02 [22:55:17]Write to MH i2c: E2 08 00 05 0B 80 0D 03 02 00 00 00 00 8B [22:55:17]Write i2c OK [22:55:17]MH_I2C_Read... [22:55:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:17]Read from MH i2c: E2 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: E2 0B 00 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: E2 0B 00 05 0B 00 4C B0 4A 44 3B 7E A3 2B 90 00 9D [22:55:17]RAPDU: 4C B0 4A 44 3B 7E A3 2B 90 00 [22:55:17]wFMCommunicate OK [22:55:17]SAM_PROTO_SignData done [22:55:17]FM_MakeSignedData done [22:55:17]CreateOFDProtocolMessage [22:55:17]wFMCommunicate request_size=4 [22:55:17]MH_SAM_APDU [22:55:17]CAPDU: 80 11 00 00 [22:55:17]Write to MH i2c: E2 08 00 06 0B 80 11 00 00 00 00 00 00 8B [22:55:17]Write i2c OK [22:55:17]MH_I2C_Read... [22:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:17]Read from MH i2c: E2 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: E2 17 00 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: E2 17 00 06 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 DE [22:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:55:17]wFMCommunicate OK [22:55:17]CreateOFDProtocolMessage done [22:55:17]OFDSenderStorePacket 57886 [22:55:17]StoreOFDPacket docnum=57886 [22:55:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 15 28 07 01 2B 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C9 02 00 00 F4 03 04 00 54 F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1E E2 00 00 35 04 06 00 7A CB 94 8B 9B 7B 4C B0 4A 44 3B 7E A3 2B [22:55:17]CheckFolder [22:55:17]dirname=/storage/ofd_packets [22:55:17]CheckFolder done [22:55:17]ProducePacketName [22:55:17]name=ofd_packets/00057886 [22:55:17]NVStorageSaveData ofd_packets/00057886 [22:55:17]File name is /storage/ofd_packets/00057886 [22:55:17]Write 301 bytes [22:55:17]NVStorageSaveData done [22:55:17]OFDSenderStorePacket done [22:55:17]KKMCreateOFDPacket done [22:55:17]NVStorageSaveData kkm_last_timestamp [22:55:17]File name is /storage/kkm_last_timestamp [22:55:17]Write 4 bytes [22:55:17]NVStorageSaveData done [22:55:17]ExternCall_PrintAddStr [22:55:17]wPrintStart [22:55:17]Write to MH i2c: 01 00 00 07 0B 12 [22:55:17]Write i2c OK [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: 01 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: 01 07 00 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: 01 07 00 07 0B 00 00 00 00 00 FF 0F 27 [22:55:17]RasterBufferAndPrint [22:55:17]line Счет N : (1)543230 [22:55:17]line ИНН: 02508201610067 [22:55:17]line Контрольно-Кассовый Чек [22:55:17]line ПРОДАЖА [22:55:17]line ТРК (МРК, ГНК) : 42 [22:55:17]line Товар: 2710124130 [22:55:17]line Аи-92-К-5 [22:55:17]line 7.540 * 66.40 [22:55:17]line = 500.66 [22:55:17]line НДС 12% НСП 1% [22:55:17]line > о реализуемом товаре [22:55:17]line ИТОГО: 500.66 [22:55:17]line НСП 1% : 4.43 [22:55:17]line НДС 12% : 53.17 [22:55:17]line Наличными: 0.00 [22:55:17]line Безнал.: 500.66 [22:55:17]line Место: АЗС № 117 "Партнер Нефть" [22:55:17]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:55:17]line СНО: Общий режим [22:55:17]line Чек 713 02.06.2024 22:55 [22:55:17]line Смена: 69 ФФД: 1.0 [22:55:17]line ЗНМ: 0300000048 [22:55:17]line РНМ: 0000000000151680 [22:55:17]line Версия ККМ: v1.0 [22:55:17]line Платежная система: АКБ Кыргызстан [22:55:17]line ФМ: 0000000000959414 [22:55:17]line ФД: 57886 [22:55:17]line ФПД: 135014789127035 [22:55:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225516&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57886&fm=135014789127035&tin=02508201610067®Number=0000000000151680&sum=50066 [22:55:17]written 0, free lines is 4095 [22:55:17]OFD Sender: Processing packet 57886 [packets to send 50, broken 49] [22:55:17]ProducePacketName [22:55:17]name=ofd_packets/00057886 [22:55:17]OFD Sender: To server: pG, [22:55:17]CommunicateWithHost lk.salyk.kg:30040 [22:55:17]ConnectInit lk.salyk.kg [22:55:17]Connected sock=10 [22:55:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 15 28 07 01 2B 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C9 02 00 00 F4 03 04 00 54 F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1E E2 00 00 35 04 06 00 7A CB 94 8B 9B 7B 4C B0 4A 44 3B 7E A3 2B [22:55:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 2D A1 47 00 08 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1E E2 00 00 F4 03 04 00 24 A3 5C 66 B6 04 01 00 00 B8 38 38 85 A3 25 92 76 [22:55:18]CommunicateWithHost err = 0 [22:55:18]CheckOFDResponse [22:55:18]1017 (14) - 77093643461234 [22:55:18]1041 (16) - 0000000000959414 [22:55:18]1040 (4) - 57886 [22:55:18]1012 (4) - 02.06.2024 16:51 [22:55:18]1206 (1) - 0 [22:55:18]OFD Sender: Remove packet 57886 [22:55:18]ProducePacketName [22:55:18]name=ofd_packets/00057886 [22:55:18]NVStorageDeleteData [22:55:18]Write to MH i2c: 01 00 00 31 0B 3C [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 31 0B 00 00 00 00 00 D6 0C 25 [22:55:18]RasterBufferAndPrint [22:55:18]line [22:55:18]line [22:55:18]line [22:55:18]line [22:55:18]line [22:55:18]written 0, free lines is 3294 [22:55:18]MH_Cut [22:55:18]Write to MH i2c: D1 01 00 38 0B 01 15 [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: D1 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: D1 01 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: D1 01 00 38 0B 00 14 [22:55:18]Write to MH i2c: 01 00 00 39 0B 44 [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]OFD Sender: No OFD packet to send [22:55:19]*** Cut start [22:55:19]*** Partial cut [22:55:19]*** CUTSNS_PIN = 1 [22:55:19]*** CUTSNS_PIN = 0 [22:55:19]*** Brake cut motor [22:55:19]Read from MH i2c: 01 [22:55:19]MH_I2C_Read... [22:55:19]*** Stop cut motor [22:55:19]*** Cut end [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 39 0B 00 00 00 00 00 FF 0F 59 [22:55:19]process_action close_receipt done [22:55:19]requested_data is exist [22:55:19]produce_requested_data [22:55:19]requested_item fm.sn is exist - process it [22:55:19]wFMCommunicate request_size=4 [22:55:19]MH_SAM_APDU [22:55:19]CAPDU: 80 11 00 00 [22:55:19]Write to MH i2c: E2 08 00 3A 0B 80 11 00 00 00 00 00 00 BF [22:55:19]Write i2c OK [22:55:19]MH_I2C_Read... [22:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:19]Read from MH i2c: E2 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: E2 17 00 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: E2 17 00 3A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 12 [22:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:55:19]wFMCommunicate OK [22:55:19]requested_item fd.num is exist - process it [22:55:19]SAM_PROTO_GetFieldsCounters [22:55:19]wFMCommunicate request_size=4 [22:55:19]MH_SAM_APDU [22:55:19]CAPDU: 80 13 00 00 [22:55:19]Write to MH i2c: E2 08 00 3B 0B 80 13 00 00 00 00 00 00 C2 [22:55:19]Write i2c OK [22:55:19]MH_I2C_Read... [22:55:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:19]Read from MH i2c: E2 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: E2 62 00 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: E2 62 00 3B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 1E E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C9 02 00 00 5E 04 04 00 C9 02 00 00 57 04 04 00 CA 02 00 00 19 04 04 00 00 00 00 00 90 00 85 [22:55:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 1E E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 C9 02 00 00 5E 04 04 00 C9 02 00 00 57 04 04 00 CA 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:19]wFMCommunicate OK [22:55:19]SAM_PROTO_GetFieldsCounters done [22:55:19]requested_item shift.num is exist - process it [22:55:19]requested_item shift.opened is exist - process it [22:55:19]req_shift_opened [22:55:19]FM_GetShiftState [22:55:19]SAM_PROTO_GetShiftState [22:55:19]wFMCommunicate request_size=4 [22:55:19]MH_SAM_APDU [22:55:19]CAPDU: 80 13 01 00 [22:55:19]Write to MH i2c: E2 08 00 3C 0B 80 13 01 00 00 00 00 00 C4 [22:55:19]Write i2c OK [22:55:19]MH_I2C_Read... [22:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:19]Read from MH i2c: E2 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: E2 0E 00 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: E2 0E 00 3C 0B 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 97 [22:55:19]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:55:19]wFMCommunicate OK [22:55:19]SAM_PROTO_GetShiftState done [22:55:19]FM_GetShiftState done [22:55:19]req_shift_opened done [22:55:19]requested_item shift.open_date is exist - process it [22:55:19]req_shift_open_date [22:55:19]req_shift_open_date done [22:55:19]produce_requested_data done [22:55:19]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57886,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:55:19]process_action_free close_receipt [22:55:19]json_value_free [22:55:19]json_value_free done [22:55:19]process_json_proto returns [22:55:19]Send response to host [22:55:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57886,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:55:19]free response buf [22:55:19]execute_script done [22:55:19]execute_script returns [22:55:19]free content buf [22:55:19]Sock 8.Close socket [22:55:19]Sock 8.Thread stoped [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:38]accept exits with 9 [22:55:38]New connection [22:55:38]New thread 3066735972 created [22:55:38]Thread 3066592612 joined [22:55:38]Waiting for new connection... [22:55:38] Sock 9.Parse request [22:55:38]Sock 9.Check first char [22:55:38]Sock 9.First char is OK [22:55:38]request: POST /json_proto HTTP/1.0 [22:55:38]Method: POST [22:55:38]URL: /json_proto [22:55:38]Method is POST - this is cgi request [22:55:38]url: /json_proto [22:55:38]query_string will be loaded in cgi processing [22:55:38]execute_cgi json_proto POST (null) [22:55:38]execute_cgi path=json_proto method=POST [22:55:38]POST find Content-Length [22:55:38]Host: 172.17.60.68:8080 [22:55:38]Content-Length: 990 [22:55:38]Content-Type: application/json [22:55:38] [22:55:38]POST finish read [22:55:38]Found Content-Length = 990 [22:55:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.90, "quantity" : 29.500, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 29.50 \u0441\u043E\u043C", "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:55:38]execute_script... [22:55:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.90, "quantity" : 29.500, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 29.50 \u0441\u043E\u043C", "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:55:38]POST & json_proto [22:55:38]process_json_proto [22:55:38]json parsed OK: [22:55:38]protocol is kg_v1.0 [22:55:38]action value=close_receipt [22:55:38]process_action close_receipt [22:55:38]cmd_close_receipt [22:55:38]MH_GetDate [22:55:38]Write to MH i2c: F0 00 00 3D 0B 37 [22:55:38]Write i2c OK [22:55:38]MH_I2C_Read... [22:55:38]Read from MH i2c: F0 [22:55:38]MH_I2C_Read... [22:55:38]Read from MH i2c: F0 09 00 [22:55:38]MH_I2C_Read... [22:55:38]Read from MH i2c: F0 09 00 3D 0B 00 6B F8 5C 66 8D A7 02 66 01 [22:55:38]GetLastDocTimeStamp 1717368916 [22:55:38]current date 1717368939 [22:55:38]FM_GetShiftState [22:55:38]SAM_PROTO_GetShiftState [22:55:38]wFMCommunicate request_size=4 [22:55:38]MH_SAM_APDU [22:55:38]CAPDU: 80 13 01 00 [22:55:38]Write to MH i2c: E2 08 00 3E 0B 80 13 01 00 00 00 00 00 C6 [22:55:38]Write i2c OK [22:55:38]MH_I2C_Read... [22:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:38]Read from MH i2c: E2 [22:55:38]MH_I2C_Read... [22:55:38]Read from MH i2c: E2 0E 00 [22:55:38]MH_I2C_Read... [22:55:38]Read from MH i2c: E2 0E 00 3E 0B 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 99 [22:55:38]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:55:38]wFMCommunicate OK [22:55:38]SAM_PROTO_GetShiftState done [22:55:38]FM_GetShiftState done [22:55:38]opened in 1717288520 [22:55:38]opened+sec_in_day 1717374920 [22:55:38]quantity*price = 100005 [22:55:38]sum+1 = 100006 [22:55:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 714 02.06.2024 22:55 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Дисконтная программа СУГ номер 117 сэкономлено 29.50 сом ФМ: 0000000000959414 ФД: 57887 ФПД: 261610887886654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225539&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57887&fm=261610887886654&tin=02508201610067®Number=0000000000151680&sum=100000 [22:55:39]StoreToDocumentArchive [22:55:39]shift 69 fd 57887 [22:55:39]save to /storage/0069/doc_00057887 [22:55:39]save last doc name /storage/0069/doc_00057887 to /storage/kkm_last_doc_name [22:55:39]save OK [22:55:39]Clear old archive folders... [22:55:39]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:55:39]tlvbuf is 01B17100 [22:55:39]SAM_PROTO_ClearQueue [22:55:39]wFMCommunicate request_size=4 [22:55:39]MH_SAM_APDU [22:55:39]CAPDU: 80 09 00 00 [22:55:39]Write to MH i2c: E2 08 00 4B 0B 80 09 00 00 00 00 00 00 C8 [22:55:39]Write i2c OK [22:55:39]MH_I2C_Read... [22:55:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:39]Read from MH i2c: E2 [22:55:39]MH_I2C_Read... [22:55:39]Read from MH i2c: E2 03 00 [22:55:39]MH_I2C_Read... [22:55:39]Read from MH i2c: E2 03 00 4B 0B 00 90 00 CA [22:55:39]RAPDU: 90 00 [22:55:39]wFMCommunicate OK [22:55:39]SAM_PROTO_ClearQueue done [22:55:39]KKMCreateOFDPacket [22:55:39]OFDProtocolAddRootSTLVToBuf [22:55:39]FM_MakeSignedData [22:55:39]FM_MakeSignedData [22:55:39]SAM_PROTO_SignData [22:55:39]wFMCommunicate request_size=4 [22:55:39]MH_SAM_APDU [22:55:39]CAPDU: 80 0D 01 02 [22:55:39]Write to MH i2c: E2 08 00 4C 0B 80 0D 01 02 00 00 00 00 D0 [22:55:39]Write i2c OK [22:55:39]MH_I2C_Read... [22:55:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:39]Read from MH i2c: E2 [22:55:39]MH_I2C_Read... [22:55:39]Read from MH i2c: E2 03 00 [22:55:39]MH_I2C_Read... [22:55:39]Read from MH i2c: E2 03 00 4C 0B 00 90 00 CB [22:55:39]RAPDU: 90 00 [22:55:39]wFMCommunicate OK [22:55:39]wFMCommunicate request_size=255 [22:55:39]MH_SAM_APDU [22:55:39]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 A5 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 7C 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 CA 02 00 00 F4 03 04 00 6B F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1F E2 00 00 35 04 06 00 ED EF [22:55:39]Write to MH i2c: E2 02 01 4D 0B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 A5 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 7C 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 CA 02 00 00 F4 03 04 00 6B F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1F E2 00 00 35 04 06 00 ED EF 00 00 21 [22:55:39]Write i2c OK [22:55:39]MH_I2C_Read... [22:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:40]Read from MH i2c: E2 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 03 00 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 03 00 4D 0B 00 90 00 CC [22:55:40]RAPDU: 90 00 [22:55:40]wFMCommunicate OK [22:55:40]wFMCommunicate request_size=9 [22:55:40]MH_SAM_APDU [22:55:40]CAPDU: 80 0D 02 02 04 08 0A B7 3E [22:55:40]Write to MH i2c: E2 0C 00 4E 0B 80 0D 02 02 04 00 08 0A B7 3E 00 00 E2 [22:55:40]Write i2c OK [22:55:40]MH_I2C_Read... [22:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:40]Read from MH i2c: E2 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 03 00 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 03 00 4E 0B 00 90 00 CD [22:55:40]RAPDU: 90 00 [22:55:40]wFMCommunicate OK [22:55:40]wFMCommunicate request_size=4 [22:55:40]MH_SAM_APDU [22:55:40]CAPDU: 80 0D 03 02 [22:55:40]Write to MH i2c: E2 08 00 4F 0B 80 0D 03 02 00 00 00 00 D5 [22:55:40]Write i2c OK [22:55:40]MH_I2C_Read... [22:55:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:40]Read from MH i2c: E2 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 0B 00 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 0B 00 4F 0B 00 23 31 C1 F8 58 81 89 FE 90 00 43 [22:55:40]RAPDU: 23 31 C1 F8 58 81 89 FE 90 00 [22:55:40]wFMCommunicate OK [22:55:40]SAM_PROTO_SignData done [22:55:40]FM_MakeSignedData done [22:55:40]CreateOFDProtocolMessage [22:55:40]wFMCommunicate request_size=4 [22:55:40]MH_SAM_APDU [22:55:40]CAPDU: 80 11 00 00 [22:55:40]Write to MH i2c: E2 08 00 50 0B 80 11 00 00 00 00 00 00 D5 [22:55:40]Write i2c OK [22:55:40]MH_I2C_Read... [22:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:40]Read from MH i2c: E2 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 17 00 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 17 00 50 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 28 [22:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:55:40]wFMCommunicate OK [22:55:40]CreateOFDProtocolMessage done [22:55:40]OFDSenderStorePacket 57887 [22:55:40]StoreOFDPacket docnum=57887 [22:55:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 8E 1B 06 01 8A 9E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 A5 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 7C 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 CA 02 00 00 F4 03 04 00 6B F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1F E2 00 00 35 04 06 00 ED EF 08 0A B7 3E 23 31 C1 F8 58 81 89 FE [22:55:40]CheckFolder [22:55:40]dirname=/storage/ofd_packets [22:55:40]CheckFolder done [22:55:40]ProducePacketName [22:55:40]name=ofd_packets/00057887 [22:55:40]NVStorageSaveData ofd_packets/00057887 [22:55:40]File name is /storage/ofd_packets/00057887 [22:55:40]Write 300 bytes [22:55:40]NVStorageSaveData done [22:55:40]OFDSenderStorePacket done [22:55:40]KKMCreateOFDPacket done [22:55:40]NVStorageSaveData kkm_last_timestamp [22:55:40]File name is /storage/kkm_last_timestamp [22:55:40]Write 4 bytes [22:55:40]NVStorageSaveData done [22:55:40]ExternCall_PrintAddStr [22:55:40]wPrintStart [22:55:40]Write to MH i2c: 01 00 00 51 0B 5C [22:55:40]Write i2c OK [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: 01 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: 01 07 00 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: 01 07 00 51 0B 00 00 00 00 00 FF 0F 71 [22:55:40]RasterBufferAndPrint [22:55:40]line Счет N : (1)543228 [22:55:40]line ИНН: 02508201610067 [22:55:40]line Контрольно-Кассовый Чек [22:55:40]line ПРОДАЖА [22:55:40]line ТРК (МРК, ГНК) : 71 [22:55:40]line Товар: 2711190000 [22:55:40]line ГАЗ-К-5 [22:55:40]line 29.500 * 33.90 [22:55:40]line = 1000.05 [22:55:40]line НДС 12% НСП 1% [22:55:40]line > о реализуемом товаре [22:55:40]line ОКРУГЛЕНИЕ: -0.05 [22:55:40]line ИТОГО: 1000.00 [22:55:40]line Внесено: 1000.00 [22:55:40]line СДАЧА: 0.00 [22:55:40]line НСП 1% : 8.85 [22:55:40]line НДС 12% : 106.20 [22:55:40]line Наличными: 1000.00 [22:55:40]line Безнал.: 0.00 [22:55:40]line Место: АЗС № 117 "Партнер Нефть" [22:55:40]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:55:40]line СНО: Общий режим [22:55:40]line Чек 714 02.06.2024 22:55 [22:55:40]line Смена: 69 ФФД: 1.0 [22:55:40]line ЗНМ: 0300000048 [22:55:40]line РНМ: 0000000000151680 [22:55:40]line Версия ККМ: v1.0 [22:55:40]line [22:55:40]line Дисконтная программа [22:55:40]line СУГ [22:55:40]line номер 117 [22:55:40]line сэкономлено 29.50 сом [22:55:40]line ФМ: 0000000000959414 [22:55:40]line ФД: 57887 [22:55:40]line ФПД: 261610887886654 [22:55:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225539&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57887&fm=261610887886654&tin=02508201610067®Number=0000000000151680&sum=100000 [22:55:40]OFD Sender: Processing packet 57887 [packets to send 50, broken 49] [22:55:40]ProducePacketName [22:55:40]name=ofd_packets/00057887 [22:55:40]OFD Sender: To server: pG, [22:55:40]CommunicateWithHost lk.salyk.kg:30040 [22:55:40]ConnectInit lk.salyk.kg [22:55:40]written 0, free lines is 4095 [22:55:40]Connected sock=10 [22:55:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 8E 1B 06 01 8A 9E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 A5 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 7C 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 CA 02 00 00 F4 03 04 00 6B F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1F E2 00 00 35 04 06 00 ED EF 08 0A B7 3E 23 31 C1 F8 58 81 89 FE [22:55:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 15 74 47 00 C0 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 1F E2 00 00 F4 03 04 00 3B A3 5C 66 B6 04 01 00 00 4C E8 2A D0 B3 A3 23 59 [22:55:40]CommunicateWithHost err = 0 [22:55:40]CheckOFDResponse [22:55:40]1017 (14) - 77093643461234 [22:55:40]1041 (16) - 0000000000959414 [22:55:40]1040 (4) - 57887 [22:55:40]1012 (4) - 02.06.2024 16:52 [22:55:40]1206 (1) - 0 [22:55:40]OFD Sender: Remove packet 57887 [22:55:40]ProducePacketName [22:55:40]name=ofd_packets/00057887 [22:55:40]NVStorageDeleteData [22:55:41]Write to MH i2c: 01 00 00 81 0B 8C [22:55:41]Write i2c OK [22:55:41]MH_I2C_Read... [22:55:41]Read from MH i2c: 01 [22:55:41]MH_I2C_Read... [22:55:41]Read from MH i2c: 01 07 00 [22:55:41]MH_I2C_Read... [22:55:41]Read from MH i2c: 01 07 00 81 0B 00 00 00 00 00 42 0C E1 [22:55:41]RasterBufferAndPrint [22:55:41]line [22:55:41]line [22:55:41]line [22:55:41]line [22:55:41]line [22:55:41]written 0, free lines is 3143 [22:55:41]MH_Cut [22:55:41]Write to MH i2c: D1 01 00 88 0B 01 65 [22:55:41]Write i2c OK [22:55:41]MH_I2C_Read... [22:55:41]Read from MH i2c: D1 [22:55:41]MH_I2C_Read... [22:55:41]Read from MH i2c: D1 01 00 [22:55:41]MH_I2C_Read... [22:55:41]Read from MH i2c: D1 01 00 88 0B 00 64 [22:55:41]Write to MH i2c: 01 00 00 89 0B 94 [22:55:41]Write i2c OK [22:55:41]MH_I2C_Read... [22:55:41]OFD Sender: No OFD packet to send [22:55:42]*** Cut start [22:55:42]*** Partial cut [22:55:42]*** CUTSNS_PIN = 1 [22:55:42]*** CUTSNS_PIN = 0 [22:55:42]*** Brake cut motor [22:55:42]Read from MH i2c: 01 [22:55:42]MH_I2C_Read... [22:55:42]*** Stop cut motor [22:55:42]*** Cut end [22:55:42]Read from MH i2c: 01 07 00 [22:55:42]MH_I2C_Read... [22:55:42]Read from MH i2c: 01 07 00 89 0B 00 00 00 00 00 FF 0F A9 [22:55:42]process_action close_receipt done [22:55:42]requested_data is exist [22:55:42]produce_requested_data [22:55:42]requested_item fm.sn is exist - process it [22:55:42]wFMCommunicate request_size=4 [22:55:42]MH_SAM_APDU [22:55:42]CAPDU: 80 11 00 00 [22:55:42]Write to MH i2c: E2 08 00 8A 0B 80 11 00 00 00 00 00 00 0F [22:55:42]Write i2c OK [22:55:42]MH_I2C_Read... [22:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:42]Read from MH i2c: E2 [22:55:42]MH_I2C_Read... [22:55:42]Read from MH i2c: E2 17 00 [22:55:42]MH_I2C_Read... [22:55:42]Read from MH i2c: E2 17 00 8A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 62 [22:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:55:42]wFMCommunicate OK [22:55:42]requested_item fd.num is exist - process it [22:55:42]SAM_PROTO_GetFieldsCounters [22:55:42]wFMCommunicate request_size=4 [22:55:42]MH_SAM_APDU [22:55:42]CAPDU: 80 13 00 00 [22:55:42]Write to MH i2c: E2 08 00 8B 0B 80 13 00 00 00 00 00 00 12 [22:55:42]Write i2c OK [22:55:42]MH_I2C_Read... [22:55:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:43]Read from MH i2c: E2 [22:55:43]MH_I2C_Read... [22:55:43]Read from MH i2c: E2 62 00 [22:55:43]MH_I2C_Read... [22:55:43]Read from MH i2c: E2 62 00 8B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 1F E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 CA 02 00 00 5E 04 04 00 CA 02 00 00 57 04 04 00 CB 02 00 00 19 04 04 00 00 00 00 00 90 00 D9 [22:55:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 1F E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 CA 02 00 00 5E 04 04 00 CA 02 00 00 57 04 04 00 CB 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:43]wFMCommunicate OK [22:55:43]SAM_PROTO_GetFieldsCounters done [22:55:43]requested_item shift.num is exist - process it [22:55:43]requested_item shift.opened is exist - process it [22:55:43]req_shift_opened [22:55:43]FM_GetShiftState [22:55:43]SAM_PROTO_GetShiftState [22:55:43]wFMCommunicate request_size=4 [22:55:43]MH_SAM_APDU [22:55:43]CAPDU: 80 13 01 00 [22:55:43]Write to MH i2c: E2 08 00 8C 0B 80 13 01 00 00 00 00 00 14 [22:55:43]Write i2c OK [22:55:43]MH_I2C_Read... [22:55:43]Read from MH i2c: E2 [22:55:43]MH_I2C_Read... [22:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:43]Read from MH i2c: E2 0E 00 [22:55:43]MH_I2C_Read... [22:55:43]Read from MH i2c: E2 0E 00 8C 0B 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 E7 [22:55:43]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:55:43]wFMCommunicate OK [22:55:43]SAM_PROTO_GetShiftState done [22:55:43]FM_GetShiftState done [22:55:43]req_shift_opened done [22:55:43]requested_item shift.open_date is exist - process it [22:55:43]req_shift_open_date [22:55:43]req_shift_open_date done [22:55:43]produce_requested_data done [22:55:43]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57887,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:55:43]process_action_free close_receipt [22:55:43]json_value_free [22:55:43]json_value_free done [22:55:43]process_json_proto returns [22:55:43]Send response to host [22:55:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57887,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:55:43]free response buf [22:55:43]execute_script done [22:55:43]execute_script returns [22:55:43]free content buf [22:55:43]Sock 9.Close socket [22:55:43]Sock 9.Thread stoped [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:03]accept exits with 8 [22:57:03]New connection [22:57:03]New thread 3066592612 created [22:57:03]Thread 3066735972 joined [22:57:03]Waiting for new connection... [22:57:03] Sock 8.Parse request [22:57:03]Sock 8.Check first char [22:57:03]Sock 8.First char is OK [22:57:03]request: POST /json_proto HTTP/1.0 [22:57:03]Method: POST [22:57:03]URL: /json_proto [22:57:03]Method is POST - this is cgi request [22:57:03]url: /json_proto [22:57:03]query_string will be loaded in cgi processing [22:57:03]execute_cgi json_proto POST (null) [22:57:03]execute_cgi path=json_proto method=POST [22:57:03]POST find Content-Length [22:57:03]Host: 172.17.60.68:8080 [22:57:03]Content-Length: 800 [22:57:03]Content-Type: application/json [22:57:03] [22:57:03]POST finish read [22:57:03]Found Content-Length = 800 [22:57:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543232", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:03]execute_script... [22:57:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543232", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:03]POST & json_proto [22:57:03]process_json_proto [22:57:03]json parsed OK: [22:57:03]protocol is kg_v1.0 [22:57:03]action value=close_receipt [22:57:03]process_action close_receipt [22:57:03]cmd_close_receipt [22:57:03]MH_GetDate [22:57:03]Write to MH i2c: F0 00 00 8D 0B 87 [22:57:03]Write i2c OK [22:57:03]MH_I2C_Read... [22:57:03]Read from MH i2c: F0 [22:57:03]MH_I2C_Read... [22:57:03]Read from MH i2c: F0 09 00 [22:57:03]MH_I2C_Read... [22:57:03]Read from MH i2c: F0 09 00 8D 0B 00 C0 F8 5C 66 8D A7 02 66 A6 [22:57:03]GetLastDocTimeStamp 1717368939 [22:57:03]current date 1717369024 [22:57:03]FM_GetShiftState [22:57:03]SAM_PROTO_GetShiftState [22:57:03]wFMCommunicate request_size=4 [22:57:03]MH_SAM_APDU [22:57:03]CAPDU: 80 13 01 00 [22:57:03]Write to MH i2c: E2 08 00 8E 0B 80 13 01 00 00 00 00 00 16 [22:57:03]Write i2c OK [22:57:03]MH_I2C_Read... [22:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:03]Read from MH i2c: E2 [22:57:03]MH_I2C_Read... [22:57:03]Read from MH i2c: E2 0E 00 [22:57:03]MH_I2C_Read... [22:57:03]Read from MH i2c: E2 0E 00 8E 0B 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 E9 [22:57:03]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:57:03]wFMCommunicate OK [22:57:03]SAM_PROTO_GetShiftState done [22:57:03]FM_GetShiftState done [22:57:03]opened in 1717288520 [22:57:03]opened+sec_in_day 1717374920 [22:57:03]quantity*price = 30012 [22:57:03]sum+1 = 30014 [22:57:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 715 02.06.2024 22:57 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57888 ФПД: 61358968755994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225704&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57888&fm=61358968755994&tin=02508201610067®Number=0000000000151680&sum=30013 [22:57:04]StoreToDocumentArchive [22:57:04]shift 69 fd 57888 [22:57:04]save to /storage/0069/doc_00057888 [22:57:04]save last doc name /storage/0069/doc_00057888 to /storage/kkm_last_doc_name [22:57:04]save OK [22:57:04]Clear old archive folders... [22:57:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:57:04]tlvbuf is 0187F810 [22:57:04]SAM_PROTO_ClearQueue [22:57:04]wFMCommunicate request_size=4 [22:57:04]MH_SAM_APDU [22:57:04]CAPDU: 80 09 00 00 [22:57:04]Write to MH i2c: E2 08 00 9B 0B 80 09 00 00 00 00 00 00 18 [22:57:04]Write i2c OK [22:57:04]MH_I2C_Read... [22:57:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:04]Read from MH i2c: E2 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 03 00 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 03 00 9B 0B 00 90 00 1A [22:57:04]RAPDU: 90 00 [22:57:04]wFMCommunicate OK [22:57:04]SAM_PROTO_ClearQueue done [22:57:04]KKMCreateOFDPacket [22:57:04]OFDProtocolAddRootSTLVToBuf [22:57:04]FM_MakeSignedData [22:57:04]FM_MakeSignedData [22:57:04]SAM_PROTO_SignData [22:57:04]wFMCommunicate request_size=4 [22:57:04]MH_SAM_APDU [22:57:04]CAPDU: 80 0D 01 02 [22:57:04]Write to MH i2c: E2 08 00 9C 0B 80 0D 01 02 00 00 00 00 20 [22:57:04]Write i2c OK [22:57:04]MH_I2C_Read... [22:57:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:04]Read from MH i2c: E2 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 03 00 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 03 00 9C 0B 00 90 00 1B [22:57:04]RAPDU: 90 00 [22:57:04]wFMCommunicate OK [22:57:04]wFMCommunicate request_size=255 [22:57:04]MH_SAM_APDU [22:57:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 CB 02 00 00 F4 03 04 00 C0 F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 20 E2 00 00 35 04 06 00 37 [22:57:04]Write to MH i2c: E2 02 01 9D 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 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 CB 02 00 00 F4 03 04 00 C0 F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 20 E2 00 00 35 04 06 00 37 00 00 4D [22:57:04]Write i2c OK [22:57:04]MH_I2C_Read... [22:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:04]Read from MH i2c: E2 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 03 00 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 03 00 9D 0B 00 90 00 1C [22:57:04]RAPDU: 90 00 [22:57:04]wFMCommunicate OK [22:57:04]wFMCommunicate request_size=10 [22:57:04]MH_SAM_APDU [22:57:04]CAPDU: 80 0D 02 02 05 CE 3F 89 57 1A [22:57:04]Write to MH i2c: E2 0D 00 9E 0B 80 0D 02 02 05 00 CE 3F 89 57 1A 00 00 34 [22:57:04]Write i2c OK [22:57:04]MH_I2C_Read... [22:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:04]Read from MH i2c: E2 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 03 00 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 03 00 9E 0B 00 90 00 1D [22:57:04]RAPDU: 90 00 [22:57:04]wFMCommunicate OK [22:57:04]wFMCommunicate request_size=4 [22:57:04]MH_SAM_APDU [22:57:04]CAPDU: 80 0D 03 02 [22:57:04]Write to MH i2c: E2 08 00 9F 0B 80 0D 03 02 00 00 00 00 25 [22:57:04]Write i2c OK [22:57:04]MH_I2C_Read... [22:57:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:04]Read from MH i2c: E2 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 0B 00 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 0B 00 9F 0B 00 60 61 77 E7 63 B6 AF B9 90 00 C6 [22:57:04]RAPDU: 60 61 77 E7 63 B6 AF B9 90 00 [22:57:04]wFMCommunicate OK [22:57:04]SAM_PROTO_SignData done [22:57:04]FM_MakeSignedData done [22:57:04]CreateOFDProtocolMessage [22:57:04]wFMCommunicate request_size=4 [22:57:04]MH_SAM_APDU [22:57:04]CAPDU: 80 11 00 00 [22:57:04]Write to MH i2c: E2 08 00 A0 0B 80 11 00 00 00 00 00 00 25 [22:57:04]Write i2c OK [22:57:04]MH_I2C_Read... [22:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:04]Read from MH i2c: E2 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 17 00 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 17 00 A0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 78 [22:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:57:04]wFMCommunicate OK [22:57:04]CreateOFDProtocolMessage done [22:57:04]OFDSenderStorePacket 57888 [22:57:04]StoreOFDPacket docnum=57888 [22:57:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 11 8F 07 01 D3 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 CB 02 00 00 F4 03 04 00 C0 F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 20 E2 00 00 35 04 06 00 37 CE 3F 89 57 1A 60 61 77 E7 63 B6 AF B9 [22:57:04]CheckFolder [22:57:04]dirname=/storage/ofd_packets [22:57:04]CheckFolder done [22:57:04]ProducePacketName [22:57:04]name=ofd_packets/00057888 [22:57:04]NVStorageSaveData ofd_packets/00057888 [22:57:04]File name is /storage/ofd_packets/00057888 [22:57:04]Write 301 bytes [22:57:04]NVStorageSaveData done [22:57:04]OFDSenderStorePacket done [22:57:04]KKMCreateOFDPacket done [22:57:04]NVStorageSaveData kkm_last_timestamp [22:57:04]File name is /storage/kkm_last_timestamp [22:57:04]Write 4 bytes [22:57:04]NVStorageSaveData done [22:57:04]ExternCall_PrintAddStr [22:57:04]wPrintStart [22:57:04]Write to MH i2c: 01 00 00 A1 0B AC [22:57:04]Write i2c OK [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: 01 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: 01 07 00 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: 01 07 00 A1 0B 00 00 00 00 00 FF 0F C1 [22:57:04]RasterBufferAndPrint [22:57:04]line Счет N : (1)543232 [22:57:04]line ИНН: 02508201610067 [22:57:04]line Контрольно-Кассовый Чек [22:57:04]line ПРОДАЖА [22:57:04]line ТРК (МРК, ГНК) : 22 [22:57:04]line Товар: 2710124130 [22:57:04]line Аи-92-К-5 [22:57:04]line 4.520 * 66.40 [22:57:04]line = 300.13 [22:57:04]line НДС 12% НСП 1% [22:57:04]line > о реализуемом товаре [22:57:04]line ИТОГО: 300.13 [22:57:04]line НСП 1% : 2.66 [22:57:04]line НДС 12% : 31.87 [22:57:04]line Наличными: 0.00 [22:57:04]line Безнал.: 300.13 [22:57:04]line Место: АЗС № 117 "Партнер Нефть" [22:57:04]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:57:04]line СНО: Общий режим [22:57:04]line Чек 715 02.06.2024 22:57 [22:57:04]line Смена: 69 ФФД: 1.0 [22:57:04]line ЗНМ: 0300000048 [22:57:04]line РНМ: 0000000000151680 [22:57:04]line Версия ККМ: v1.0 [22:57:04]line Платежная система: O! деньги [22:57:04]line ФМ: 0000000000959414 [22:57:04]line ФД: 57888 [22:57:04]line ФПД: 61358968755994 [22:57:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225704&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57888&fm=61358968755994&tin=02508201610067®Number=0000000000151680&sum=30013 [22:57:05]OFD Sender: Processing packet 57888 [packets to send 50, broken 49] [22:57:05]ProducePacketName [22:57:05]name=ofd_packets/00057888 [22:57:05]OFD Sender: To server: pG, [22:57:05]CommunicateWithHost lk.salyk.kg:30040 [22:57:05]ConnectInit lk.salyk.kg [22:57:05]written 0, free lines is 4095 [22:57:05]Connected sock=10 [22:57:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 11 8F 07 01 D3 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 CB 02 00 00 F4 03 04 00 C0 F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 20 E2 00 00 35 04 06 00 37 CE 3F 89 57 1A 60 61 77 E7 63 B6 AF B9 [22:57:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 32 5C 47 00 3B A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 20 E2 00 00 F4 03 04 00 8F A3 5C 66 B6 04 01 00 00 9D A5 E2 7F 0F 7E 9B D7 [22:57:05]CommunicateWithHost err = 0 [22:57:05]CheckOFDResponse [22:57:05]1017 (14) - 77093643461234 [22:57:05]1041 (16) - 0000000000959414 [22:57:05]1040 (4) - 57888 [22:57:05]1012 (4) - 02.06.2024 16:53 [22:57:05]1206 (1) - 0 [22:57:05]OFD Sender: Remove packet 57888 [22:57:05]ProducePacketName [22:57:05]name=ofd_packets/00057888 [22:57:05]NVStorageDeleteData [22:57:05]Write to MH i2c: 01 00 00 CB 0B D6 [22:57:05]Write i2c OK [22:57:05]MH_I2C_Read... [22:57:05]Read from MH i2c: 01 [22:57:05]MH_I2C_Read... [22:57:05]Read from MH i2c: 01 07 00 [22:57:05]MH_I2C_Read... [22:57:05]Read from MH i2c: 01 07 00 CB 0B 00 00 00 00 00 C9 0C B2 [22:57:05]RasterBufferAndPrint [22:57:05]line [22:57:05]line [22:57:05]line [22:57:05]line [22:57:05]line [22:57:05]written 0, free lines is 3279 [22:57:05]MH_Cut [22:57:05]Write to MH i2c: D1 01 00 D2 0B 01 AF [22:57:05]Write i2c OK [22:57:05]MH_I2C_Read... [22:57:05]Read from MH i2c: D1 [22:57:05]MH_I2C_Read... [22:57:05]Read from MH i2c: D1 01 00 [22:57:05]MH_I2C_Read... [22:57:05]Read from MH i2c: D1 01 00 D2 0B 00 AE [22:57:05]Write to MH i2c: 01 00 00 D3 0B DE [22:57:05]Write i2c OK [22:57:05]MH_I2C_Read... [22:57:06]OFD Sender: No OFD packet to send [22:57:06]*** Cut start [22:57:06]*** Partial cut [22:57:06]*** CUTSNS_PIN = 1 [22:57:06]*** CUTSNS_PIN = 0 [22:57:06]*** Brake cut motor [22:57:07]Read from MH i2c: 01 [22:57:07]MH_I2C_Read... [22:57:07]*** Stop cut motor [22:57:07]*** Cut end [22:57:07]Read from MH i2c: 01 07 00 [22:57:07]MH_I2C_Read... [22:57:07]Read from MH i2c: 01 07 00 D3 0B 00 00 00 00 00 FF 0F F3 [22:57:07]process_action close_receipt done [22:57:07]requested_data is exist [22:57:07]produce_requested_data [22:57:07]requested_item fm.sn is exist - process it [22:57:07]wFMCommunicate request_size=4 [22:57:07]MH_SAM_APDU [22:57:07]CAPDU: 80 11 00 00 [22:57:07]Write to MH i2c: E2 08 00 D4 0B 80 11 00 00 00 00 00 00 59 [22:57:07]Write i2c OK [22:57:07]MH_I2C_Read... [22:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:07]Read from MH i2c: E2 [22:57:07]MH_I2C_Read... [22:57:07]Read from MH i2c: E2 17 00 [22:57:07]MH_I2C_Read... [22:57:07]Read from MH i2c: E2 17 00 D4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 AC [22:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:57:07]wFMCommunicate OK [22:57:07]requested_item fd.num is exist - process it [22:57:07]SAM_PROTO_GetFieldsCounters [22:57:07]wFMCommunicate request_size=4 [22:57:07]MH_SAM_APDU [22:57:07]CAPDU: 80 13 00 00 [22:57:07]Write to MH i2c: E2 08 00 D5 0B 80 13 00 00 00 00 00 00 5C [22:57:07]Write i2c OK [22:57:07]MH_I2C_Read... [22:57:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:07]Read from MH i2c: E2 [22:57:07]MH_I2C_Read... [22:57:07]Read from MH i2c: E2 62 00 [22:57:07]MH_I2C_Read... [22:57:07]Read from MH i2c: E2 62 00 D5 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 20 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 CB 02 00 00 5E 04 04 00 CB 02 00 00 57 04 04 00 CC 02 00 00 19 04 04 00 00 00 00 00 90 00 27 [22:57:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 20 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 CB 02 00 00 5E 04 04 00 CB 02 00 00 57 04 04 00 CC 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:57:07]wFMCommunicate OK [22:57:07]SAM_PROTO_GetFieldsCounters done [22:57:07]requested_item shift.num is exist - process it [22:57:07]requested_item shift.opened is exist - process it [22:57:07]req_shift_opened [22:57:07]FM_GetShiftState [22:57:07]SAM_PROTO_GetShiftState [22:57:07]wFMCommunicate request_size=4 [22:57:07]MH_SAM_APDU [22:57:07]CAPDU: 80 13 01 00 [22:57:07]Write to MH i2c: E2 08 00 D6 0B 80 13 01 00 00 00 00 00 5E [22:57:07]Write i2c OK [22:57:07]MH_I2C_Read... [22:57:07]Read from MH i2c: E2 [22:57:07]MH_I2C_Read... [22:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:07]Read from MH i2c: E2 0E 00 [22:57:07]MH_I2C_Read... [22:57:07]Read from MH i2c: E2 0E 00 D6 0B 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 31 [22:57:07]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:57:07]wFMCommunicate OK [22:57:07]SAM_PROTO_GetShiftState done [22:57:07]FM_GetShiftState done [22:57:07]req_shift_opened done [22:57:07]requested_item shift.open_date is exist - process it [22:57:07]req_shift_open_date [22:57:07]req_shift_open_date done [22:57:07]produce_requested_data done [22:57:07]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57888,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:57:07]process_action_free close_receipt [22:57:07]json_value_free [22:57:07]json_value_free done [22:57:07]process_json_proto returns [22:57:07]Send response to host [22:57:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57888,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:57:07]free response buf [22:57:07]execute_script done [22:57:07]execute_script returns [22:57:07]free content buf [22:57:07]Sock 8.Close socket [22:57:07]Sock 8.Thread stoped [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:33]accept exits with 9 [22:57:33]New connection [22:57:33]New thread 3066735972 created [22:57:33]Thread 3066592612 joined [22:57:33]Waiting for new connection... [22:57:33] Sock 9.Parse request [22:57:33]Sock 9.Check first char [22:57:33]Sock 9.First char is OK [22:57:33]request: POST /json_proto HTTP/1.0 [22:57:33]Method: POST [22:57:33]URL: /json_proto [22:57:33]Method is POST - this is cgi request [22:57:33]url: /json_proto [22:57:33]query_string will be loaded in cgi processing [22:57:33]execute_cgi json_proto POST (null) [22:57:33]execute_cgi path=json_proto method=POST [22:57:33]POST find Content-Length [22:57:33]Host: 172.17.60.68:8080 [22:57:33]Content-Length: 836 [22:57:33]Content-Type: application/json [22:57:33] [22:57:33]POST finish read [22:57:33]Found Content-Length = 836 [22:57:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 22.260, "sum" : 1500.32, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:33]execute_script... [22:57:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 22.260, "sum" : 1500.32, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:33]POST & json_proto [22:57:33]process_json_proto [22:57:33]json parsed OK: [22:57:33]protocol is kg_v1.0 [22:57:33]action value=close_receipt [22:57:33]process_action close_receipt [22:57:33]cmd_close_receipt [22:57:33]MH_GetDate [22:57:33]Write to MH i2c: F0 00 00 D7 0B D1 [22:57:33]Write i2c OK [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: F0 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: F0 09 00 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: F0 09 00 D7 0B 00 DE F8 5C 66 8D A7 02 66 0E [22:57:33]GetLastDocTimeStamp 1717369024 [22:57:33]current date 1717369054 [22:57:33]FM_GetShiftState [22:57:33]SAM_PROTO_GetShiftState [22:57:33]wFMCommunicate request_size=4 [22:57:33]MH_SAM_APDU [22:57:33]CAPDU: 80 13 01 00 [22:57:33]Write to MH i2c: E2 08 00 D8 0B 80 13 01 00 00 00 00 00 60 [22:57:33]Write i2c OK [22:57:33]MH_I2C_Read... [22:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:33]Read from MH i2c: E2 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: E2 0E 00 [22:57:33]MH_I2C_Read... [22:57:33]Read from MH i2c: E2 0E 00 D8 0B 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 33 [22:57:33]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:57:33]wFMCommunicate OK [22:57:33]SAM_PROTO_GetShiftState done [22:57:33]FM_GetShiftState done [22:57:33]opened in 1717288520 [22:57:33]opened+sec_in_day 1717374920 [22:57:33]quantity*price = 150032 [22:57:33]sum+1 = 150033 [22:57:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 716 02.06.2024 22:57 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000000959414 ФД: 57889 ФПД: 24699186557960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225734&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57889&fm=24699186557960&tin=02508201610067®Number=0000000000151680&sum=150032 [22:57:35]StoreToDocumentArchive [22:57:35]shift 69 fd 57889 [22:57:35]save to /storage/0069/doc_00057889 [22:57:35]save last doc name /storage/0069/doc_00057889 to /storage/kkm_last_doc_name [22:57:35]save OK [22:57:35]Clear old archive folders... [22:57:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:57:35]tlvbuf is 0187F170 [22:57:35]SAM_PROTO_ClearQueue [22:57:35]wFMCommunicate request_size=4 [22:57:35]MH_SAM_APDU [22:57:35]CAPDU: 80 09 00 00 [22:57:35]Write to MH i2c: E2 08 00 E5 0B 80 09 00 00 00 00 00 00 62 [22:57:35]Write i2c OK [22:57:35]MH_I2C_Read... [22:57:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:35]Read from MH i2c: E2 [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: E2 03 00 [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: E2 03 00 E5 0B 00 90 00 64 [22:57:35]RAPDU: 90 00 [22:57:35]wFMCommunicate OK [22:57:35]SAM_PROTO_ClearQueue done [22:57:35]KKMCreateOFDPacket [22:57:35]OFDProtocolAddRootSTLVToBuf [22:57:35]FM_MakeSignedData [22:57:35]FM_MakeSignedData [22:57:35]SAM_PROTO_SignData [22:57:35]wFMCommunicate request_size=4 [22:57:35]MH_SAM_APDU [22:57:35]CAPDU: 80 0D 01 02 [22:57:35]Write to MH i2c: E2 08 00 E6 0B 80 0D 01 02 00 00 00 00 6A [22:57:35]Write i2c OK [22:57:35]MH_I2C_Read... [22:57:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:35]Read from MH i2c: E2 [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: E2 03 00 [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: E2 03 00 E6 0B 00 90 00 65 [22:57:35]RAPDU: 90 00 [22:57:35]wFMCommunicate OK [22:57:35]wFMCommunicate request_size=255 [22:57:35]MH_SAM_APDU [22:57:35]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 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 02 00 00 F4 03 04 00 DE F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 21 E2 00 00 35 04 06 00 [22:57:35]Write to MH i2c: E2 02 01 E7 0B 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 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 02 00 00 F4 03 04 00 DE F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 21 E2 00 00 35 04 06 00 00 00 37 [22:57:35]Write i2c OK [22:57:35]MH_I2C_Read... [22:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:35]Read from MH i2c: E2 [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: E2 03 00 [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: E2 03 00 E7 0B 00 90 00 66 [22:57:35]RAPDU: 90 00 [22:57:35]wFMCommunicate OK [22:57:35]wFMCommunicate request_size=11 [22:57:35]MH_SAM_APDU [22:57:35]CAPDU: 80 0D 02 02 06 16 76 BA 3D B4 08 [22:57:35]Write to MH i2c: E2 0E 00 E8 0B 80 0D 02 02 06 00 16 76 BA 3D B4 08 00 00 B8 [22:57:35]Write i2c OK [22:57:35]MH_I2C_Read... [22:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:35]Read from MH i2c: E2 [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: E2 03 00 [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: E2 03 00 E8 0B 00 90 00 67 [22:57:35]RAPDU: 90 00 [22:57:35]wFMCommunicate OK [22:57:35]wFMCommunicate request_size=4 [22:57:35]MH_SAM_APDU [22:57:35]CAPDU: 80 0D 03 02 [22:57:35]Write to MH i2c: E2 08 00 E9 0B 80 0D 03 02 00 00 00 00 6F [22:57:35]Write i2c OK [22:57:35]MH_I2C_Read... [22:57:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:35]Read from MH i2c: E2 [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: E2 0B 00 [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: E2 0B 00 E9 0B 00 BC 50 B1 D9 BF 0B 84 EE 90 00 42 [22:57:35]RAPDU: BC 50 B1 D9 BF 0B 84 EE 90 00 [22:57:35]wFMCommunicate OK [22:57:35]SAM_PROTO_SignData done [22:57:35]FM_MakeSignedData done [22:57:35]CreateOFDProtocolMessage [22:57:35]wFMCommunicate request_size=4 [22:57:35]MH_SAM_APDU [22:57:35]CAPDU: 80 11 00 00 [22:57:35]Write to MH i2c: E2 08 00 EA 0B 80 11 00 00 00 00 00 00 6F [22:57:35]Write i2c OK [22:57:35]MH_I2C_Read... [22:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:35]Read from MH i2c: E2 [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: E2 17 00 [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: E2 17 00 EA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 C2 [22:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:57:35]wFMCommunicate OK [22:57:35]CreateOFDProtocolMessage done [22:57:35]OFDSenderStorePacket 57889 [22:57:35]StoreOFDPacket docnum=57889 [22:57:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 5E 61 08 01 70 D1 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 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 02 00 00 F4 03 04 00 DE F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 21 E2 00 00 35 04 06 00 16 76 BA 3D B4 08 BC 50 B1 D9 BF 0B 84 EE [22:57:35]CheckFolder [22:57:35]dirname=/storage/ofd_packets [22:57:35]CheckFolder done [22:57:35]ProducePacketName [22:57:35]name=ofd_packets/00057889 [22:57:35]NVStorageSaveData ofd_packets/00057889 [22:57:35]File name is /storage/ofd_packets/00057889 [22:57:35]Write 302 bytes [22:57:35]NVStorageSaveData done [22:57:35]OFDSenderStorePacket done [22:57:35]KKMCreateOFDPacket done [22:57:35]NVStorageSaveData kkm_last_timestamp [22:57:35]File name is /storage/kkm_last_timestamp [22:57:35]Write 4 bytes [22:57:35]NVStorageSaveData done [22:57:35]ExternCall_PrintAddStr [22:57:35]wPrintStart [22:57:35]Write to MH i2c: 01 00 00 EB 0B F6 [22:57:35]Write i2c OK [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: 01 [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: 01 07 00 [22:57:35]MH_I2C_Read... [22:57:35]Read from MH i2c: 01 07 00 EB 0B 00 00 00 00 00 FF 0F 0B [22:57:35]RasterBufferAndPrint [22:57:35]line Счет N : (1)543233 [22:57:35]line ИНН: 02508201610067 [22:57:35]line Контрольно-Кассовый Чек [22:57:35]line ПРОДАЖА [22:57:35]line ТРК (МРК, ГНК) : 14 [22:57:35]line Товар: 2710124130 [22:57:35]line SUPER 92-К-5 [22:57:35]line 22.260 * 67.40 [22:57:35]line = 1500.32 [22:57:35]line НДС 12% НСП 1% [22:57:35]line > о реализуемом товаре [22:57:35]line ИТОГО: 1500.32 [22:57:35]line НСП 1% : 13.28 [22:57:35]line НДС 12% : 159.33 [22:57:35]line Наличными: 0.00 [22:57:35]line Безнал.: 1500.32 [22:57:35]line Место: АЗС № 117 "Партнер Нефть" [22:57:35]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [22:57:35]line СНО: Общий режим [22:57:35]line Чек 716 02.06.2024 22:57 [22:57:35]line Смена: 69 ФФД: 1.0 [22:57:35]line ЗНМ: 0300000048 [22:57:35]line РНМ: 0000000000151680 [22:57:35]line Версия ККМ: v1.0 [22:57:35]line Платежная система: АКБ Кыргызстан [22:57:35]line ФМ: 0000000000959414 [22:57:35]line ФД: 57889 [22:57:35]line ФПД: 24699186557960 [22:57:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225734&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57889&fm=24699186557960&tin=02508201610067®Number=0000000000151680&sum=150032 [22:57:35]OFD Sender: Processing packet 57889 [packets to send 50, broken 49] [22:57:35]ProducePacketName [22:57:35]name=ofd_packets/00057889 [22:57:35]OFD Sender: To server: pG, [22:57:35]CommunicateWithHost lk.salyk.kg:30040 [22:57:35]ConnectInit lk.salyk.kg [22:57:35]written 0, free lines is 4095 [22:57:36]Connected sock=10 [22:57:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 5E 61 08 01 70 D1 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 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 02 00 00 F4 03 04 00 DE F8 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 21 E2 00 00 35 04 06 00 16 76 BA 3D B4 08 BC 50 B1 D9 BF 0B 84 EE [22:57:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 E4 70 47 00 AC BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 21 E2 00 00 F4 03 04 00 AE A3 5C 66 B6 04 01 00 00 13 DC 10 4C 90 1D B6 D9 [22:57:36]CommunicateWithHost err = 0 [22:57:36]CheckOFDResponse [22:57:36]1017 (14) - 77093643461234 [22:57:36]1041 (16) - 0000000000959414 [22:57:36]1040 (4) - 57889 [22:57:36]1012 (4) - 02.06.2024 16:54 [22:57:36]1206 (1) - 0 [22:57:36]OFD Sender: Remove packet 57889 [22:57:36]ProducePacketName [22:57:36]name=ofd_packets/00057889 [22:57:36]NVStorageDeleteData [22:57:36]Write to MH i2c: 01 00 00 15 0C 21 [22:57:36]Write i2c OK [22:57:36]MH_I2C_Read... [22:57:36]Read from MH i2c: 01 [22:57:36]MH_I2C_Read... [22:57:36]Read from MH i2c: 01 07 00 [22:57:36]MH_I2C_Read... [22:57:36]Read from MH i2c: 01 07 00 15 0C 00 00 00 00 00 C6 0C FA [22:57:36]RasterBufferAndPrint [22:57:36]line [22:57:36]line [22:57:36]line [22:57:36]line [22:57:36]line [22:57:36]written 0, free lines is 3275 [22:57:36]MH_Cut [22:57:36]Write to MH i2c: D1 01 00 1C 0C 01 FA [22:57:36]Write i2c OK [22:57:36]MH_I2C_Read... [22:57:36]Read from MH i2c: D1 [22:57:36]MH_I2C_Read... [22:57:36]Read from MH i2c: D1 01 00 [22:57:36]MH_I2C_Read... [22:57:36]Read from MH i2c: D1 01 00 1C 0C 00 F9 [22:57:36]Write to MH i2c: 01 00 00 1D 0C 29 [22:57:36]Write i2c OK [22:57:36]MH_I2C_Read... [22:57:36]OFD Sender: No OFD packet to send [22:57:37]*** Cut start [22:57:37]*** Partial cut [22:57:37]*** CUTSNS_PIN = 1 [22:57:37]*** CUTSNS_PIN = 0 [22:57:37]*** Brake cut motor [22:57:37]Read from MH i2c: 01 [22:57:37]MH_I2C_Read... [22:57:37]*** Stop cut motor [22:57:37]*** Cut end [22:57:37]Read from MH i2c: 01 07 00 [22:57:37]MH_I2C_Read... [22:57:37]Read from MH i2c: 01 07 00 1D 0C 00 00 00 00 00 FF 0F 3E [22:57:37]process_action close_receipt done [22:57:37]requested_data is exist [22:57:37]produce_requested_data [22:57:37]requested_item fm.sn is exist - process it [22:57:37]wFMCommunicate request_size=4 [22:57:37]MH_SAM_APDU [22:57:37]CAPDU: 80 11 00 00 [22:57:37]Write to MH i2c: E2 08 00 1E 0C 80 11 00 00 00 00 00 00 A4 [22:57:37]Write i2c OK [22:57:37]MH_I2C_Read... [22:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:38]Read from MH i2c: E2 [22:57:38]MH_I2C_Read... [22:57:38]Read from MH i2c: E2 17 00 [22:57:38]MH_I2C_Read... [22:57:38]Read from MH i2c: E2 17 00 1E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 F7 [22:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [22:57:38]wFMCommunicate OK [22:57:38]requested_item fd.num is exist - process it [22:57:38]SAM_PROTO_GetFieldsCounters [22:57:38]wFMCommunicate request_size=4 [22:57:38]MH_SAM_APDU [22:57:38]CAPDU: 80 13 00 00 [22:57:38]Write to MH i2c: E2 08 00 1F 0C 80 13 00 00 00 00 00 00 A7 [22:57:38]Write i2c OK [22:57:38]MH_I2C_Read... [22:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:38]Read from MH i2c: E2 [22:57:38]MH_I2C_Read... [22:57:38]Read from MH i2c: E2 62 00 [22:57:38]MH_I2C_Read... [22:57:38]Read from MH i2c: E2 62 00 1F 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 21 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 CC 02 00 00 5E 04 04 00 CC 02 00 00 57 04 04 00 CD 02 00 00 19 04 04 00 00 00 00 00 90 00 76 [22:57:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 21 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 CC 02 00 00 5E 04 04 00 CC 02 00 00 57 04 04 00 CD 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:57:38]wFMCommunicate OK [22:57:38]SAM_PROTO_GetFieldsCounters done [22:57:38]requested_item shift.num is exist - process it [22:57:38]requested_item shift.opened is exist - process it [22:57:38]req_shift_opened [22:57:38]FM_GetShiftState [22:57:38]SAM_PROTO_GetShiftState [22:57:38]wFMCommunicate request_size=4 [22:57:38]MH_SAM_APDU [22:57:38]CAPDU: 80 13 01 00 [22:57:38]Write to MH i2c: E2 08 00 20 0C 80 13 01 00 00 00 00 00 A9 [22:57:38]Write i2c OK [22:57:38]MH_I2C_Read... [22:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:38]Read from MH i2c: E2 [22:57:38]MH_I2C_Read... [22:57:38]Read from MH i2c: E2 0E 00 [22:57:38]MH_I2C_Read... [22:57:38]Read from MH i2c: E2 0E 00 20 0C 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 7C [22:57:38]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [22:57:38]wFMCommunicate OK [22:57:38]SAM_PROTO_GetShiftState done [22:57:38]FM_GetShiftState done [22:57:38]req_shift_opened done [22:57:38]requested_item shift.open_date is exist - process it [22:57:38]req_shift_open_date [22:57:38]req_shift_open_date done [22:57:38]produce_requested_data done [22:57:38]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57889,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [22:57:38]process_action_free close_receipt [22:57:38]json_value_free [22:57:38]json_value_free done [22:57:38]process_json_proto returns [22:57:38]Send response to host [22:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57889,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [22:57:38]free response buf [22:57:38]execute_script done [22:57:38]execute_script returns [22:57:38]free content buf [22:57:38]Sock 9.Close socket [22:57:38]Sock 9.Thread stoped [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:43]accept exits with 8 [23:03:43]New connection [23:03:43]New thread 3066592612 created [23:03:43]Thread 3066735972 joined [23:03:43]Waiting for new connection... [23:03:43] Sock 8.Parse request [23:03:43]Sock 8.Check first char [23:03:43]Sock 8.First char is OK [23:03:43]request: POST /json_proto HTTP/1.0 [23:03:43]Method: POST [23:03:43]URL: /json_proto [23:03:43]Method is POST - this is cgi request [23:03:43]url: /json_proto [23:03:43]query_string will be loaded in cgi processing [23:03:43]execute_cgi json_proto POST (null) [23:03:43]execute_cgi path=json_proto method=POST [23:03:43]POST find Content-Length [23:03:43]Host: 172.17.60.68:8080 [23:03:43]Content-Length: 990 [23:03:43]Content-Type: application/json [23:03:43] [23:03:43]POST finish read [23:03:43]Found Content-Length = 990 [23:03:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.90, "quantity" : 32.420, "sum" : 1099.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 32.42 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1099.00, "payments": [ { "type": 0, "sum" : 1099.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:43]execute_script... [23:03:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.90, "quantity" : 32.420, "sum" : 1099.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 32.42 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1099.00, "payments": [ { "type": 0, "sum" : 1099.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:43]POST & json_proto [23:03:43]process_json_proto [23:03:43]json parsed OK: [23:03:43]protocol is kg_v1.0 [23:03:43]action value=close_receipt [23:03:43]process_action close_receipt [23:03:43]cmd_close_receipt [23:03:43]MH_GetDate [23:03:43]Write to MH i2c: F0 00 00 21 0C 1C [23:03:43]Write i2c OK [23:03:43]MH_I2C_Read... [23:03:43]Read from MH i2c: F0 [23:03:43]MH_I2C_Read... [23:03:43]Read from MH i2c: F0 09 00 [23:03:43]MH_I2C_Read... [23:03:43]Read from MH i2c: F0 09 00 21 0C 00 50 FA 5C 66 8D A7 02 66 CD [23:03:43]GetLastDocTimeStamp 1717369054 [23:03:43]current date 1717369424 [23:03:43]FM_GetShiftState [23:03:43]SAM_PROTO_GetShiftState [23:03:43]wFMCommunicate request_size=4 [23:03:43]MH_SAM_APDU [23:03:43]CAPDU: 80 13 01 00 [23:03:43]Write to MH i2c: E2 08 00 22 0C 80 13 01 00 00 00 00 00 AB [23:03:43]Write i2c OK [23:03:43]MH_I2C_Read... [23:03:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:43]Read from MH i2c: E2 [23:03:43]MH_I2C_Read... [23:03:43]Read from MH i2c: E2 0E 00 [23:03:43]MH_I2C_Read... [23:03:43]Read from MH i2c: E2 0E 00 22 0C 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 7E [23:03:43]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:03:43]wFMCommunicate OK [23:03:43]SAM_PROTO_GetShiftState done [23:03:43]FM_GetShiftState done [23:03:43]opened in 1717288520 [23:03:43]opened+sec_in_day 1717374920 [23:03:43]quantity*price = 109903 [23:03:43]sum+1 = 109905 [23:03:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1099.00 Внесено: 1500.00 СДАЧА: 401.00 НСП 1% : 9.73 НДС 12% : 116.71 Наличными: 1099.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 717 02.06.2024 23:03 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Дисконтная программа СУГ номер 117 сэкономлено 32.42 сом ФМ: 0000000000959414 ФД: 57890 ФПД: 238742815963790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230344&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57890&fm=238742815963790&tin=02508201610067®Number=0000000000151680&sum=109900 [23:03:44]StoreToDocumentArchive [23:03:44]shift 69 fd 57890 [23:03:44]save to /storage/0069/doc_00057890 [23:03:44]save last doc name /storage/0069/doc_00057890 to /storage/kkm_last_doc_name [23:03:44]save OK [23:03:44]Clear old archive folders... [23:03:44]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:03:44]tlvbuf is 019ECAF0 [23:03:44]SAM_PROTO_ClearQueue [23:03:44]wFMCommunicate request_size=4 [23:03:44]MH_SAM_APDU [23:03:44]CAPDU: 80 09 00 00 [23:03:44]Write to MH i2c: E2 08 00 2F 0C 80 09 00 00 00 00 00 00 AD [23:03:44]Write i2c OK [23:03:44]MH_I2C_Read... [23:03:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:03:44]Read from MH i2c: E2 [23:03:44]MH_I2C_Read... [23:03:44]Read from MH i2c: E2 03 00 [23:03:44]MH_I2C_Read... [23:03:44]Read from MH i2c: E2 03 00 2F 0C 00 90 00 AF [23:03:44]RAPDU: 90 00 [23:03:44]wFMCommunicate OK [23:03:44]SAM_PROTO_ClearQueue done [23:03:44]KKMCreateOFDPacket [23:03:44]OFDProtocolAddRootSTLVToBuf [23:03:44]FM_MakeSignedData [23:03:44]FM_MakeSignedData [23:03:44]SAM_PROTO_SignData [23:03:44]wFMCommunicate request_size=4 [23:03:44]MH_SAM_APDU [23:03:44]CAPDU: 80 0D 01 02 [23:03:44]Write to MH i2c: E2 08 00 30 0C 80 0D 01 02 00 00 00 00 B5 [23:03:44]Write i2c OK [23:03:44]MH_I2C_Read... [23:03:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:03:45]Read from MH i2c: E2 [23:03:45]MH_I2C_Read... [23:03:45]Read from MH i2c: E2 03 00 [23:03:45]MH_I2C_Read... [23:03:45]Read from MH i2c: E2 03 00 30 0C 00 90 00 B0 [23:03:45]RAPDU: 90 00 [23:03:45]wFMCommunicate OK [23:03:45]wFMCommunicate request_size=255 [23:03:45]MH_SAM_APDU [23:03:45]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A4 7E 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 50 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 2D 00 00 00 00 07 04 06 00 4C AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 02 00 00 F4 03 04 00 50 FA 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 22 E2 00 00 35 04 06 00 D9 22 [23:03:45]Write to MH i2c: E2 02 01 31 0C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A4 7E 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 50 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 2D 00 00 00 00 07 04 06 00 4C AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 02 00 00 F4 03 04 00 50 FA 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 22 E2 00 00 35 04 06 00 D9 22 00 00 74 [23:03:45]Write i2c OK [23:03:45]MH_I2C_Read... [23:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:45]Read from MH i2c: E2 [23:03:45]MH_I2C_Read... [23:03:45]Read from MH i2c: E2 03 00 [23:03:45]MH_I2C_Read... [23:03:45]Read from MH i2c: E2 03 00 31 0C 00 90 00 B1 [23:03:45]RAPDU: 90 00 [23:03:45]wFMCommunicate OK [23:03:45]wFMCommunicate request_size=9 [23:03:45]MH_SAM_APDU [23:03:45]CAPDU: 80 0D 02 02 04 A4 BC FA 8E [23:03:45]Write to MH i2c: E2 0C 00 32 0C 80 0D 02 02 04 00 A4 BC FA 8E 00 00 A8 [23:03:45]Write i2c OK [23:03:45]MH_I2C_Read... [23:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:45]Read from MH i2c: E2 [23:03:45]MH_I2C_Read... [23:03:45]Read from MH i2c: E2 03 00 [23:03:45]MH_I2C_Read... [23:03:45]Read from MH i2c: E2 03 00 32 0C 00 90 00 B2 [23:03:45]RAPDU: 90 00 [23:03:45]wFMCommunicate OK [23:03:45]wFMCommunicate request_size=4 [23:03:45]MH_SAM_APDU [23:03:45]CAPDU: 80 0D 03 02 [23:03:45]Write to MH i2c: E2 08 00 33 0C 80 0D 03 02 00 00 00 00 BA [23:03:45]Write i2c OK [23:03:45]MH_I2C_Read... [23:03:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:03:45]Read from MH i2c: E2 [23:03:45]MH_I2C_Read... [23:03:45]Read from MH i2c: E2 0B 00 [23:03:45]MH_I2C_Read... [23:03:45]Read from MH i2c: E2 0B 00 33 0C 00 C6 88 5A 4D 46 E2 DD BC 90 00 71 [23:03:45]RAPDU: C6 88 5A 4D 46 E2 DD BC 90 00 [23:03:45]wFMCommunicate OK [23:03:45]SAM_PROTO_SignData done [23:03:45]FM_MakeSignedData done [23:03:45]CreateOFDProtocolMessage [23:03:45]wFMCommunicate request_size=4 [23:03:45]MH_SAM_APDU [23:03:45]CAPDU: 80 11 00 00 [23:03:45]Write to MH i2c: E2 08 00 34 0C 80 11 00 00 00 00 00 00 BA [23:03:45]Write i2c OK [23:03:45]MH_I2C_Read... [23:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:45]Read from MH i2c: E2 [23:03:45]MH_I2C_Read... [23:03:45]Read from MH i2c: E2 17 00 [23:03:45]MH_I2C_Read... [23:03:45]Read from MH i2c: E2 17 00 34 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 0D [23:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:03:45]wFMCommunicate OK [23:03:45]CreateOFDProtocolMessage done [23:03:45]OFDSenderStorePacket 57890 [23:03:45]StoreOFDPacket docnum=57890 [23:03:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 6B 49 06 01 BC 79 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A4 7E 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 50 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 2D 00 00 00 00 07 04 06 00 4C AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 02 00 00 F4 03 04 00 50 FA 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 22 E2 00 00 35 04 06 00 D9 22 A4 BC FA 8E C6 88 5A 4D 46 E2 DD BC [23:03:45]CheckFolder [23:03:45]dirname=/storage/ofd_packets [23:03:45]CheckFolder done [23:03:45]ProducePacketName [23:03:45]name=ofd_packets/00057890 [23:03:45]NVStorageSaveData ofd_packets/00057890 [23:03:45]File name is /storage/ofd_packets/00057890 [23:03:45]Write 300 bytes [23:03:45]NVStorageSaveData done [23:03:45]OFDSenderStorePacket done [23:03:45]KKMCreateOFDPacket done [23:03:45]NVStorageSaveData kkm_last_timestamp [23:03:45]File name is /storage/kkm_last_timestamp [23:03:45]Write 4 bytes [23:03:45]NVStorageSaveData done [23:03:45]ExternCall_PrintAddStr [23:03:45]wPrintStart [23:03:45]Write to MH i2c: 01 00 00 35 0C 41 [23:03:45]Write i2c OK [23:03:45]MH_I2C_Read... [23:03:45]Read from MH i2c: 01 [23:03:45]MH_I2C_Read... [23:03:45]Read from MH i2c: 01 07 00 [23:03:45]MH_I2C_Read... [23:03:45]Read from MH i2c: 01 07 00 35 0C 00 00 00 00 00 FF 0F 56 [23:03:45]RasterBufferAndPrint [23:03:45]line Счет N : (1)543234 [23:03:45]line ИНН: 02508201610067 [23:03:45]line Контрольно-Кассовый Чек [23:03:45]line ПРОДАЖА [23:03:45]line ТРК (МРК, ГНК) : 72 [23:03:45]line Товар: 2711190000 [23:03:45]line ГАЗ-К-5 [23:03:45]line 32.420 * 33.90 [23:03:45]line = 1099.04 [23:03:45]line НДС 12% НСП 1% [23:03:45]line > о реализуемом товаре [23:03:45]line ОКРУГЛЕНИЕ: -0.04 [23:03:45]line ИТОГО: 1099.00 [23:03:45]line Внесено: 1500.00 [23:03:45]line СДАЧА: 401.00 [23:03:45]line НСП 1% : 9.73 [23:03:45]line НДС 12% : 116.71 [23:03:45]line Наличными: 1099.00 [23:03:45]line Безнал.: 0.00 [23:03:45]line Место: АЗС № 117 "Партнер Нефть" [23:03:45]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:03:45]line СНО: Общий режим [23:03:45]line Чек 717 02.06.2024 23:03 [23:03:45]line Смена: 69 ФФД: 1.0 [23:03:45]line ЗНМ: 0300000048 [23:03:45]line РНМ: 0000000000151680 [23:03:45]line Версия ККМ: v1.0 [23:03:45]line [23:03:45]line Дисконтная программа [23:03:45]line СУГ [23:03:45]line номер 117 [23:03:45]line сэкономлено 32.42 сом [23:03:45]line ФМ: 0000000000959414 [23:03:45]line ФД: 57890 [23:03:45]line ФПД: 238742815963790 [23:03:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230344&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57890&fm=238742815963790&tin=02508201610067®Number=0000000000151680&sum=109900 [23:03:45]OFD Sender: Processing packet 57890 [packets to send 50, broken 49] [23:03:45]ProducePacketName [23:03:45]name=ofd_packets/00057890 [23:03:45]OFD Sender: To server: pG, [23:03:45]CommunicateWithHost lk.salyk.kg:30040 [23:03:45]ConnectInit lk.salyk.kg [23:03:45]written 0, free lines is 4095 [23:03:45]Connected sock=10 [23:03:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 6B 49 06 01 BC 79 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A4 7E 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 50 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 2D 00 00 00 00 07 04 06 00 4C AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 02 00 00 F4 03 04 00 50 FA 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 22 E2 00 00 35 04 06 00 D9 22 A4 BC FA 8E C6 88 5A 4D 46 E2 DD BC [23:03:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 7A FA 47 00 D4 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 22 E2 00 00 F4 03 04 00 20 A5 5C 66 B6 04 01 00 00 E9 C0 D6 F2 59 D3 95 09 [23:03:46]CommunicateWithHost err = 0 [23:03:46]CheckOFDResponse [23:03:46]1017 (14) - 77093643461234 [23:03:46]1041 (16) - 0000000000959414 [23:03:46]1040 (4) - 57890 [23:03:46]1012 (4) - 02.06.2024 17:00 [23:03:46]1206 (1) - 0 [23:03:46]OFD Sender: Remove packet 57890 [23:03:46]ProducePacketName [23:03:46]name=ofd_packets/00057890 [23:03:46]NVStorageDeleteData [23:03:46]Write to MH i2c: 01 00 00 65 0C 71 [23:03:46]Write i2c OK [23:03:46]MH_I2C_Read... [23:03:46]Read from MH i2c: 01 [23:03:46]MH_I2C_Read... [23:03:46]Read from MH i2c: 01 07 00 [23:03:46]MH_I2C_Read... [23:03:46]Read from MH i2c: 01 07 00 65 0C 00 00 00 00 00 45 0C C9 [23:03:46]RasterBufferAndPrint [23:03:46]line [23:03:46]line [23:03:46]line [23:03:46]line [23:03:46]line [23:03:46]written 0, free lines is 3145 [23:03:46]MH_Cut [23:03:46]Write to MH i2c: D1 01 00 6C 0C 01 4A [23:03:46]Write i2c OK [23:03:46]MH_I2C_Read... [23:03:46]Read from MH i2c: D1 [23:03:46]MH_I2C_Read... [23:03:46]Read from MH i2c: D1 01 00 [23:03:46]MH_I2C_Read... [23:03:46]Read from MH i2c: D1 01 00 6C 0C 00 49 [23:03:46]Write to MH i2c: 01 00 00 6D 0C 79 [23:03:46]Write i2c OK [23:03:46]MH_I2C_Read... [23:03:46]OFD Sender: No OFD packet to send [23:03:47]*** Cut start [23:03:47]*** Partial cut [23:03:47]*** CUTSNS_PIN = 1 [23:03:47]*** CUTSNS_PIN = 0 [23:03:47]*** Brake cut motor [23:03:47]Read from MH i2c: 01 [23:03:47]MH_I2C_Read... [23:03:47]*** Stop cut motor [23:03:47]*** Cut end [23:03:47]Read from MH i2c: 01 07 00 [23:03:47]MH_I2C_Read... [23:03:47]Read from MH i2c: 01 07 00 6D 0C 00 00 00 00 00 FF 0F 8E [23:03:47]process_action close_receipt done [23:03:47]requested_data is exist [23:03:47]produce_requested_data [23:03:47]requested_item fm.sn is exist - process it [23:03:47]wFMCommunicate request_size=4 [23:03:47]MH_SAM_APDU [23:03:47]CAPDU: 80 11 00 00 [23:03:47]Write to MH i2c: E2 08 00 6E 0C 80 11 00 00 00 00 00 00 F4 [23:03:47]Write i2c OK [23:03:47]MH_I2C_Read... [23:03:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:47]Read from MH i2c: E2 [23:03:47]MH_I2C_Read... [23:03:47]Read from MH i2c: E2 17 00 [23:03:47]MH_I2C_Read... [23:03:47]Read from MH i2c: E2 17 00 6E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 47 [23:03:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:03:47]wFMCommunicate OK [23:03:47]requested_item fd.num is exist - process it [23:03:47]SAM_PROTO_GetFieldsCounters [23:03:47]wFMCommunicate request_size=4 [23:03:47]MH_SAM_APDU [23:03:47]CAPDU: 80 13 00 00 [23:03:47]Write to MH i2c: E2 08 00 6F 0C 80 13 00 00 00 00 00 00 F7 [23:03:47]Write i2c OK [23:03:47]MH_I2C_Read... [23:03:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:03:48]Read from MH i2c: E2 [23:03:48]MH_I2C_Read... [23:03:48]Read from MH i2c: E2 62 00 [23:03:48]MH_I2C_Read... [23:03:48]Read from MH i2c: E2 62 00 6F 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 22 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 CD 02 00 00 5E 04 04 00 CD 02 00 00 57 04 04 00 CE 02 00 00 19 04 04 00 00 00 00 00 90 00 CA [23:03:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 22 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 CD 02 00 00 5E 04 04 00 CD 02 00 00 57 04 04 00 CE 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:03:48]wFMCommunicate OK [23:03:48]SAM_PROTO_GetFieldsCounters done [23:03:48]requested_item shift.num is exist - process it [23:03:48]requested_item shift.opened is exist - process it [23:03:48]req_shift_opened [23:03:48]FM_GetShiftState [23:03:48]SAM_PROTO_GetShiftState [23:03:48]wFMCommunicate request_size=4 [23:03:48]MH_SAM_APDU [23:03:48]CAPDU: 80 13 01 00 [23:03:48]Write to MH i2c: E2 08 00 70 0C 80 13 01 00 00 00 00 00 F9 [23:03:48]Write i2c OK [23:03:48]MH_I2C_Read... [23:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:48]Read from MH i2c: E2 [23:03:48]MH_I2C_Read... [23:03:48]Read from MH i2c: E2 0E 00 [23:03:48]MH_I2C_Read... [23:03:48]Read from MH i2c: E2 0E 00 70 0C 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 CC [23:03:48]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:03:48]wFMCommunicate OK [23:03:48]SAM_PROTO_GetShiftState done [23:03:48]FM_GetShiftState done [23:03:48]req_shift_opened done [23:03:48]requested_item shift.open_date is exist - process it [23:03:48]req_shift_open_date [23:03:48]req_shift_open_date done [23:03:48]produce_requested_data done [23:03:48]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57890,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:03:48]process_action_free close_receipt [23:03:48]json_value_free [23:03:48]json_value_free done [23:03:48]process_json_proto returns [23:03:48]Send response to host [23:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57890,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:03:48]free response buf [23:03:48]execute_script done [23:03:48]execute_script returns [23:03:48]free content buf [23:03:48]Sock 8.Close socket [23:03:48]Sock 8.Thread stoped [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:04]accept exits with 9 [23:04:04]New connection [23:04:04]New thread 3066735972 created [23:04:04]Thread 3066592612 joined [23:04:04]Waiting for new connection... [23:04:04] Sock 9.Parse request [23:04:04]Sock 9.Check first char [23:04:04]Sock 9.First char is OK [23:04:04]request: POST /json_proto HTTP/1.0 [23:04:04]Method: POST [23:04:04]URL: /json_proto [23:04:04]Method is POST - this is cgi request [23:04:04]url: /json_proto [23:04:04]query_string will be loaded in cgi processing [23:04:04]execute_cgi json_proto POST (null) [23:04:04]execute_cgi path=json_proto method=POST [23:04:04]POST find Content-Length [23:04:04]Host: 172.17.60.68:8080 [23:04:04]Content-Length: 840 [23:04:04]Content-Type: application/json [23:04:04] [23:04:04]POST finish read [23:04:04]Found Content-Length = 840 [23:04:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543235", "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" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:04]execute_script... [23:04: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)543235", "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" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:04]POST & json_proto [23:04:04]process_json_proto [23:04:04]json parsed OK: [23:04:04]protocol is kg_v1.0 [23:04:04]action value=close_receipt [23:04:04]process_action close_receipt [23:04:04]cmd_close_receipt [23:04:04]MH_GetDate [23:04:04]Write to MH i2c: F0 00 00 71 0C 6C [23:04:04]Write i2c OK [23:04:04]MH_I2C_Read... [23:04:04]Read from MH i2c: F0 [23:04:04]MH_I2C_Read... [23:04:04]Read from MH i2c: F0 09 00 [23:04:04]MH_I2C_Read... [23:04:04]Read from MH i2c: F0 09 00 71 0C 00 65 FA 5C 66 8D A7 02 66 32 [23:04:04]GetLastDocTimeStamp 1717369424 [23:04:04]current date 1717369445 [23:04:04]FM_GetShiftState [23:04:04]SAM_PROTO_GetShiftState [23:04:04]wFMCommunicate request_size=4 [23:04:04]MH_SAM_APDU [23:04:04]CAPDU: 80 13 01 00 [23:04:04]Write to MH i2c: E2 08 00 72 0C 80 13 01 00 00 00 00 00 FB [23:04:04]Write i2c OK [23:04:04]MH_I2C_Read... [23:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:04]Read from MH i2c: E2 [23:04:04]MH_I2C_Read... [23:04:04]Read from MH i2c: E2 0E 00 [23:04:04]MH_I2C_Read... [23:04:04]Read from MH i2c: E2 0E 00 72 0C 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 CE [23:04:04]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:04:04]wFMCommunicate OK [23:04:04]SAM_PROTO_GetShiftState done [23:04:04]FM_GetShiftState done [23:04:04]opened in 1717288520 [23:04:04]opened+sec_in_day 1717374920 [23:04:04]quantity*price = 60025 [23:04:04]sum+1 = 60027 [23:04:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.26 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.26 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 718 02.06.2024 23:04 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000000959414 ФД: 57891 ФПД: 130588590031099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230405&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57891&fm=130588590031099&tin=02508201610067®Number=0000000000151680&sum=60026 [23:04:05]StoreToDocumentArchive [23:04:05]shift 69 fd 57891 [23:04:05]save to /storage/0069/doc_00057891 [23:04:05]save last doc name /storage/0069/doc_00057891 to /storage/kkm_last_doc_name [23:04:05]save OK [23:04:05]Clear old archive folders... [23:04:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:04:05]tlvbuf is 01BB7450 [23:04:05]SAM_PROTO_ClearQueue [23:04:05]wFMCommunicate request_size=4 [23:04:05]MH_SAM_APDU [23:04:05]CAPDU: 80 09 00 00 [23:04:05]Write to MH i2c: E2 08 00 7F 0C 80 09 00 00 00 00 00 00 FD [23:04:05]Write i2c OK [23:04:05]MH_I2C_Read... [23:04:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:05]Read from MH i2c: E2 [23:04:05]MH_I2C_Read... [23:04:05]Read from MH i2c: E2 03 00 [23:04:05]MH_I2C_Read... [23:04:05]Read from MH i2c: E2 03 00 7F 0C 00 90 00 FF [23:04:05]RAPDU: 90 00 [23:04:05]wFMCommunicate OK [23:04:05]SAM_PROTO_ClearQueue done [23:04:05]KKMCreateOFDPacket [23:04:05]OFDProtocolAddRootSTLVToBuf [23:04:05]FM_MakeSignedData [23:04:05]FM_MakeSignedData [23:04:05]SAM_PROTO_SignData [23:04:05]wFMCommunicate request_size=4 [23:04:05]MH_SAM_APDU [23:04:05]CAPDU: 80 0D 01 02 [23:04:05]Write to MH i2c: E2 08 00 80 0C 80 0D 01 02 00 00 00 00 05 [23:04:05]Write i2c OK [23:04:05]MH_I2C_Read... [23:04:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:05]Read from MH i2c: E2 [23:04:05]MH_I2C_Read... [23:04:05]Read from MH i2c: E2 03 00 [23:04:05]MH_I2C_Read... [23:04:05]Read from MH i2c: E2 03 00 80 0C 00 90 00 00 [23:04:05]RAPDU: 90 00 [23:04:05]wFMCommunicate OK [23:04:05]wFMCommunicate request_size=255 [23:04:05]MH_SAM_APDU [23:04: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 7A 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 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 02 00 00 F4 03 04 00 65 FA 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 23 E2 00 00 35 04 06 00 76 [23:04:05]Write to MH i2c: E2 02 01 81 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7A 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 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 02 00 00 F4 03 04 00 65 FA 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 23 E2 00 00 35 04 06 00 76 00 00 77 [23:04:05]Write i2c OK [23:04:05]MH_I2C_Read... [23:04:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:06]Read from MH i2c: E2 [23:04:06]MH_I2C_Read... [23:04:06]Read from MH i2c: E2 03 00 [23:04:06]MH_I2C_Read... [23:04:06]Read from MH i2c: E2 03 00 81 0C 00 90 00 01 [23:04:06]RAPDU: 90 00 [23:04:06]wFMCommunicate OK [23:04:06]wFMCommunicate request_size=10 [23:04:06]MH_SAM_APDU [23:04:06]CAPDU: 80 0D 02 02 05 C5 06 85 40 FB [23:04:06]Write to MH i2c: E2 0D 00 82 0C 80 0D 02 02 05 00 C5 06 85 40 FB 00 00 9D [23:04:06]Write i2c OK [23:04:06]MH_I2C_Read... [23:04:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:06]Read from MH i2c: E2 [23:04:06]MH_I2C_Read... [23:04:06]Read from MH i2c: E2 03 00 [23:04:06]MH_I2C_Read... [23:04:06]Read from MH i2c: E2 03 00 82 0C 00 90 00 02 [23:04:06]RAPDU: 90 00 [23:04:06]wFMCommunicate OK [23:04:06]wFMCommunicate request_size=4 [23:04:06]MH_SAM_APDU [23:04:06]CAPDU: 80 0D 03 02 [23:04:06]Write to MH i2c: E2 08 00 83 0C 80 0D 03 02 00 00 00 00 0A [23:04:06]Write i2c OK [23:04:06]MH_I2C_Read... [23:04:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:06]Read from MH i2c: E2 [23:04:06]MH_I2C_Read... [23:04:06]Read from MH i2c: E2 0B 00 [23:04:06]MH_I2C_Read... [23:04:06]Read from MH i2c: E2 0B 00 83 0C 00 FF 2B 79 E0 DC F9 91 7A 90 00 6E [23:04:06]RAPDU: FF 2B 79 E0 DC F9 91 7A 90 00 [23:04:06]wFMCommunicate OK [23:04:06]SAM_PROTO_SignData done [23:04:06]FM_MakeSignedData done [23:04:06]CreateOFDProtocolMessage [23:04:06]wFMCommunicate request_size=4 [23:04:06]MH_SAM_APDU [23:04:06]CAPDU: 80 11 00 00 [23:04:06]Write to MH i2c: E2 08 00 84 0C 80 11 00 00 00 00 00 00 0A [23:04:06]Write i2c OK [23:04:06]MH_I2C_Read... [23:04:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:06]Read from MH i2c: E2 [23:04:06]MH_I2C_Read... [23:04:06]Read from MH i2c: E2 17 00 [23:04:06]MH_I2C_Read... [23:04:06]Read from MH i2c: E2 17 00 84 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 5D [23:04:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:04:06]wFMCommunicate OK [23:04:06]CreateOFDProtocolMessage done [23:04:06]OFDSenderStorePacket 57891 [23:04:06]StoreOFDPacket docnum=57891 [23:04:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 C6 D0 07 01 86 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7A 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 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 02 00 00 F4 03 04 00 65 FA 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 23 E2 00 00 35 04 06 00 76 C5 06 85 40 FB FF 2B 79 E0 DC F9 91 7A [23:04:06]CheckFolder [23:04:06]dirname=/storage/ofd_packets [23:04:06]CheckFolder done [23:04:06]ProducePacketName [23:04:06]name=ofd_packets/00057891 [23:04:06]NVStorageSaveData ofd_packets/00057891 [23:04:06]File name is /storage/ofd_packets/00057891 [23:04:06]Write 301 bytes [23:04:06]NVStorageSaveData done [23:04:06]OFDSenderStorePacket done [23:04:06]KKMCreateOFDPacket done [23:04:06]NVStorageSaveData kkm_last_timestamp [23:04:06]File name is /storage/kkm_last_timestamp [23:04:06]Write 4 bytes [23:04:06]NVStorageSaveData done [23:04:06]ExternCall_PrintAddStr [23:04:06]wPrintStart [23:04:06]Write to MH i2c: 01 00 00 85 0C 91 [23:04:06]Write i2c OK [23:04:06]MH_I2C_Read... [23:04:06]Read from MH i2c: 01 [23:04:06]MH_I2C_Read... [23:04:06]Read from MH i2c: 01 07 00 [23:04:06]MH_I2C_Read... [23:04:06]Read from MH i2c: 01 07 00 85 0C 00 00 00 00 00 FF 0F A6 [23:04:06]RasterBufferAndPrint [23:04:06]line Счет N : (1)543235 [23:04:06]line ИНН: 02508201610067 [23:04:06]line Контрольно-Кассовый Чек [23:04:06]line ПРОДАЖА [23:04:06]line ТРК (МРК, ГНК) : 22 [23:04:06]line Товар: 2710124130 [23:04:06]line Аи-92-К-5 [23:04:06]line 9.040 * 66.40 [23:04:06]line = 600.26 [23:04:06]line НДС 12% НСП 1% [23:04:06]line > о реализуемом товаре [23:04:06]line ИТОГО: 600.26 [23:04:06]line НСП 1% : 5.31 [23:04:06]line НДС 12% : 63.74 [23:04:06]line Наличными: 0.00 [23:04:06]line Безнал.: 600.26 [23:04:06]line Место: АЗС № 117 "Партнер Нефть" [23:04:06]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:04:06]line СНО: Общий режим [23:04:06]line Чек 718 02.06.2024 23:04 [23:04:06]line Смена: 69 ФФД: 1.0 [23:04:06]line ЗНМ: 0300000048 [23:04:06]line РНМ: 0000000000151680 [23:04:06]line Версия ККМ: v1.0 [23:04:06]line Платежная система: АКБ Кыргызстан [23:04:06]line ФМ: 0000000000959414 [23:04:06]line ФД: 57891 [23:04:06]line ФПД: 130588590031099 [23:04:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230405&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57891&fm=130588590031099&tin=02508201610067®Number=0000000000151680&sum=60026 [23:04:06]OFD Sender: Processing packet 57891 [packets to send 50, broken 49] [23:04:06]ProducePacketName [23:04:06]name=ofd_packets/00057891 [23:04:06]OFD Sender: To server: pG, [23:04:06]CommunicateWithHost lk.salyk.kg:30040 [23:04:06]ConnectInit lk.salyk.kg [23:04:06]written 0, free lines is 4095 [23:04:06]Connected sock=10 [23:04:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 C6 D0 07 01 86 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7A 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 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 02 00 00 F4 03 04 00 65 FA 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 23 E2 00 00 35 04 06 00 76 C5 06 85 40 FB FF 2B 79 E0 DC F9 91 7A [23:04:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 AB 82 47 00 93 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 23 E2 00 00 F4 03 04 00 35 A5 5C 66 B6 04 01 00 00 58 3E C6 C0 FC E2 7A 6A [23:04:06]CommunicateWithHost err = 0 [23:04:06]CheckOFDResponse [23:04:06]1017 (14) - 77093643461234 [23:04:06]1041 (16) - 0000000000959414 [23:04:06]1040 (4) - 57891 [23:04:06]1012 (4) - 02.06.2024 17:00 [23:04:06]1206 (1) - 0 [23:04:06]OFD Sender: Remove packet 57891 [23:04:06]ProducePacketName [23:04:06]name=ofd_packets/00057891 [23:04:06]NVStorageDeleteData [23:04:07]Write to MH i2c: 01 00 00 AF 0C BB [23:04:07]Write i2c OK [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: 01 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: 01 07 00 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: 01 07 00 AF 0C 00 00 00 00 00 DE 0C AC [23:04:07]RasterBufferAndPrint [23:04:07]line [23:04:07]line [23:04:07]line [23:04:07]line [23:04:07]line [23:04:07]written 0, free lines is 3301 [23:04:07]MH_Cut [23:04:07]Write to MH i2c: D1 01 00 B6 0C 01 94 [23:04:07]Write i2c OK [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: D1 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: D1 01 00 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: D1 01 00 B6 0C 00 93 [23:04:07]Write to MH i2c: 01 00 00 B7 0C C3 [23:04:07]Write i2c OK [23:04:07]MH_I2C_Read... [23:04:07]OFD Sender: No OFD packet to send [23:04:07]*** Cut start [23:04:07]*** Partial cut [23:04:07]*** CUTSNS_PIN = 1 [23:04:07]*** CUTSNS_PIN = 0 [23:04:08]*** Brake cut motor [23:04:08]Read from MH i2c: 01 [23:04:08]MH_I2C_Read... [23:04:08]*** Stop cut motor [23:04:08]*** Cut end [23:04:08]Read from MH i2c: 01 07 00 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: 01 07 00 B7 0C 00 00 00 00 00 FF 0F D8 [23:04:08]process_action close_receipt done [23:04:08]requested_data is exist [23:04:08]produce_requested_data [23:04:08]requested_item fm.sn is exist - process it [23:04:08]wFMCommunicate request_size=4 [23:04:08]MH_SAM_APDU [23:04:08]CAPDU: 80 11 00 00 [23:04:08]Write to MH i2c: E2 08 00 B8 0C 80 11 00 00 00 00 00 00 3E [23:04:08]Write i2c OK [23:04:08]MH_I2C_Read... [23:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:08]Read from MH i2c: E2 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: E2 17 00 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: E2 17 00 B8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 91 [23:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:04:08]wFMCommunicate OK [23:04:08]requested_item fd.num is exist - process it [23:04:08]SAM_PROTO_GetFieldsCounters [23:04:08]wFMCommunicate request_size=4 [23:04:08]MH_SAM_APDU [23:04:08]CAPDU: 80 13 00 00 [23:04:08]Write to MH i2c: E2 08 00 B9 0C 80 13 00 00 00 00 00 00 41 [23:04:08]Write i2c OK [23:04:08]MH_I2C_Read... [23:04:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:08]Read from MH i2c: E2 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: E2 62 00 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: E2 62 00 B9 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 23 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 CE 02 00 00 5E 04 04 00 CE 02 00 00 57 04 04 00 CF 02 00 00 19 04 04 00 00 00 00 00 90 00 18 [23:04:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 23 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 CE 02 00 00 5E 04 04 00 CE 02 00 00 57 04 04 00 CF 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:04:08]wFMCommunicate OK [23:04:08]SAM_PROTO_GetFieldsCounters done [23:04:08]requested_item shift.num is exist - process it [23:04:08]requested_item shift.opened is exist - process it [23:04:08]req_shift_opened [23:04:08]FM_GetShiftState [23:04:08]SAM_PROTO_GetShiftState [23:04:08]wFMCommunicate request_size=4 [23:04:08]MH_SAM_APDU [23:04:08]CAPDU: 80 13 01 00 [23:04:08]Write to MH i2c: E2 08 00 BA 0C 80 13 01 00 00 00 00 00 43 [23:04:08]Write i2c OK [23:04:08]MH_I2C_Read... [23:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:08]Read from MH i2c: E2 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: E2 0E 00 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: E2 0E 00 BA 0C 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 16 [23:04:08]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:04:08]wFMCommunicate OK [23:04:08]SAM_PROTO_GetShiftState done [23:04:08]FM_GetShiftState done [23:04:08]req_shift_opened done [23:04:08]requested_item shift.open_date is exist - process it [23:04:08]req_shift_open_date [23:04:08]req_shift_open_date done [23:04:08]produce_requested_data done [23:04:08]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57891,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:04:08]process_action_free close_receipt [23:04:08]json_value_free [23:04:08]json_value_free done [23:04:08]process_json_proto returns [23:04:08]Send response to host [23:04:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57891,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:04:08]free response buf [23:04:08]execute_script done [23:04:08]execute_script returns [23:04:08]free content buf [23:04:08]Sock 9.Close socket [23:04:08]Sock 9.Thread stoped [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:49]accept exits with 8 [23:07:49]New connection [23:07:49]New thread 3066592612 created [23:07:49]Thread 3066735972 joined [23:07:49]Waiting for new connection... [23:07:49] Sock 8.Parse request [23:07:49]Sock 8.Check first char [23:07:49]Sock 8.First char is OK [23:07:49]request: POST /json_proto HTTP/1.0 [23:07:49]Method: POST [23:07:49]URL: /json_proto [23:07:49]Method is POST - this is cgi request [23:07:49]url: /json_proto [23:07:49]query_string will be loaded in cgi processing [23:07:49]execute_cgi json_proto POST (null) [23:07:49]execute_cgi path=json_proto method=POST [23:07:49]POST find Content-Length [23:07:49]Host: 172.17.60.68:8080 [23:07:49]Content-Length: 681 [23:07:49]Content-Type: application/json [23:07:49] [23:07:49]POST finish read [23:07:49]Found Content-Length = 681 [23:07:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 17.200, "sum" : 600.28, "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:07:49]execute_script... [23:07: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)543236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 17.200, "sum" : 600.28, "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:07:49]POST & json_proto [23:07:49]process_json_proto [23:07:49]json parsed OK: [23:07:49]protocol is kg_v1.0 [23:07:49]action value=close_receipt [23:07:49]process_action close_receipt [23:07:49]cmd_close_receipt [23:07:49]MH_GetDate [23:07:49]Write to MH i2c: F0 00 00 BB 0C B6 [23:07:49]Write i2c OK [23:07:49]MH_I2C_Read... [23:07:49]Read from MH i2c: F0 [23:07:49]MH_I2C_Read... [23:07:49]Read from MH i2c: F0 09 00 [23:07:49]MH_I2C_Read... [23:07:49]Read from MH i2c: F0 09 00 BB 0C 00 46 FB 5C 66 8D A7 02 66 5E [23:07:49]GetLastDocTimeStamp 1717369445 [23:07:49]current date 1717369670 [23:07:49]FM_GetShiftState [23:07:49]SAM_PROTO_GetShiftState [23:07:49]wFMCommunicate request_size=4 [23:07:49]MH_SAM_APDU [23:07:49]CAPDU: 80 13 01 00 [23:07:49]Write to MH i2c: E2 08 00 BC 0C 80 13 01 00 00 00 00 00 45 [23:07:49]Write i2c OK [23:07:49]MH_I2C_Read... [23:07:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:49]Read from MH i2c: E2 [23:07:49]MH_I2C_Read... [23:07:49]Read from MH i2c: E2 0E 00 [23:07:49]MH_I2C_Read... [23:07:49]Read from MH i2c: E2 0E 00 BC 0C 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 18 [23:07:49]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:07:49]wFMCommunicate OK [23:07:49]SAM_PROTO_GetShiftState done [23:07:49]FM_GetShiftState done [23:07:49]opened in 1717288520 [23:07:49]opened+sec_in_day 1717374920 [23:07:49]quantity*price = 60028 [23:07:49]sum+1 = 60029 [23:07:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 719 02.06.2024 23:07 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57892 ФПД: 102478303369099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230750&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57892&fm=102478303369099&tin=02508201610067®Number=0000000000151680&sum=60000 [23:07:50]StoreToDocumentArchive [23:07:50]shift 69 fd 57892 [23:07:50]save to /storage/0069/doc_00057892 [23:07:50]save last doc name /storage/0069/doc_00057892 to /storage/kkm_last_doc_name [23:07:50]save OK [23:07:50]Clear old archive folders... [23:07:50]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:07:50]tlvbuf is 019ED6B0 [23:07:50]SAM_PROTO_ClearQueue [23:07:50]wFMCommunicate request_size=4 [23:07:50]MH_SAM_APDU [23:07:50]CAPDU: 80 09 00 00 [23:07:50]Write to MH i2c: E2 08 00 C9 0C 80 09 00 00 00 00 00 00 47 [23:07:50]Write i2c OK [23:07:50]MH_I2C_Read... [23:07:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:07:50]Read from MH i2c: E2 [23:07:50]MH_I2C_Read... [23:07:50]Read from MH i2c: E2 03 00 [23:07:50]MH_I2C_Read... [23:07:50]Read from MH i2c: E2 03 00 C9 0C 00 90 00 49 [23:07:50]RAPDU: 90 00 [23:07:50]wFMCommunicate OK [23:07:50]SAM_PROTO_ClearQueue done [23:07:50]KKMCreateOFDPacket [23:07:50]OFDProtocolAddRootSTLVToBuf [23:07:50]FM_MakeSignedData [23:07:50]FM_MakeSignedData [23:07:50]SAM_PROTO_SignData [23:07:50]wFMCommunicate request_size=4 [23:07:50]MH_SAM_APDU [23:07:50]CAPDU: 80 0D 01 02 [23:07:50]Write to MH i2c: E2 08 00 CA 0C 80 0D 01 02 00 00 00 00 4F [23:07:50]Write i2c OK [23:07:50]MH_I2C_Read... [23:07:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:07:50]Read from MH i2c: E2 [23:07:50]MH_I2C_Read... [23:07:50]Read from MH i2c: E2 03 00 [23:07:50]MH_I2C_Read... [23:07:50]Read from MH i2c: E2 03 00 CA 0C 00 90 00 4A [23:07:50]RAPDU: 90 00 [23:07:50]wFMCommunicate OK [23:07:50]wFMCommunicate request_size=255 [23:07:50]MH_SAM_APDU [23:07:50]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 43 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 7C 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 E7 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 CF 02 00 00 F4 03 04 00 46 FB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 24 E2 00 00 35 04 06 00 5D 34 [23:07:50]Write to MH i2c: E2 02 01 CB 0C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 43 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 7C 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 E7 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 CF 02 00 00 F4 03 04 00 46 FB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 24 E2 00 00 35 04 06 00 5D 34 00 00 DC [23:07:50]Write i2c OK [23:07:50]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 [23:07:51]MH_I2C_Read... [23:07:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:51]Read from MH i2c: E2 03 00 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 03 00 CB 0C 00 90 00 4B [23:07:51]RAPDU: 90 00 [23:07:51]wFMCommunicate OK [23:07:51]wFMCommunicate request_size=9 [23:07:51]MH_SAM_APDU [23:07:51]CAPDU: 80 0D 02 02 04 16 DE 97 8B [23:07:51]Write to MH i2c: E2 0C 00 CC 0C 80 0D 02 02 04 00 16 DE 97 8B 00 00 70 [23:07:51]Write i2c OK [23:07:51]MH_I2C_Read... [23:07:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:51]Read from MH i2c: E2 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 03 00 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 03 00 CC 0C 00 90 00 4C [23:07:51]RAPDU: 90 00 [23:07:51]wFMCommunicate OK [23:07:51]wFMCommunicate request_size=4 [23:07:51]MH_SAM_APDU [23:07:51]CAPDU: 80 0D 03 02 [23:07:51]Write to MH i2c: E2 08 00 CD 0C 80 0D 03 02 00 00 00 00 54 [23:07:51]Write i2c OK [23:07:51]MH_I2C_Read... [23:07:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:07:51]Read from MH i2c: E2 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 0B 00 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 0B 00 CD 0C 00 5F 36 8A D5 3E 03 1F 77 90 00 20 [23:07:51]RAPDU: 5F 36 8A D5 3E 03 1F 77 90 00 [23:07:51]wFMCommunicate OK [23:07:51]SAM_PROTO_SignData done [23:07:51]FM_MakeSignedData done [23:07:51]CreateOFDProtocolMessage [23:07:51]wFMCommunicate request_size=4 [23:07:51]MH_SAM_APDU [23:07:51]CAPDU: 80 11 00 00 [23:07:51]Write to MH i2c: E2 08 00 CE 0C 80 11 00 00 00 00 00 00 54 [23:07:51]Write i2c OK [23:07:51]MH_I2C_Read... [23:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:51]Read from MH i2c: E2 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 17 00 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 17 00 CE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 A7 [23:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:07:51]wFMCommunicate OK [23:07:51]CreateOFDProtocolMessage done [23:07:51]OFDSenderStorePacket 57892 [23:07:51]StoreOFDPacket docnum=57892 [23:07:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 C4 9D 06 01 55 EE 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 43 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 7C 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 E7 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 CF 02 00 00 F4 03 04 00 46 FB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 24 E2 00 00 35 04 06 00 5D 34 16 DE 97 8B 5F 36 8A D5 3E 03 1F 77 [23:07:51]CheckFolder [23:07:51]dirname=/storage/ofd_packets [23:07:51]CheckFolder done [23:07:51]ProducePacketName [23:07:51]name=ofd_packets/00057892 [23:07:51]NVStorageSaveData ofd_packets/00057892 [23:07:51]File name is /storage/ofd_packets/00057892 [23:07:51]Write 300 bytes [23:07:51]NVStorageSaveData done [23:07:51]OFDSenderStorePacket done [23:07:51]KKMCreateOFDPacket done [23:07:51]NVStorageSaveData kkm_last_timestamp [23:07:51]File name is /storage/kkm_last_timestamp [23:07:51]Write 4 bytes [23:07:51]NVStorageSaveData done [23:07:51]ExternCall_PrintAddStr [23:07:51]wPrintStart [23:07:51]Write to MH i2c: 01 00 00 CF 0C DB [23:07:51]Write i2c OK [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: 01 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: 01 07 00 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: 01 07 00 CF 0C 00 00 00 00 00 FF 0F F0 [23:07:51]RasterBufferAndPrint [23:07:51]line Счет N : (1)543236 [23:07:51]line ИНН: 02508201610067 [23:07:51]line Контрольно-Кассовый Чек [23:07:51]line ПРОДАЖА [23:07:51]line ТРК (МРК, ГНК) : 71 [23:07:51]line Товар: 2711190000 [23:07:51]line ГАЗ-К-5 [23:07:51]line 17.200 * 34.90 [23:07:51]line = 600.28 [23:07:51]line НДС 12% НСП 1% [23:07:51]line > о реализуемом товаре [23:07:51]line ОКРУГЛЕНИЕ: -0.28 [23:07:51]line ИТОГО: 600.00 [23:07:51]line Внесено: 600.00 [23:07:51]line СДАЧА: 0.00 [23:07:51]line НСП 1% : 5.31 [23:07:51]line НДС 12% : 63.75 [23:07:51]line Наличными: 600.00 [23:07:51]line Безнал.: 0.00 [23:07:51]line Место: АЗС № 117 "Партнер Нефть" [23:07:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:07:51]line СНО: Общий режим [23:07:51]line Чек 719 02.06.2024 23:07 [23:07:51]line Смена: 69 ФФД: 1.0 [23:07:51]line ЗНМ: 0300000048 [23:07:51]line РНМ: 0000000000151680 [23:07:51]line Версия ККМ: v1.0 [23:07:51]line ФМ: 0000000000959414 [23:07:51]line ФД: 57892 [23:07:51]line ФПД: 102478303369099 [23:07:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230750&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57892&fm=102478303369099&tin=02508201610067®Number=0000000000151680&sum=60000 [23:07:51]OFD Sender: Processing packet 57892 [packets to send 50, broken 49] [23:07:51]ProducePacketName [23:07:51]name=ofd_packets/00057892 [23:07:51]OFD Sender: To server: pG, [23:07:51]CommunicateWithHost lk.salyk.kg:30040 [23:07:51]ConnectInit lk.salyk.kg [23:07:51]written 0, free lines is 4095 [23:07:51]Connected sock=10 [23:07:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 C4 9D 06 01 55 EE 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 43 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 7C 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 E7 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 CF 02 00 00 F4 03 04 00 46 FB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 24 E2 00 00 35 04 06 00 5D 34 16 DE 97 8B 5F 36 8A D5 3E 03 1F 77 [23:07:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 49 6A 47 00 4F CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 24 E2 00 00 F4 03 04 00 16 A6 5C 66 B6 04 01 00 00 B0 C0 F8 CF 41 39 0A 7D [23:07:51]CommunicateWithHost err = 0 [23:07:51]CheckOFDResponse [23:07:51]1017 (14) - 77093643461234 [23:07:51]1041 (16) - 0000000000959414 [23:07:51]1040 (4) - 57892 [23:07:51]1012 (4) - 02.06.2024 17:04 [23:07:51]1206 (1) - 0 [23:07:51]OFD Sender: Remove packet 57892 [23:07:51]ProducePacketName [23:07:51]name=ofd_packets/00057892 [23:07:51]NVStorageDeleteData [23:07:52]Write to MH i2c: 01 00 00 FA 0C 06 [23:07:52]Write i2c OK [23:07:52]MH_I2C_Read... [23:07:52]Read from MH i2c: 01 [23:07:52]MH_I2C_Read... [23:07:52]Read from MH i2c: 01 07 00 [23:07:52]MH_I2C_Read... [23:07:52]Read from MH i2c: 01 07 00 FA 0C 00 00 00 00 00 A6 0C BF [23:07:52]RasterBufferAndPrint [23:07:52]line [23:07:52]line [23:07:52]line [23:07:52]line [23:07:52]line [23:07:52]written 0, free lines is 3243 [23:07:52]MH_Cut [23:07:52]Write to MH i2c: D1 01 00 01 0D 01 E0 [23:07:52]Write i2c OK [23:07:52]MH_I2C_Read... [23:07:52]Read from MH i2c: D1 [23:07:52]MH_I2C_Read... [23:07:52]Read from MH i2c: D1 01 00 [23:07:52]MH_I2C_Read... [23:07:52]Read from MH i2c: D1 01 00 01 0D 00 DF [23:07:52]Write to MH i2c: 01 00 00 02 0D 0F [23:07:52]Write i2c OK [23:07:52]MH_I2C_Read... [23:07:52]OFD Sender: No OFD packet to send [23:07:53]*** Cut start [23:07:53]*** Partial cut [23:07:53]*** CUTSNS_PIN = 1 [23:07:53]*** CUTSNS_PIN = 0 [23:07:53]*** Brake cut motor [23:07:53]Read from MH i2c: 01 [23:07:53]MH_I2C_Read... [23:07:53]*** Stop cut motor [23:07:53]*** Cut end [23:07:53]Read from MH i2c: 01 07 00 [23:07:53]MH_I2C_Read... [23:07:53]Read from MH i2c: 01 07 00 02 0D 00 00 00 00 00 FF 0F 24 [23:07:53]process_action close_receipt done [23:07:53]requested_data is exist [23:07:53]produce_requested_data [23:07:53]requested_item fm.sn is exist - process it [23:07:53]wFMCommunicate request_size=4 [23:07:53]MH_SAM_APDU [23:07:53]CAPDU: 80 11 00 00 [23:07:53]Write to MH i2c: E2 08 00 03 0D 80 11 00 00 00 00 00 00 8A [23:07:53]Write i2c OK [23:07:53]MH_I2C_Read... [23:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:53]Read from MH i2c: E2 [23:07:53]MH_I2C_Read... [23:07:53]Read from MH i2c: E2 17 00 [23:07:53]MH_I2C_Read... [23:07:53]Read from MH i2c: E2 17 00 03 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 DD [23:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:07:53]wFMCommunicate OK [23:07:53]requested_item fd.num is exist - process it [23:07:53]SAM_PROTO_GetFieldsCounters [23:07:53]wFMCommunicate request_size=4 [23:07:53]MH_SAM_APDU [23:07:53]CAPDU: 80 13 00 00 [23:07:53]Write to MH i2c: E2 08 00 04 0D 80 13 00 00 00 00 00 00 8D [23:07:53]Write i2c OK [23:07:53]MH_I2C_Read... [23:07:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:07:53]Read from MH i2c: E2 [23:07:53]MH_I2C_Read... [23:07:53]Read from MH i2c: E2 62 00 [23:07:53]MH_I2C_Read... [23:07:53]Read from MH i2c: E2 62 00 04 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 24 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 CF 02 00 00 5E 04 04 00 CF 02 00 00 57 04 04 00 D0 02 00 00 19 04 04 00 00 00 00 00 90 00 68 [23:07:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 24 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 CF 02 00 00 5E 04 04 00 CF 02 00 00 57 04 04 00 D0 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:07:53]wFMCommunicate OK [23:07:53]SAM_PROTO_GetFieldsCounters done [23:07:53]requested_item shift.num is exist - process it [23:07:53]requested_item shift.opened is exist - process it [23:07:53]req_shift_opened [23:07:53]FM_GetShiftState [23:07:53]SAM_PROTO_GetShiftState [23:07:53]wFMCommunicate request_size=4 [23:07:53]MH_SAM_APDU [23:07:53]CAPDU: 80 13 01 00 [23:07:53]Write to MH i2c: E2 08 00 05 0D 80 13 01 00 00 00 00 00 8F [23:07:53]Write i2c OK [23:07:53]MH_I2C_Read... [23:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:53]Read from MH i2c: E2 [23:07:53]MH_I2C_Read... [23:07:53]Read from MH i2c: E2 0E 00 [23:07:53]MH_I2C_Read... [23:07:53]Read from MH i2c: E2 0E 00 05 0D 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 62 [23:07:53]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:07:53]wFMCommunicate OK [23:07:53]SAM_PROTO_GetShiftState done [23:07:53]FM_GetShiftState done [23:07:53]req_shift_opened done [23:07:53]requested_item shift.open_date is exist - process it [23:07:53]req_shift_open_date [23:07:53]req_shift_open_date done [23:07:53]produce_requested_data done [23:07:53]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57892,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:07:53]process_action_free close_receipt [23:07:53]json_value_free [23:07:53]json_value_free done [23:07:53]process_json_proto returns [23:07:53]Send response to host [23:07:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57892,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:07:53]free response buf [23:07:53]execute_script done [23:07:53]execute_script returns [23:07:53]free content buf [23:07:53]Sock 8.Close socket [23:07:53]Sock 8.Thread stoped [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:31]accept exits with 9 [23:08:31]New connection [23:08:31]New thread 3066735972 created [23:08:31]Thread 3066592612 joined [23:08:31]Waiting for new connection... [23:08:31] Sock 9.Parse request [23:08:31]Sock 9.Check first char [23:08:31]Sock 9.First char is OK [23:08:31]request: POST /json_proto HTTP/1.0 [23:08:31]Method: POST [23:08:31]URL: /json_proto [23:08:31]Method is POST - this is cgi request [23:08:31]url: /json_proto [23:08:31]query_string will be loaded in cgi processing [23:08:31]execute_cgi json_proto POST (null) [23:08:31]execute_cgi path=json_proto method=POST [23:08:31]POST find Content-Length [23:08:31]Host: 172.17.60.68:8080 [23:08:31]Content-Length: 682 [23:08:31]Content-Type: application/json [23:08:31] [23:08:31]POST finish read [23:08:31]Found Content-Length = 682 [23:08:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.40, "quantity" : 39.510, "sum" : 2900.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2900.00, "total" : 2900.00, "payments": [ { "type": 0, "sum" : 2900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:31]execute_script... [23:08:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.40, "quantity" : 39.510, "sum" : 2900.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2900.00, "total" : 2900.00, "payments": [ { "type": 0, "sum" : 2900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:31]POST & json_proto [23:08:31]process_json_proto [23:08:31]json parsed OK: [23:08:31]protocol is kg_v1.0 [23:08:31]action value=close_receipt [23:08:31]process_action close_receipt [23:08:31]cmd_close_receipt [23:08:31]MH_GetDate [23:08:31]Write to MH i2c: F0 00 00 06 0D 02 [23:08:31]Write i2c OK [23:08:31]MH_I2C_Read... [23:08:31]Read from MH i2c: F0 [23:08:31]MH_I2C_Read... [23:08:31]Read from MH i2c: F0 09 00 [23:08:31]MH_I2C_Read... [23:08:31]Read from MH i2c: F0 09 00 06 0D 00 70 FB 5C 66 8D A7 02 66 D4 [23:08:31]GetLastDocTimeStamp 1717369670 [23:08:31]current date 1717369712 [23:08:31]FM_GetShiftState [23:08:31]SAM_PROTO_GetShiftState [23:08:31]wFMCommunicate request_size=4 [23:08:31]MH_SAM_APDU [23:08:31]CAPDU: 80 13 01 00 [23:08:31]Write to MH i2c: E2 08 00 07 0D 80 13 01 00 00 00 00 00 91 [23:08:31]Write i2c OK [23:08:31]MH_I2C_Read... [23:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:31]Read from MH i2c: E2 [23:08:31]MH_I2C_Read... [23:08:31]Read from MH i2c: E2 0E 00 [23:08:31]MH_I2C_Read... [23:08:31]Read from MH i2c: E2 0E 00 07 0D 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 64 [23:08:31]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:08:31]wFMCommunicate OK [23:08:31]SAM_PROTO_GetShiftState done [23:08:31]FM_GetShiftState done [23:08:31]opened in 1717288520 [23:08:31]opened+sec_in_day 1717374920 [23:08:31]quantity*price = 290003 [23:08:31]sum+1 = 290004 [23:08:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 2900.00 Внесено: 2900.00 СДАЧА: 0.00 НСП 1% : 25.66 НДС 12% : 307.97 Наличными: 2900.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 720 02.06.2024 23:08 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57893 ФПД: 79714570623327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230832&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57893&fm=79714570623327&tin=02508201610067®Number=0000000000151680&sum=290000 [23:08:33]StoreToDocumentArchive [23:08:33]shift 69 fd 57893 [23:08:33]save to /storage/0069/doc_00057893 [23:08:33]save last doc name /storage/0069/doc_00057893 to /storage/kkm_last_doc_name [23:08:33]save OK [23:08:33]Clear old archive folders... [23:08:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:08:33]tlvbuf is B6E73D80 [23:08:33]SAM_PROTO_ClearQueue [23:08:33]wFMCommunicate request_size=4 [23:08:33]MH_SAM_APDU [23:08:33]CAPDU: 80 09 00 00 [23:08:33]Write to MH i2c: E2 08 00 14 0D 80 09 00 00 00 00 00 00 93 [23:08:33]Write i2c OK [23:08:33]MH_I2C_Read... [23:08:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:33]Read from MH i2c: E2 [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: E2 03 00 [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: E2 03 00 14 0D 00 90 00 95 [23:08:33]RAPDU: 90 00 [23:08:33]wFMCommunicate OK [23:08:33]SAM_PROTO_ClearQueue done [23:08:33]KKMCreateOFDPacket [23:08:33]OFDProtocolAddRootSTLVToBuf [23:08:33]FM_MakeSignedData [23:08:33]FM_MakeSignedData [23:08:33]SAM_PROTO_SignData [23:08:33]wFMCommunicate request_size=4 [23:08:33]MH_SAM_APDU [23:08:33]CAPDU: 80 0D 01 02 [23:08:33]Write to MH i2c: E2 08 00 15 0D 80 0D 01 02 00 00 00 00 9B [23:08:33]Write i2c OK [23:08:33]MH_I2C_Read... [23:08:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:33]Read from MH i2c: E2 [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: E2 03 00 [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: E2 03 00 15 0D 00 90 00 96 [23:08:33]RAPDU: 90 00 [23:08:33]wFMCommunicate OK [23:08:33]wFMCommunicate request_size=255 [23:08:33]MH_SAM_APDU [23:08:33]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 56 9A 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 D3 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 78 00 00 00 00 07 04 06 00 D0 6C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 02 00 00 F4 03 04 00 70 FB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 25 E2 00 00 35 04 06 00 48 [23:08:33]Write to MH i2c: E2 02 01 16 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 9A 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 D3 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 78 00 00 00 00 07 04 06 00 D0 6C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 02 00 00 F4 03 04 00 70 FB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 25 E2 00 00 35 04 06 00 48 00 00 88 [23:08:33]Write i2c OK [23:08:33]MH_I2C_Read... [23:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:33]Read from MH i2c: E2 [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: E2 03 00 [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: E2 03 00 16 0D 00 90 00 97 [23:08:33]RAPDU: 90 00 [23:08:33]wFMCommunicate OK [23:08:33]wFMCommunicate request_size=10 [23:08:33]MH_SAM_APDU [23:08:33]CAPDU: 80 0D 02 02 05 7F FE AA 59 5F [23:08:33]Write to MH i2c: E2 0D 00 17 0D 80 0D 02 02 05 00 7F FE AA 59 5F 00 00 87 [23:08:33]Write i2c OK [23:08:33]MH_I2C_Read... [23:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:33]Read from MH i2c: E2 [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: E2 03 00 [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: E2 03 00 17 0D 00 90 00 98 [23:08:33]RAPDU: 90 00 [23:08:33]wFMCommunicate OK [23:08:33]wFMCommunicate request_size=4 [23:08:33]MH_SAM_APDU [23:08:33]CAPDU: 80 0D 03 02 [23:08:33]Write to MH i2c: E2 08 00 18 0D 80 0D 03 02 00 00 00 00 A0 [23:08:33]Write i2c OK [23:08:33]MH_I2C_Read... [23:08:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:33]Read from MH i2c: E2 [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: E2 0B 00 [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: E2 0B 00 18 0D 00 FB 6A 48 F8 2E 73 91 9F 90 00 17 [23:08:33]RAPDU: FB 6A 48 F8 2E 73 91 9F 90 00 [23:08:33]wFMCommunicate OK [23:08:33]SAM_PROTO_SignData done [23:08:33]FM_MakeSignedData done [23:08:33]CreateOFDProtocolMessage [23:08:33]wFMCommunicate request_size=4 [23:08:33]MH_SAM_APDU [23:08:33]CAPDU: 80 11 00 00 [23:08:33]Write to MH i2c: E2 08 00 19 0D 80 11 00 00 00 00 00 00 A0 [23:08:33]Write i2c OK [23:08:33]MH_I2C_Read... [23:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:33]Read from MH i2c: E2 [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: E2 17 00 [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: E2 17 00 19 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 F3 [23:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:08:33]wFMCommunicate OK [23:08:33]CreateOFDProtocolMessage done [23:08:33]OFDSenderStorePacket 57893 [23:08:33]StoreOFDPacket docnum=57893 [23:08:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 C6 67 07 01 99 31 5A 03 01 00 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 56 9A 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 D3 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 78 00 00 00 00 07 04 06 00 D0 6C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 02 00 00 F4 03 04 00 70 FB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 25 E2 00 00 35 04 06 00 48 7F FE AA 59 5F FB 6A 48 F8 2E 73 91 9F [23:08:33]CheckFolder [23:08:33]dirname=/storage/ofd_packets [23:08:33]CheckFolder done [23:08:33]ProducePacketName [23:08:33]name=ofd_packets/00057893 [23:08:33]NVStorageSaveData ofd_packets/00057893 [23:08:33]File name is /storage/ofd_packets/00057893 [23:08:33]Write 301 bytes [23:08:33]NVStorageSaveData done [23:08:33]OFDSenderStorePacket done [23:08:33]KKMCreateOFDPacket done [23:08:33]NVStorageSaveData kkm_last_timestamp [23:08:33]File name is /storage/kkm_last_timestamp [23:08:33]Write 4 bytes [23:08:33]NVStorageSaveData done [23:08:33]ExternCall_PrintAddStr [23:08:33]wPrintStart [23:08:33]Write to MH i2c: 01 00 00 1A 0D 27 [23:08:33]Write i2c OK [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: 01 [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: 01 07 00 [23:08:33]MH_I2C_Read... [23:08:33]Read from MH i2c: 01 07 00 1A 0D 00 00 00 00 00 FF 0F 3C [23:08:33]RasterBufferAndPrint [23:08:33]line Счет N : (1)543237 [23:08:33]line ИНН: 02508201610067 [23:08:33]line Контрольно-Кассовый Чек [23:08:33]line ПРОДАЖА [23:08:33]line ТРК (МРК, ГНК) : 13 [23:08:33]line Товар: 2710124500 [23:08:33]line Аи-95-К-5 [23:08:33]line 39.510 * 73.40 [23:08:33]line = 2900.03 [23:08:33]line НДС 12% НСП 1% [23:08:33]line > о реализуемом товаре [23:08:33]line ОКРУГЛЕНИЕ: -0.03 [23:08:33]line ИТОГО: 2900.00 [23:08:33]line Внесено: 2900.00 [23:08:33]line СДАЧА: 0.00 [23:08:33]line НСП 1% : 25.66 [23:08:33]line НДС 12% : 307.97 [23:08:33]line Наличными: 2900.00 [23:08:33]line Безнал.: 0.00 [23:08:33]line Место: АЗС № 117 "Партнер Нефть" [23:08:33]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:08:33]line СНО: Общий режим [23:08:33]line Чек 720 02.06.2024 23:08 [23:08:33]line Смена: 69 ФФД: 1.0 [23:08:33]line ЗНМ: 0300000048 [23:08:33]line РНМ: 0000000000151680 [23:08:33]line Версия ККМ: v1.0 [23:08:33]line ФМ: 0000000000959414 [23:08:33]line ФД: 57893 [23:08:33]line ФПД: 79714570623327 [23:08:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230832&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57893&fm=79714570623327&tin=02508201610067®Number=0000000000151680&sum=290000 [23:08:33]OFD Sender: Processing packet 57893 [packets to send 50, broken 49] [23:08:33]ProducePacketName [23:08:33]name=ofd_packets/00057893 [23:08:33]OFD Sender: To server: pG, [23:08:33]CommunicateWithHost lk.salyk.kg:30040 [23:08:33]ConnectInit lk.salyk.kg [23:08:33]written 0, free lines is 4095 [23:08:33]Connected sock=10 [23:08:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 C6 67 07 01 99 31 5A 03 01 00 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 56 9A 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 D3 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 78 00 00 00 00 07 04 06 00 D0 6C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 02 00 00 F4 03 04 00 70 FB 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 25 E2 00 00 35 04 06 00 48 7F FE AA 59 5F FB 6A 48 F8 2E 73 91 9F [23:08:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 7B BC 47 00 CF 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 39 35 39 34 31 34 10 04 04 00 25 E2 00 00 F4 03 04 00 40 A6 5C 66 B6 04 01 00 00 A1 AF 61 EE 4E 34 8B AC [23:08:34]CommunicateWithHost err = 0 [23:08:34]CheckOFDResponse [23:08:34]1017 (14) - 77093643461234 [23:08:34]1041 (16) - 0000000000959414 [23:08:34]1040 (4) - 57893 [23:08:34]1012 (4) - 02.06.2024 17:05 [23:08:34]1206 (1) - 0 [23:08:34]OFD Sender: Remove packet 57893 [23:08:34]ProducePacketName [23:08:34]name=ofd_packets/00057893 [23:08:34]NVStorageDeleteData [23:08:34]Write to MH i2c: 01 00 00 45 0D 52 [23:08:34]Write i2c OK [23:08:34]MH_I2C_Read... [23:08:34]Read from MH i2c: 01 [23:08:34]MH_I2C_Read... [23:08:34]Read from MH i2c: 01 07 00 [23:08:34]MH_I2C_Read... [23:08:34]Read from MH i2c: 01 07 00 45 0D 00 00 00 00 00 AE 0C 13 [23:08:34]RasterBufferAndPrint [23:08:34]line [23:08:34]line [23:08:34]line [23:08:34]line [23:08:34]line [23:08:34]written 0, free lines is 3250 [23:08:34]MH_Cut [23:08:34]Write to MH i2c: D1 01 00 4C 0D 01 2B [23:08:34]Write i2c OK [23:08:34]MH_I2C_Read... [23:08:34]Read from MH i2c: D1 [23:08:34]MH_I2C_Read... [23:08:34]Read from MH i2c: D1 01 00 [23:08:34]MH_I2C_Read... [23:08:34]Read from MH i2c: D1 01 00 4C 0D 00 2A [23:08:34]Write to MH i2c: 01 00 00 4D 0D 5A [23:08:34]Write i2c OK [23:08:34]MH_I2C_Read... [23:08:34]OFD Sender: No OFD packet to send [23:08:35]*** Cut start [23:08:35]*** Partial cut [23:08:35]*** CUTSNS_PIN = 1 [23:08:35]*** CUTSNS_PIN = 0 [23:08:35]*** Brake cut motor [23:08:35]Read from MH i2c: 01 [23:08:35]MH_I2C_Read... [23:08:35]*** Stop cut motor [23:08:35]*** Cut end [23:08:35]Read from MH i2c: 01 07 00 [23:08:35]MH_I2C_Read... [23:08:35]Read from MH i2c: 01 07 00 4D 0D 00 00 00 00 00 FF 0F 6F [23:08:35]process_action close_receipt done [23:08:35]requested_data is exist [23:08:35]produce_requested_data [23:08:35]requested_item fm.sn is exist - process it [23:08:35]wFMCommunicate request_size=4 [23:08:35]MH_SAM_APDU [23:08:35]CAPDU: 80 11 00 00 [23:08:35]Write to MH i2c: E2 08 00 4E 0D 80 11 00 00 00 00 00 00 D5 [23:08:35]Write i2c OK [23:08:35]MH_I2C_Read... [23:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:35]Read from MH i2c: E2 [23:08:35]MH_I2C_Read... [23:08:35]Read from MH i2c: E2 17 00 [23:08:35]MH_I2C_Read... [23:08:35]Read from MH i2c: E2 17 00 4E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 28 [23:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:08:35]wFMCommunicate OK [23:08:35]requested_item fd.num is exist - process it [23:08:35]SAM_PROTO_GetFieldsCounters [23:08:35]wFMCommunicate request_size=4 [23:08:35]MH_SAM_APDU [23:08:35]CAPDU: 80 13 00 00 [23:08:35]Write to MH i2c: E2 08 00 4F 0D 80 13 00 00 00 00 00 00 D8 [23:08:35]Write i2c OK [23:08:35]MH_I2C_Read... [23:08:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:36]Read from MH i2c: E2 [23:08:36]MH_I2C_Read... [23:08:36]Read from MH i2c: E2 62 00 [23:08:36]MH_I2C_Read... [23:08:36]Read from MH i2c: E2 62 00 4F 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 25 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D0 02 00 00 5E 04 04 00 D0 02 00 00 57 04 04 00 D1 02 00 00 19 04 04 00 00 00 00 00 90 00 B7 [23:08:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 25 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D0 02 00 00 5E 04 04 00 D0 02 00 00 57 04 04 00 D1 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:08:36]wFMCommunicate OK [23:08:36]SAM_PROTO_GetFieldsCounters done [23:08:36]requested_item shift.num is exist - process it [23:08:36]requested_item shift.opened is exist - process it [23:08:36]req_shift_opened [23:08:36]FM_GetShiftState [23:08:36]SAM_PROTO_GetShiftState [23:08:36]wFMCommunicate request_size=4 [23:08:36]MH_SAM_APDU [23:08:36]CAPDU: 80 13 01 00 [23:08:36]Write to MH i2c: E2 08 00 50 0D 80 13 01 00 00 00 00 00 DA [23:08:36]Write i2c OK [23:08:36]MH_I2C_Read... [23:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:36]Read from MH i2c: E2 [23:08:36]MH_I2C_Read... [23:08:36]Read from MH i2c: E2 0E 00 [23:08:36]MH_I2C_Read... [23:08:36]Read from MH i2c: E2 0E 00 50 0D 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 AD [23:08:36]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:08:36]wFMCommunicate OK [23:08:36]SAM_PROTO_GetShiftState done [23:08:36]FM_GetShiftState done [23:08:36]req_shift_opened done [23:08:36]requested_item shift.open_date is exist - process it [23:08:36]req_shift_open_date [23:08:36]req_shift_open_date done [23:08:36]produce_requested_data done [23:08:36]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57893,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:08:36]process_action_free close_receipt [23:08:36]json_value_free [23:08:36]json_value_free done [23:08:36]process_json_proto returns [23:08:36]Send response to host [23:08:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57893,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:08:36]free response buf [23:08:36]execute_script done [23:08:36]execute_script returns [23:08:36]free content buf [23:08:36]Sock 9.Close socket [23:08:36]Sock 9.Thread stoped [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:57]accept exits with 8 [23:11:57]New connection [23:11:57]New thread 3066592612 created [23:11:57]Thread 3066735972 joined [23:11:57]Waiting for new connection... [23:11:57] Sock 8.Parse request [23:11:57]Sock 8.Check first char [23:11:57]Sock 8.First char is OK [23:11:57]request: POST /json_proto HTTP/1.0 [23:11:57]Method: POST [23:11:57]URL: /json_proto [23:11:57]Method is POST - this is cgi request [23:11:57]url: /json_proto [23:11:57]query_string will be loaded in cgi processing [23:11:57]execute_cgi json_proto POST (null) [23:11:57]execute_cgi path=json_proto method=POST [23:11:57]POST find Content-Length [23:11:57]Host: 172.17.60.68:8080 [23:11:57]Content-Length: 984 [23:11:57]Content-Type: application/json [23:11:57] [23:11:57]POST finish read [23:11:57]Found Content-Length = 984 [23:11:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.40, "quantity" : 32.120, "sum" : 2100.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 32.12 \u0441\u043E\u043C", "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:57]execute_script... [23:11: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)543238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.40, "quantity" : 32.120, "sum" : 2100.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 32.12 \u0441\u043E\u043C", "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:57]POST & json_proto [23:11:57]process_json_proto [23:11:57]json parsed OK: [23:11:57]protocol is kg_v1.0 [23:11:57]action value=close_receipt [23:11:57]process_action close_receipt [23:11:57]cmd_close_receipt [23:11:57]MH_GetDate [23:11:57]Write to MH i2c: F0 00 00 51 0D 4D [23:11:57]Write i2c OK [23:11:57]MH_I2C_Read... [23:11:57]Read from MH i2c: F0 [23:11:57]MH_I2C_Read... [23:11:57]Read from MH i2c: F0 09 00 [23:11:57]MH_I2C_Read... [23:11:57]Read from MH i2c: F0 09 00 51 0D 00 3E FC 5C 66 8D A7 02 66 EE [23:11:57]GetLastDocTimeStamp 1717369712 [23:11:57]current date 1717369918 [23:11:57]FM_GetShiftState [23:11:57]SAM_PROTO_GetShiftState [23:11:57]wFMCommunicate request_size=4 [23:11:57]MH_SAM_APDU [23:11:57]CAPDU: 80 13 01 00 [23:11:57]Write to MH i2c: E2 08 00 52 0D 80 13 01 00 00 00 00 00 DC [23:11:57]Write i2c OK [23:11:57]MH_I2C_Read... [23:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:57]Read from MH i2c: E2 [23:11:57]MH_I2C_Read... [23:11:57]Read from MH i2c: E2 0E 00 [23:11:57]MH_I2C_Read... [23:11:57]Read from MH i2c: E2 0E 00 52 0D 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 AF [23:11:57]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:11:57]wFMCommunicate OK [23:11:57]SAM_PROTO_GetShiftState done [23:11:57]FM_GetShiftState done [23:11:57]opened in 1717288520 [23:11:57]opened+sec_in_day 1717374920 [23:11:57]quantity*price = 210064 [23:11:57]sum+1 = 210066 [23:11:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 2100.00 Внесено: 2100.00 СДАЧА: 0.00 НСП 1% : 18.59 НДС 12% : 223.08 Наличными: 2100.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 721 02.06.2024 23:11 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Дисконтная программа АИ-92 номер 117 сэкономлено 32.12 сом ФМ: 0000000000959414 ФД: 57894 ФПД: 115021040065727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231158&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57894&fm=115021040065727&tin=02508201610067®Number=0000000000151680&sum=210000 [23:11:59]StoreToDocumentArchive [23:11:59]shift 69 fd 57894 [23:11:59]save to /storage/0069/doc_00057894 [23:11:59]save last doc name /storage/0069/doc_00057894 to /storage/kkm_last_doc_name [23:11:59]save OK [23:11:59]Clear old archive folders... [23:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:11:59]tlvbuf is 01A2ECF0 [23:11:59]SAM_PROTO_ClearQueue [23:11:59]wFMCommunicate request_size=4 [23:11:59]MH_SAM_APDU [23:11:59]CAPDU: 80 09 00 00 [23:11:59]Write to MH i2c: E2 08 00 5F 0D 80 09 00 00 00 00 00 00 DE [23:11:59]Write i2c OK [23:11:59]MH_I2C_Read... [23:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:59]Read from MH i2c: E2 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 5F 0D 00 90 00 E0 [23:11:59]RAPDU: 90 00 [23:11:59]wFMCommunicate OK [23:11:59]SAM_PROTO_ClearQueue done [23:11:59]KKMCreateOFDPacket [23:11:59]OFDProtocolAddRootSTLVToBuf [23:11:59]FM_MakeSignedData [23:11:59]FM_MakeSignedData [23:11:59]SAM_PROTO_SignData [23:11:59]wFMCommunicate request_size=4 [23:11:59]MH_SAM_APDU [23:11:59]CAPDU: 80 0D 01 02 [23:11:59]Write to MH i2c: E2 08 00 60 0D 80 0D 01 02 00 00 00 00 E6 [23:11:59]Write i2c OK [23:11:59]MH_I2C_Read... [23:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:59]Read from MH i2c: E2 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 60 0D 00 90 00 E1 [23:11:59]RAPDU: 90 00 [23:11:59]wFMCommunicate OK [23:11:59]wFMCommunicate request_size=255 [23:11:59]MH_SAM_APDU [23:11: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 78 7D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 91 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 02 00 00 F4 03 04 00 3E FC 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 26 E2 00 00 35 04 06 00 68 [23:11:59]Write to MH i2c: E2 02 01 61 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 7D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 91 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 02 00 00 F4 03 04 00 3E FC 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 26 E2 00 00 35 04 06 00 68 00 00 A5 [23:11:59]Write i2c OK [23:11:59]MH_I2C_Read... [23:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:59]Read from MH i2c: E2 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 61 0D 00 90 00 E2 [23:11:59]RAPDU: 90 00 [23:11:59]wFMCommunicate OK [23:11:59]wFMCommunicate request_size=10 [23:11:59]MH_SAM_APDU [23:11:59]CAPDU: 80 0D 02 02 05 9C 6C 3C 1C BF [23:11:59]Write to MH i2c: E2 0D 00 62 0D 80 0D 02 02 05 00 9C 6C 3C 1C BF 00 00 12 [23:11:59]Write i2c OK [23:11:59]MH_I2C_Read... [23:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:59]Read from MH i2c: E2 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 62 0D 00 90 00 E3 [23:11:59]RAPDU: 90 00 [23:11:59]wFMCommunicate OK [23:11:59]wFMCommunicate request_size=4 [23:11:59]MH_SAM_APDU [23:11:59]CAPDU: 80 0D 03 02 [23:11:59]Write to MH i2c: E2 08 00 63 0D 80 0D 03 02 00 00 00 00 EB [23:11:59]Write i2c OK [23:11:59]MH_I2C_Read... [23:11:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:59]Read from MH i2c: E2 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 0B 00 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 0B 00 63 0D 00 EE A1 50 34 A8 B4 56 D6 90 00 87 [23:11:59]RAPDU: EE A1 50 34 A8 B4 56 D6 90 00 [23:11:59]wFMCommunicate OK [23:11:59]SAM_PROTO_SignData done [23:11:59]FM_MakeSignedData done [23:11:59]CreateOFDProtocolMessage [23:11:59]wFMCommunicate request_size=4 [23:11:59]MH_SAM_APDU [23:11:59]CAPDU: 80 11 00 00 [23:11:59]Write to MH i2c: E2 08 00 64 0D 80 11 00 00 00 00 00 00 EB [23:11:59]Write i2c OK [23:11:59]MH_I2C_Read... [23:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:59]Read from MH i2c: E2 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 17 00 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 17 00 64 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 3E [23:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:11:59]wFMCommunicate OK [23:11:59]CreateOFDProtocolMessage done [23:11:59]OFDSenderStorePacket 57894 [23:11:59]StoreOFDPacket docnum=57894 [23:11:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 3A AB 07 01 92 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 7D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 91 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 02 00 00 F4 03 04 00 3E FC 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 26 E2 00 00 35 04 06 00 68 9C 6C 3C 1C BF EE A1 50 34 A8 B4 56 D6 [23:11:59]CheckFolder [23:11:59]dirname=/storage/ofd_packets [23:11:59]CheckFolder done [23:11:59]ProducePacketName [23:11:59]name=ofd_packets/00057894 [23:11:59]NVStorageSaveData ofd_packets/00057894 [23:11:59]File name is /storage/ofd_packets/00057894 [23:11:59]Write 301 bytes [23:11:59]NVStorageSaveData done [23:11:59]OFDSenderStorePacket done [23:11:59]KKMCreateOFDPacket done [23:11:59]NVStorageSaveData kkm_last_timestamp [23:11:59]File name is /storage/kkm_last_timestamp [23:11:59]Write 4 bytes [23:11:59]NVStorageSaveData done [23:11:59]ExternCall_PrintAddStr [23:11:59]wPrintStart [23:11:59]Write to MH i2c: 01 00 00 65 0D 72 [23:11:59]Write i2c OK [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: 01 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: 01 07 00 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: 01 07 00 65 0D 00 00 00 00 00 FF 0F 87 [23:11:59]RasterBufferAndPrint [23:11:59]line Счет N : (1)543238 [23:11:59]line ИНН: 02508201610067 [23:11:59]line Контрольно-Кассовый Чек [23:11:59]line ПРОДАЖА [23:11:59]line ТРК (МРК, ГНК) : 32 [23:11:59]line Товар: 2710124130 [23:11:59]line Аи-92-К-5 [23:11:59]line 32.120 * 65.40 [23:11:59]line = 2100.65 [23:11:59]line НДС 12% НСП 1% [23:11:59]line > о реализуемом товаре [23:11:59]line ОКРУГЛЕНИЕ: -0.65 [23:11:59]line ИТОГО: 2100.00 [23:11:59]line Внесено: 2100.00 [23:11:59]line СДАЧА: 0.00 [23:11:59]line НСП 1% : 18.59 [23:11:59]line НДС 12% : 223.08 [23:11:59]line Наличными: 2100.00 [23:11:59]line Безнал.: 0.00 [23:11:59]line Место: АЗС № 117 "Партнер Нефть" [23:11:59]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:11:59]line СНО: Общий режим [23:11:59]line Чек 721 02.06.2024 23:11 [23:11:59]line Смена: 69 ФФД: 1.0 [23:11:59]line ЗНМ: 0300000048 [23:11:59]line РНМ: 0000000000151680 [23:11:59]line Версия ККМ: v1.0 [23:11:59]line [23:11:59]line Дисконтная программа [23:11:59]line АИ-92 [23:11:59]line номер 117 [23:11:59]line сэкономлено 32.12 сом [23:11:59]line ФМ: 0000000000959414 [23:11:59]line ФД: 57894 [23:11:59]line ФПД: 115021040065727 [23:11:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231158&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57894&fm=115021040065727&tin=02508201610067®Number=0000000000151680&sum=210000 [23:11:59]OFD Sender: Processing packet 57894 [packets to send 50, broken 49] [23:11:59]ProducePacketName [23:11:59]name=ofd_packets/00057894 [23:11:59]OFD Sender: To server: pG, [23:11:59]CommunicateWithHost lk.salyk.kg:30040 [23:11:59]ConnectInit lk.salyk.kg [23:11:59]written 0, free lines is 4095 [23:12:00]Connected sock=10 [23:12:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 3A AB 07 01 92 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 7D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 91 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 02 00 00 F4 03 04 00 3E FC 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 26 E2 00 00 35 04 06 00 68 9C 6C 3C 1C BF EE A1 50 34 A8 B4 56 D6 [23:12:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 9E 9A 47 00 51 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 39 35 39 34 31 34 10 04 04 00 26 E2 00 00 F4 03 04 00 0E A7 5C 66 B6 04 01 00 00 8D CA 1E 6D 8E BC 72 89 [23:12:00]CommunicateWithHost err = 0 [23:12:00]CheckOFDResponse [23:12:00]1017 (14) - 77093643461234 [23:12:00]1041 (16) - 0000000000959414 [23:12:00]1040 (4) - 57894 [23:12:00]1012 (4) - 02.06.2024 17:08 [23:12:00]1206 (1) - 0 [23:12:00]OFD Sender: Remove packet 57894 [23:12:00]ProducePacketName [23:12:00]name=ofd_packets/00057894 [23:12:00]NVStorageDeleteData [23:12:00]Write to MH i2c: 01 00 00 95 0D A2 [23:12:00]Write i2c OK [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: 01 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: 01 07 00 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: 01 07 00 95 0D 00 00 00 00 00 39 0C EE [23:12:00]RasterBufferAndPrint [23:12:00]line [23:12:00]line [23:12:00]line [23:12:00]line [23:12:00]line [23:12:00]written 0, free lines is 3134 [23:12:00]MH_Cut [23:12:00]Write to MH i2c: D1 01 00 9C 0D 01 7B [23:12:00]Write i2c OK [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: D1 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: D1 01 00 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: D1 01 00 9C 0D 00 7A [23:12:00]Write to MH i2c: 01 00 00 9D 0D AA [23:12:00]Write i2c OK [23:12:00]MH_I2C_Read... [23:12:00]OFD Sender: No OFD packet to send [23:12:01]*** Cut start [23:12:01]*** Partial cut [23:12:01]*** CUTSNS_PIN = 1 [23:12:01]*** CUTSNS_PIN = 0 [23:12:01]*** Brake cut motor [23:12:02]Read from MH i2c: 01 [23:12:02]MH_I2C_Read... [23:12:02]*** Stop cut motor [23:12:02]*** Cut end [23:12:02]Read from MH i2c: 01 07 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: 01 07 00 9D 0D 00 00 00 00 00 FF 0F BF [23:12:02]process_action close_receipt done [23:12:02]requested_data is exist [23:12:02]produce_requested_data [23:12:02]requested_item fm.sn is exist - process it [23:12:02]wFMCommunicate request_size=4 [23:12:02]MH_SAM_APDU [23:12:02]CAPDU: 80 11 00 00 [23:12:02]Write to MH i2c: E2 08 00 9E 0D 80 11 00 00 00 00 00 00 25 [23:12:02]Write i2c OK [23:12:02]MH_I2C_Read... [23:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:02]Read from MH i2c: E2 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 17 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 17 00 9E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 78 [23:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:12:02]wFMCommunicate OK [23:12:02]requested_item fd.num is exist - process it [23:12:02]SAM_PROTO_GetFieldsCounters [23:12:02]wFMCommunicate request_size=4 [23:12:02]MH_SAM_APDU [23:12:02]CAPDU: 80 13 00 00 [23:12:02]Write to MH i2c: E2 08 00 9F 0D 80 13 00 00 00 00 00 00 28 [23:12:02]Write i2c OK [23:12:02]MH_I2C_Read... [23:12:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:02]Read from MH i2c: E2 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 62 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 62 00 9F 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 26 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D1 02 00 00 5E 04 04 00 D1 02 00 00 57 04 04 00 D2 02 00 00 19 04 04 00 00 00 00 00 90 00 0B [23:12:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 26 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D1 02 00 00 5E 04 04 00 D1 02 00 00 57 04 04 00 D2 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:12:02]wFMCommunicate OK [23:12:02]SAM_PROTO_GetFieldsCounters done [23:12:02]requested_item shift.num is exist - process it [23:12:02]requested_item shift.opened is exist - process it [23:12:02]req_shift_opened [23:12:02]FM_GetShiftState [23:12:02]SAM_PROTO_GetShiftState [23:12:02]wFMCommunicate request_size=4 [23:12:02]MH_SAM_APDU [23:12:02]CAPDU: 80 13 01 00 [23:12:02]Write to MH i2c: E2 08 00 A0 0D 80 13 01 00 00 00 00 00 2A [23:12:02]Write i2c OK [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 [23:12:02]MH_I2C_Read... [23:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:02]Read from MH i2c: E2 0E 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 0E 00 A0 0D 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 FD [23:12:02]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:12:02]wFMCommunicate OK [23:12:02]SAM_PROTO_GetShiftState done [23:12:02]FM_GetShiftState done [23:12:02]req_shift_opened done [23:12:02]requested_item shift.open_date is exist - process it [23:12:02]req_shift_open_date [23:12:02]req_shift_open_date done [23:12:02]produce_requested_data done [23:12:02]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57894,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:12:02]process_action_free close_receipt [23:12:02]json_value_free [23:12:02]json_value_free done [23:12:02]process_json_proto returns [23:12:02]Send response to host [23:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57894,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:12:02]free response buf [23:12:02]execute_script done [23:12:02]execute_script returns [23:12:02]free content buf [23:12:02]Sock 8.Close socket [23:12:02]Sock 8.Thread stoped [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:16]accept exits with 9 [23:16:16]New connection [23:16:16]New thread 3066735972 created [23:16:16]Thread 3066592612 joined [23:16:16]Waiting for new connection... [23:16:16] Sock 9.Parse request [23:16:16]Sock 9.Check first char [23:16:16]Sock 9.First char is OK [23:16:16]request: POST /json_proto HTTP/1.0 [23:16:16]Method: POST [23:16:16]URL: /json_proto [23:16:16]Method is POST - this is cgi request [23:16:16]url: /json_proto [23:16:16]query_string will be loaded in cgi processing [23:16:16]execute_cgi json_proto POST (null) [23:16:16]execute_cgi path=json_proto method=POST [23:16:16]POST find Content-Length [23:16:16]Host: 172.17.60.68:8080 [23:16:16]Content-Length: 990 [23:16:16]Content-Type: application/json [23:16:16] [23:16:16]POST finish read [23:16:16]Found Content-Length = 990 [23:16:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.90, "quantity" : 44.250, "sum" : 1500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 44.25 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:16]execute_script... [23:16: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)543239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.90, "quantity" : 44.250, "sum" : 1500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 44.25 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:16]POST & json_proto [23:16:16]process_json_proto [23:16:16]json parsed OK: [23:16:16]protocol is kg_v1.0 [23:16:16]action value=close_receipt [23:16:16]process_action close_receipt [23:16:16]cmd_close_receipt [23:16:16]MH_GetDate [23:16:16]Write to MH i2c: F0 00 00 A1 0D 9D [23:16:16]Write i2c OK [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: F0 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: F0 09 00 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: F0 09 00 A1 0D 00 41 FD 5C 66 8D A7 02 66 42 [23:16:16]GetLastDocTimeStamp 1717369918 [23:16:16]current date 1717370177 [23:16:16]FM_GetShiftState [23:16:16]SAM_PROTO_GetShiftState [23:16:16]wFMCommunicate request_size=4 [23:16:16]MH_SAM_APDU [23:16:16]CAPDU: 80 13 01 00 [23:16:16]Write to MH i2c: E2 08 00 A2 0D 80 13 01 00 00 00 00 00 2C [23:16:16]Write i2c OK [23:16:16]MH_I2C_Read... [23:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:16]Read from MH i2c: E2 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: E2 0E 00 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: E2 0E 00 A2 0D 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 FF [23:16:16]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:16:16]wFMCommunicate OK [23:16:16]SAM_PROTO_GetShiftState done [23:16:16]FM_GetShiftState done [23:16:16]opened in 1717288520 [23:16:16]opened+sec_in_day 1717374920 [23:16:16]quantity*price = 150007 [23:16:16]sum+1 = 150009 [23:16:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 722 02.06.2024 23:16 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Дисконтная программа СУГ номер 117 сэкономлено 44.25 сом ФМ: 0000000000959414 ФД: 57895 ФПД: 135377898139113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231617&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57895&fm=135377898139113&tin=02508201610067®Number=0000000000151680&sum=150000 [23:16:18]StoreToDocumentArchive [23:16:18]shift 69 fd 57895 [23:16:18]save to /storage/0069/doc_00057895 [23:16:18]save last doc name /storage/0069/doc_00057895 to /storage/kkm_last_doc_name [23:16:18]save OK [23:16:18]Clear old archive folders... [23:16:18]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:16:18]tlvbuf is 01861E40 [23:16:18]SAM_PROTO_ClearQueue [23:16:18]wFMCommunicate request_size=4 [23:16:18]MH_SAM_APDU [23:16:18]CAPDU: 80 09 00 00 [23:16:18]Write to MH i2c: E2 08 00 AF 0D 80 09 00 00 00 00 00 00 2E [23:16:18]Write i2c OK [23:16:18]MH_I2C_Read... [23:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:16:18]Read from MH i2c: E2 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: E2 03 00 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: E2 03 00 AF 0D 00 90 00 30 [23:16:18]RAPDU: 90 00 [23:16:18]wFMCommunicate OK [23:16:18]SAM_PROTO_ClearQueue done [23:16:18]KKMCreateOFDPacket [23:16:18]OFDProtocolAddRootSTLVToBuf [23:16:18]FM_MakeSignedData [23:16:18]FM_MakeSignedData [23:16:18]SAM_PROTO_SignData [23:16:18]wFMCommunicate request_size=4 [23:16:18]MH_SAM_APDU [23:16:18]CAPDU: 80 0D 01 02 [23:16:18]Write to MH i2c: E2 08 00 B0 0D 80 0D 01 02 00 00 00 00 36 [23:16:18]Write i2c OK [23:16:18]MH_I2C_Read... [23:16:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:16:18]Read from MH i2c: E2 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: E2 03 00 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: E2 03 00 B0 0D 00 90 00 31 [23:16:18]RAPDU: 90 00 [23:16:18]wFMCommunicate OK [23:16:18]wFMCommunicate request_size=255 [23:16:18]MH_SAM_APDU [23:16:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 F8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 02 00 00 F4 03 04 00 41 FD 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 27 E2 00 00 35 04 06 00 7B 20 [23:16:18]Write to MH i2c: E2 02 01 B1 0D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 F8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 02 00 00 F4 03 04 00 41 FD 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 27 E2 00 00 35 04 06 00 7B 20 00 00 D6 [23:16:18]Write i2c OK [23:16:18]MH_I2C_Read... [23:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:18]Read from MH i2c: E2 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: E2 03 00 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: E2 03 00 B1 0D 00 90 00 32 [23:16:18]RAPDU: 90 00 [23:16:18]wFMCommunicate OK [23:16:18]wFMCommunicate request_size=9 [23:16:18]MH_SAM_APDU [23:16:18]CAPDU: 80 0D 02 02 04 1F 87 6D E9 [23:16:18]Write to MH i2c: E2 0C 00 B2 0D 80 0D 02 02 04 00 1F 87 6D E9 00 00 3D [23:16:18]Write i2c OK [23:16:18]MH_I2C_Read... [23:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:18]Read from MH i2c: E2 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: E2 03 00 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: E2 03 00 B2 0D 00 90 00 33 [23:16:18]RAPDU: 90 00 [23:16:18]wFMCommunicate OK [23:16:18]wFMCommunicate request_size=4 [23:16:18]MH_SAM_APDU [23:16:18]CAPDU: 80 0D 03 02 [23:16:18]Write to MH i2c: E2 08 00 B3 0D 80 0D 03 02 00 00 00 00 3B [23:16:18]Write i2c OK [23:16:18]MH_I2C_Read... [23:16:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:16:18]Read from MH i2c: E2 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: E2 0B 00 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: E2 0B 00 B3 0D 00 58 CB 3F 5A 21 D6 F6 48 90 00 2D [23:16:18]RAPDU: 58 CB 3F 5A 21 D6 F6 48 90 00 [23:16:18]wFMCommunicate OK [23:16:18]SAM_PROTO_SignData done [23:16:18]FM_MakeSignedData done [23:16:18]CreateOFDProtocolMessage [23:16:18]wFMCommunicate request_size=4 [23:16:18]MH_SAM_APDU [23:16:18]CAPDU: 80 11 00 00 [23:16:18]Write to MH i2c: E2 08 00 B4 0D 80 11 00 00 00 00 00 00 3B [23:16:18]Write i2c OK [23:16:18]MH_I2C_Read... [23:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:18]Read from MH i2c: E2 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: E2 17 00 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: E2 17 00 B4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 8E [23:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:16:18]wFMCommunicate OK [23:16:18]CreateOFDProtocolMessage done [23:16:18]OFDSenderStorePacket 57895 [23:16:18]StoreOFDPacket docnum=57895 [23:16:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 DB BE 06 01 F6 F7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 F8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 02 00 00 F4 03 04 00 41 FD 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 27 E2 00 00 35 04 06 00 7B 20 1F 87 6D E9 58 CB 3F 5A 21 D6 F6 48 [23:16:18]CheckFolder [23:16:18]dirname=/storage/ofd_packets [23:16:18]CheckFolder done [23:16:18]ProducePacketName [23:16:18]name=ofd_packets/00057895 [23:16:18]NVStorageSaveData ofd_packets/00057895 [23:16:18]File name is /storage/ofd_packets/00057895 [23:16:18]Write 300 bytes [23:16:18]NVStorageSaveData done [23:16:18]OFDSenderStorePacket done [23:16:18]KKMCreateOFDPacket done [23:16:18]NVStorageSaveData kkm_last_timestamp [23:16:18]File name is /storage/kkm_last_timestamp [23:16:18]Write 4 bytes [23:16:18]NVStorageSaveData done [23:16:18]ExternCall_PrintAddStr [23:16:18]wPrintStart [23:16:18]Write to MH i2c: 01 00 00 B5 0D C2 [23:16:18]Write i2c OK [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: 01 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: 01 07 00 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: 01 07 00 B5 0D 00 00 00 00 00 FF 0F D7 [23:16:18]RasterBufferAndPrint [23:16:18]line Счет N : (1)543239 [23:16:18]line ИНН: 02508201610067 [23:16:18]line Контрольно-Кассовый Чек [23:16:18]line ПРОДАЖА [23:16:18]line ТРК (МРК, ГНК) : 72 [23:16:18]line Товар: 2711190000 [23:16:18]line ГАЗ-К-5 [23:16:18]line 44.250 * 33.90 [23:16:18]line = 1500.08 [23:16:18]line НДС 12% НСП 1% [23:16:18]line > о реализуемом товаре [23:16:18]line ОКРУГЛЕНИЕ: -0.08 [23:16:18]line ИТОГО: 1500.00 [23:16:18]line Внесено: 1500.00 [23:16:18]line СДАЧА: 0.00 [23:16:18]line НСП 1% : 13.27 [23:16:18]line НДС 12% : 159.30 [23:16:18]line Наличными: 1500.00 [23:16:18]line Безнал.: 0.00 [23:16:18]line Место: АЗС № 117 "Партнер Нефть" [23:16:18]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:16:18]line СНО: Общий режим [23:16:18]line Чек 722 02.06.2024 23:16 [23:16:18]line Смена: 69 ФФД: 1.0 [23:16:18]line ЗНМ: 0300000048 [23:16:18]line РНМ: 0000000000151680 [23:16:18]line Версия ККМ: v1.0 [23:16:18]line [23:16:18]line Дисконтная программа [23:16:18]line СУГ [23:16:18]line номер 117 [23:16:18]line сэкономлено 44.25 сом [23:16:18]line ФМ: 0000000000959414 [23:16:18]line ФД: 57895 [23:16:18]line ФПД: 135377898139113 [23:16:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231617&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57895&fm=135377898139113&tin=02508201610067®Number=0000000000151680&sum=150000 [23:16:18]OFD Sender: Processing packet 57895 [packets to send 50, broken 49] [23:16:18]ProducePacketName [23:16:18]name=ofd_packets/00057895 [23:16:18]OFD Sender: To server: pG, [23:16:18]CommunicateWithHost lk.salyk.kg:30040 [23:16:18]ConnectInit lk.salyk.kg [23:16:18]written 0, free lines is 4095 [23:16:19]Connected sock=10 [23:16:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 DB BE 06 01 F6 F7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 F8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 02 00 00 F4 03 04 00 41 FD 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 27 E2 00 00 35 04 06 00 7B 20 1F 87 6D E9 58 CB 3F 5A 21 D6 F6 48 [23:16:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 57 6C 47 00 63 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 39 35 39 34 31 34 10 04 04 00 27 E2 00 00 F4 03 04 00 11 A8 5C 66 B6 04 01 00 00 01 28 C7 F4 4C 39 10 7D [23:16:19]CommunicateWithHost err = 0 [23:16:19]CheckOFDResponse [23:16:19]1017 (14) - 77093643461234 [23:16:19]1041 (16) - 0000000000959414 [23:16:19]1040 (4) - 57895 [23:16:19]1012 (4) - 02.06.2024 17:12 [23:16:19]1206 (1) - 0 [23:16:19]OFD Sender: Remove packet 57895 [23:16:19]ProducePacketName [23:16:19]name=ofd_packets/00057895 [23:16:19]NVStorageDeleteData [23:16:19]Write to MH i2c: 01 00 00 E5 0D F2 [23:16:19]Write i2c OK [23:16:19]MH_I2C_Read... [23:16:19]Read from MH i2c: 01 [23:16:19]MH_I2C_Read... [23:16:19]Read from MH i2c: 01 07 00 [23:16:19]MH_I2C_Read... [23:16:19]Read from MH i2c: 01 07 00 E5 0D 00 00 00 00 00 43 0C 48 [23:16:19]RasterBufferAndPrint [23:16:19]line [23:16:19]line [23:16:19]line [23:16:19]line [23:16:19]line [23:16:19]written 0, free lines is 3145 [23:16:19]MH_Cut [23:16:19]Write to MH i2c: D1 01 00 EC 0D 01 CB [23:16:19]Write i2c OK [23:16:19]MH_I2C_Read... [23:16:19]Read from MH i2c: D1 [23:16:19]MH_I2C_Read... [23:16:19]Read from MH i2c: D1 01 00 [23:16:19]MH_I2C_Read... [23:16:19]Read from MH i2c: D1 01 00 EC 0D 00 CA [23:16:19]Write to MH i2c: 01 00 00 ED 0D FA [23:16:19]Write i2c OK [23:16:19]MH_I2C_Read... [23:16:19]OFD Sender: No OFD packet to send [23:16:20]*** Cut start [23:16:20]*** Partial cut [23:16:20]*** CUTSNS_PIN = 1 [23:16:20]*** CUTSNS_PIN = 0 [23:16:20]*** Brake cut motor [23:16:21]Read from MH i2c: 01 [23:16:21]MH_I2C_Read... [23:16:21]*** Stop cut motor [23:16:21]*** Cut end [23:16:21]Read from MH i2c: 01 07 00 [23:16:21]MH_I2C_Read... [23:16:21]Read from MH i2c: 01 07 00 ED 0D 00 00 00 00 00 FF 0F 0F [23:16:21]process_action close_receipt done [23:16:21]requested_data is exist [23:16:21]produce_requested_data [23:16:21]requested_item fm.sn is exist - process it [23:16:21]wFMCommunicate request_size=4 [23:16:21]MH_SAM_APDU [23:16:21]CAPDU: 80 11 00 00 [23:16:21]Write to MH i2c: E2 08 00 EE 0D 80 11 00 00 00 00 00 00 75 [23:16:21]Write i2c OK [23:16:21]MH_I2C_Read... [23:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:21]Read from MH i2c: E2 [23:16:21]MH_I2C_Read... [23:16:21]Read from MH i2c: E2 17 00 [23:16:21]MH_I2C_Read... [23:16:21]Read from MH i2c: E2 17 00 EE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 C8 [23:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:16:21]wFMCommunicate OK [23:16:21]requested_item fd.num is exist - process it [23:16:21]SAM_PROTO_GetFieldsCounters [23:16:21]wFMCommunicate request_size=4 [23:16:21]MH_SAM_APDU [23:16:21]CAPDU: 80 13 00 00 [23:16:21]Write to MH i2c: E2 08 00 EF 0D 80 13 00 00 00 00 00 00 78 [23:16:21]Write i2c OK [23:16:21]MH_I2C_Read... [23:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:16:21]Read from MH i2c: E2 [23:16:21]MH_I2C_Read... [23:16:21]Read from MH i2c: E2 62 00 [23:16:21]MH_I2C_Read... [23:16:21]Read from MH i2c: E2 62 00 EF 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 27 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D2 02 00 00 5E 04 04 00 D2 02 00 00 57 04 04 00 D3 02 00 00 19 04 04 00 00 00 00 00 90 00 5F [23:16:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 27 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D2 02 00 00 5E 04 04 00 D2 02 00 00 57 04 04 00 D3 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:16:21]wFMCommunicate OK [23:16:21]SAM_PROTO_GetFieldsCounters done [23:16:21]requested_item shift.num is exist - process it [23:16:21]requested_item shift.opened is exist - process it [23:16:21]req_shift_opened [23:16:21]FM_GetShiftState [23:16:21]SAM_PROTO_GetShiftState [23:16:21]wFMCommunicate request_size=4 [23:16:21]MH_SAM_APDU [23:16:21]CAPDU: 80 13 01 00 [23:16:21]Write to MH i2c: E2 08 00 F0 0D 80 13 01 00 00 00 00 00 7A [23:16:21]Write i2c OK [23:16:21]MH_I2C_Read... [23:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:21]Read from MH i2c: E2 [23:16:21]MH_I2C_Read... [23:16:21]Read from MH i2c: E2 0E 00 [23:16:21]MH_I2C_Read... [23:16:21]Read from MH i2c: E2 0E 00 F0 0D 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 4D [23:16:21]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:16:21]wFMCommunicate OK [23:16:21]SAM_PROTO_GetShiftState done [23:16:21]FM_GetShiftState done [23:16:21]req_shift_opened done [23:16:21]requested_item shift.open_date is exist - process it [23:16:21]req_shift_open_date [23:16:21]req_shift_open_date done [23:16:21]produce_requested_data done [23:16:21]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57895,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:16:21]process_action_free close_receipt [23:16:21]json_value_free [23:16:21]json_value_free done [23:16:21]process_json_proto returns [23:16:21]Send response to host [23:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57895,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:16:21]free response buf [23:16:21]execute_script done [23:16:21]execute_script returns [23:16:21]free content buf [23:16:21]Sock 9.Close socket [23:16:21]Sock 9.Thread stoped [23:16:21]accept exits with 8 [23:16:21]New connection [23:16:21]New thread 3066592612 created [23:16:21]Thread 3066735972 joined [23:16:21]Waiting for new connection... [23:16:21] Sock 8.Parse request [23:16:21]Sock 8.Check first char [23:16:21]Sock 8.First char is OK [23:16:21]request: POST /json_proto HTTP/1.0 [23:16:21]Method: POST [23:16:21]URL: /json_proto [23:16:21]Method is POST - this is cgi request [23:16:21]url: /json_proto [23:16:21]query_string will be loaded in cgi processing [23:16:21]execute_cgi json_proto POST (null) [23:16:21]execute_cgi path=json_proto method=POST [23:16:21]POST find Content-Length [23:16:21]Host: 172.17.60.68:8080 [23:16:21]Content-Length: 803 [23:16:21]Content-Type: application/json [23:16:21] [23:16:21]POST finish read [23:16:21]Found Content-Length = 803 [23:16:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543240", "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" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:21]execute_script... [23:16: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)543240", "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" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:21]POST & json_proto [23:16:21]process_json_proto [23:16:21]json parsed OK: [23:16:21]protocol is kg_v1.0 [23:16:21]action value=close_receipt [23:16:21]process_action close_receipt [23:16:21]cmd_close_receipt [23:16:21]MH_GetDate [23:16:21]Write to MH i2c: F0 00 00 F1 0D ED [23:16:21]Write i2c OK [23:16:21]MH_I2C_Read... [23:16:21]Read from MH i2c: F0 [23:16:21]MH_I2C_Read... [23:16:21]Read from MH i2c: F0 09 00 [23:16:21]MH_I2C_Read... [23:16:21]Read from MH i2c: F0 09 00 F1 0D 00 46 FD 5C 66 8D A7 02 66 97 [23:16:21]GetLastDocTimeStamp 1717370177 [23:16:21]current date 1717370182 [23:16:21]FM_GetShiftState [23:16:21]SAM_PROTO_GetShiftState [23:16:21]wFMCommunicate request_size=4 [23:16:21]MH_SAM_APDU [23:16:21]CAPDU: 80 13 01 00 [23:16:21]Write to MH i2c: E2 08 00 F2 0D 80 13 01 00 00 00 00 00 7C [23:16:21]Write i2c OK [23:16:21]MH_I2C_Read... [23:16:21]Read from MH i2c: E2 [23:16:21]MH_I2C_Read... [23:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:21]Read from MH i2c: E2 0E 00 [23:16:21]MH_I2C_Read... [23:16:21]Read from MH i2c: E2 0E 00 F2 0D 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 4F [23:16:21]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:16:21]wFMCommunicate OK [23:16:21]SAM_PROTO_GetShiftState done [23:16:21]FM_GetShiftState done [23:16:21]opened in 1717288520 [23:16:21]opened+sec_in_day 1717374920 [23:16:21]quantity*price = 120051 [23:16:21]sum+1 = 120052 [23:16:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.51 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 0.00 Безнал.: 1200.51 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 723 02.06.2024 23:16 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57896 ФПД: 39010166010916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231622&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57896&fm=39010166010916&tin=02508201610067®Number=0000000000151680&sum=120051 [23:16:22]StoreToDocumentArchive [23:16:22]shift 69 fd 57896 [23:16:22]save to /storage/0069/doc_00057896 [23:16:22]save last doc name /storage/0069/doc_00057896 to /storage/kkm_last_doc_name [23:16:22]save OK [23:16:22]Clear old archive folders... [23:16:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:16:22]tlvbuf is 01BACFE0 [23:16:22]SAM_PROTO_ClearQueue [23:16:22]wFMCommunicate request_size=4 [23:16:22]MH_SAM_APDU [23:16:22]CAPDU: 80 09 00 00 [23:16:22]Write to MH i2c: E2 08 00 FF 0D 80 09 00 00 00 00 00 00 7E [23:16:22]Write i2c OK [23:16:22]MH_I2C_Read... [23:16:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:16:22]Read from MH i2c: E2 [23:16:22]MH_I2C_Read... [23:16:22]Read from MH i2c: E2 03 00 [23:16:22]MH_I2C_Read... [23:16:22]Read from MH i2c: E2 03 00 FF 0D 00 90 00 80 [23:16:22]RAPDU: 90 00 [23:16:22]wFMCommunicate OK [23:16:22]SAM_PROTO_ClearQueue done [23:16:22]KKMCreateOFDPacket [23:16:22]OFDProtocolAddRootSTLVToBuf [23:16:22]FM_MakeSignedData [23:16:22]FM_MakeSignedData [23:16:22]SAM_PROTO_SignData [23:16:22]wFMCommunicate request_size=4 [23:16:22]MH_SAM_APDU [23:16:22]CAPDU: 80 0D 01 02 [23:16:22]Write to MH i2c: E2 08 00 00 0E 80 0D 01 02 00 00 00 00 87 [23:16:22]Write i2c OK [23:16:22]MH_I2C_Read... [23:16:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:16:22]Read from MH i2c: E2 [23:16:22]MH_I2C_Read... [23:16:22]Read from MH i2c: E2 03 00 [23:16:22]MH_I2C_Read... [23:16:22]Read from MH i2c: E2 03 00 00 0E 00 90 00 82 [23:16:22]RAPDU: 90 00 [23:16:22]wFMCommunicate OK [23:16:22]wFMCommunicate request_size=255 [23:16:22]MH_SAM_APDU [23:16: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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 02 00 00 F4 03 04 00 46 FD 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 28 E2 00 00 35 04 06 00 23 [23:16:22]Write to MH i2c: E2 02 01 01 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 02 00 00 F4 03 04 00 46 FD 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 28 E2 00 00 35 04 06 00 23 00 00 48 [23:16:23]Write i2c OK [23:16:23]MH_I2C_Read... [23:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:23]Read from MH i2c: E2 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 03 00 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 03 00 01 0E 00 90 00 83 [23:16:23]RAPDU: 90 00 [23:16:23]wFMCommunicate OK [23:16:23]wFMCommunicate request_size=10 [23:16:23]MH_SAM_APDU [23:16:23]CAPDU: 80 0D 02 02 05 7A C3 16 74 24 [23:16:23]Write to MH i2c: E2 0D 00 02 0E 80 0D 02 02 05 00 7A C3 16 74 24 00 00 7F [23:16:23]Write i2c OK [23:16:23]MH_I2C_Read... [23:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:23]Read from MH i2c: E2 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 03 00 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 03 00 02 0E 00 90 00 84 [23:16:23]RAPDU: 90 00 [23:16:23]wFMCommunicate OK [23:16:23]wFMCommunicate request_size=4 [23:16:23]MH_SAM_APDU [23:16:23]CAPDU: 80 0D 03 02 [23:16:23]Write to MH i2c: E2 08 00 03 0E 80 0D 03 02 00 00 00 00 8C [23:16:23]Write i2c OK [23:16:23]MH_I2C_Read... [23:16:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:16:23]Read from MH i2c: E2 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 0B 00 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 0B 00 03 0E 00 F9 0F 28 43 3B F1 79 19 90 00 BE [23:16:23]RAPDU: F9 0F 28 43 3B F1 79 19 90 00 [23:16:23]wFMCommunicate OK [23:16:23]SAM_PROTO_SignData done [23:16:23]FM_MakeSignedData done [23:16:23]CreateOFDProtocolMessage [23:16:23]wFMCommunicate request_size=4 [23:16:23]MH_SAM_APDU [23:16:23]CAPDU: 80 11 00 00 [23:16:23]Write to MH i2c: E2 08 00 04 0E 80 11 00 00 00 00 00 00 8C [23:16:23]Write i2c OK [23:16:23]MH_I2C_Read... [23:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:23]Read from MH i2c: E2 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 17 00 [23:16:23]MH_I2C_Read... [23:16:23]Read from MH i2c: E2 17 00 04 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 DF [23:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:16:23]wFMCommunicate OK [23:16:23]CreateOFDProtocolMessage done [23:16:23]OFDSenderStorePacket 57896 [23:16:23]StoreOFDPacket docnum=57896 [23:16:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 1A 78 07 01 13 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 02 00 00 F4 03 04 00 46 FD 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 28 E2 00 00 35 04 06 00 23 7A C3 16 74 24 F9 0F 28 43 3B F1 79 19 [23:16:24]CheckFolder [23:16:24]dirname=/storage/ofd_packets [23:16:24]CheckFolder done [23:16:24]ProducePacketName [23:16:24]name=ofd_packets/00057896 [23:16:24]NVStorageSaveData ofd_packets/00057896 [23:16:24]File name is /storage/ofd_packets/00057896 [23:16:24]Write 301 bytes [23:16:24]NVStorageSaveData done [23:16:24]OFDSenderStorePacket done [23:16:24]KKMCreateOFDPacket done [23:16:24]NVStorageSaveData kkm_last_timestamp [23:16:24]File name is /storage/kkm_last_timestamp [23:16:24]Write 4 bytes [23:16:24]NVStorageSaveData done [23:16:24]ExternCall_PrintAddStr [23:16:24]wPrintStart [23:16:24]Write to MH i2c: 01 00 00 05 0E 13 [23:16:24]Write i2c OK [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: 01 [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: 01 07 00 [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: 01 07 00 05 0E 00 00 00 00 00 FF 0F 28 [23:16:24]RasterBufferAndPrint [23:16:24]line Счет N : (1)543240 [23:16:24]line ИНН: 02508201610067 [23:16:24]line Контрольно-Кассовый Чек [23:16:24]line ПРОДАЖА [23:16:24]line ТРК (МРК, ГНК) : 22 [23:16:24]line Товар: 2710124130 [23:16:24]line Аи-92-К-5 [23:16:24]line 18.080 * 66.40 [23:16:24]line = 1200.51 [23:16:24]line НДС 12% НСП 1% [23:16:24]line > о реализуемом товаре [23:16:24]line ИТОГО: 1200.51 [23:16:24]line НСП 1% : 10.62 [23:16:24]line НДС 12% : 127.49 [23:16:24]line Наличными: 0.00 [23:16:24]line Безнал.: 1200.51 [23:16:24]line Место: АЗС № 117 "Партнер Нефть" [23:16:24]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:16:24]line СНО: Общий режим [23:16:24]line Чек 723 02.06.2024 23:16 [23:16:24]line Смена: 69 ФФД: 1.0 [23:16:24]line ЗНМ: 0300000048 [23:16:24]line РНМ: 0000000000151680 [23:16:24]line Версия ККМ: v1.0 [23:16:24]line Платежная система: O! деньги [23:16:24]line ФМ: 0000000000959414 [23:16:24]line ФД: 57896 [23:16:24]line ФПД: 39010166010916 [23:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231622&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57896&fm=39010166010916&tin=02508201610067®Number=0000000000151680&sum=120051 [23:16:24]written 0, free lines is 4095 [23:16:24]OFD Sender: Processing packet 57896 [packets to send 50, broken 49] [23:16:24]ProducePacketName [23:16:24]name=ofd_packets/00057896 [23:16:24]OFD Sender: To server: pG, [23:16:24]CommunicateWithHost lk.salyk.kg:30040 [23:16:24]ConnectInit lk.salyk.kg [23:16:24]Connected sock=10 [23:16:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 1A 78 07 01 13 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 02 00 00 F4 03 04 00 46 FD 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 28 E2 00 00 35 04 06 00 23 7A C3 16 74 24 F9 0F 28 43 3B F1 79 19 [23:16:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 7B 15 47 00 A0 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 28 E2 00 00 F4 03 04 00 16 A8 5C 66 B6 04 01 00 00 FC 3E 5B 23 15 D4 27 77 [23:16:24]CommunicateWithHost err = 0 [23:16:24]CheckOFDResponse [23:16:24]1017 (14) - 77093643461234 [23:16:24]1041 (16) - 0000000000959414 [23:16:24]1040 (4) - 57896 [23:16:24]1012 (4) - 02.06.2024 17:12 [23:16:24]1206 (1) - 0 [23:16:24]OFD Sender: Remove packet 57896 [23:16:24]ProducePacketName [23:16:24]name=ofd_packets/00057896 [23:16:24]NVStorageDeleteData [23:16:24]Write to MH i2c: 01 00 00 2F 0E 3D [23:16:24]Write i2c OK [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: 01 [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: 01 07 00 [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: 01 07 00 2F 0E 00 00 00 00 00 C9 0C 19 [23:16:24]RasterBufferAndPrint [23:16:24]line [23:16:24]line [23:16:24]line [23:16:24]line [23:16:24]line [23:16:24]written 0, free lines is 3287 [23:16:24]MH_Cut [23:16:24]Write to MH i2c: D1 01 00 36 0E 01 16 [23:16:24]Write i2c OK [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: D1 [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: D1 01 00 [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: D1 01 00 36 0E 00 15 [23:16:24]Write to MH i2c: 01 00 00 37 0E 45 [23:16:24]Write i2c OK [23:16:24]MH_I2C_Read... [23:16:24]OFD Sender: No OFD packet to send [23:16:25]*** Cut start [23:16:25]*** Partial cut [23:16:25]*** CUTSNS_PIN = 1 [23:16:25]*** CUTSNS_PIN = 0 [23:16:25]*** Brake cut motor [23:16:25]Read from MH i2c: 01 [23:16:26]MH_I2C_Read... [23:16:26]*** Stop cut motor [23:16:26]*** Cut end [23:16:26]Read from MH i2c: 01 07 00 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: 01 07 00 37 0E 00 00 00 00 00 FF 0F 5A [23:16:26]process_action close_receipt done [23:16:26]requested_data is exist [23:16:26]produce_requested_data [23:16:26]requested_item fm.sn is exist - process it [23:16:26]wFMCommunicate request_size=4 [23:16:26]MH_SAM_APDU [23:16:26]CAPDU: 80 11 00 00 [23:16:26]Write to MH i2c: E2 08 00 38 0E 80 11 00 00 00 00 00 00 C0 [23:16:26]Write i2c OK [23:16:26]MH_I2C_Read... [23:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:26]Read from MH i2c: E2 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 17 00 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 17 00 38 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 13 [23:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:16:26]wFMCommunicate OK [23:16:26]requested_item fd.num is exist - process it [23:16:26]SAM_PROTO_GetFieldsCounters [23:16:26]wFMCommunicate request_size=4 [23:16:26]MH_SAM_APDU [23:16:26]CAPDU: 80 13 00 00 [23:16:26]Write to MH i2c: E2 08 00 39 0E 80 13 00 00 00 00 00 00 C3 [23:16:26]Write i2c OK [23:16:26]MH_I2C_Read... [23:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:16:26]Read from MH i2c: E2 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 62 00 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 62 00 39 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 28 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D3 02 00 00 5E 04 04 00 D3 02 00 00 57 04 04 00 D4 02 00 00 19 04 04 00 00 00 00 00 90 00 AE [23:16:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 28 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D3 02 00 00 5E 04 04 00 D3 02 00 00 57 04 04 00 D4 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:16:26]wFMCommunicate OK [23:16:26]SAM_PROTO_GetFieldsCounters done [23:16:26]requested_item shift.num is exist - process it [23:16:26]requested_item shift.opened is exist - process it [23:16:26]req_shift_opened [23:16:26]FM_GetShiftState [23:16:26]SAM_PROTO_GetShiftState [23:16:26]wFMCommunicate request_size=4 [23:16:26]MH_SAM_APDU [23:16:26]CAPDU: 80 13 01 00 [23:16:26]Write to MH i2c: E2 08 00 3A 0E 80 13 01 00 00 00 00 00 C5 [23:16:26]Write i2c OK [23:16:26]MH_I2C_Read... [23:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:26]Read from MH i2c: E2 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 0E 00 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 0E 00 3A 0E 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 98 [23:16:26]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:16:26]wFMCommunicate OK [23:16:26]SAM_PROTO_GetShiftState done [23:16:26]FM_GetShiftState done [23:16:26]req_shift_opened done [23:16:26]requested_item shift.open_date is exist - process it [23:16:26]req_shift_open_date [23:16:26]req_shift_open_date done [23:16:26]produce_requested_data done [23:16:26]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57896,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:16:26]process_action_free close_receipt [23:16:26]json_value_free [23:16:26]json_value_free done [23:16:26]process_json_proto returns [23:16:26]Send response to host [23:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57896,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:16:26]free response buf [23:16:26]execute_script done [23:16:26]execute_script returns [23:16:26]free content buf [23:16:26]Sock 8.Close socket [23:16:26]Sock 8.Thread stoped [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]OFD Sender: No OFD packet to send [23:17:29]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:03]accept exits with 9 [23:18:03]New connection [23:18:03]New thread 3066735972 created [23:18:03]Thread 3066592612 joined [23:18:03]Waiting for new connection... [23:18:03] Sock 9.Parse request [23:18:03]Sock 9.Check first char [23:18:03]Sock 9.First char is OK [23:18:03]request: POST /json_proto HTTP/1.0 [23:18:03]Method: POST [23:18:03]URL: /json_proto [23:18:03]Method is POST - this is cgi request [23:18:03]url: /json_proto [23:18:03]query_string will be loaded in cgi processing [23:18:03]execute_cgi json_proto POST (null) [23:18:03]execute_cgi path=json_proto method=POST [23:18:03]POST find Content-Length [23:18:03]Host: 172.17.60.68:8080 [23:18:03]Content-Length: 682 [23:18:03]Content-Type: application/json [23:18:03] [23:18:03]POST finish read [23:18:03]Found Content-Length = 682 [23:18:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:18:03]execute_script... [23:18:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:18:03]POST & json_proto [23:18:03]process_json_proto [23:18:03]json parsed OK: [23:18:03]protocol is kg_v1.0 [23:18:03]action value=close_receipt [23:18:03]process_action close_receipt [23:18:03]cmd_close_receipt [23:18:03]MH_GetDate [23:18:03]Write to MH i2c: F0 00 00 3B 0E 38 [23:18:03]Write i2c OK [23:18:03]MH_I2C_Read... [23:18:03]Read from MH i2c: F0 [23:18:03]MH_I2C_Read... [23:18:03]Read from MH i2c: F0 09 00 [23:18:03]MH_I2C_Read... [23:18:03]Read from MH i2c: F0 09 00 3B 0E 00 AC FD 5C 66 8D A7 02 66 48 [23:18:03]GetLastDocTimeStamp 1717370182 [23:18:03]current date 1717370284 [23:18:03]FM_GetShiftState [23:18:03]SAM_PROTO_GetShiftState [23:18:03]wFMCommunicate request_size=4 [23:18:03]MH_SAM_APDU [23:18:03]CAPDU: 80 13 01 00 [23:18:03]Write to MH i2c: E2 08 00 3C 0E 80 13 01 00 00 00 00 00 C7 [23:18:03]Write i2c OK [23:18:03]MH_I2C_Read... [23:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:03]Read from MH i2c: E2 [23:18:03]MH_I2C_Read... [23:18:03]Read from MH i2c: E2 0E 00 [23:18:03]MH_I2C_Read... [23:18:03]Read from MH i2c: E2 0E 00 3C 0E 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 9A [23:18:03]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:18:03]wFMCommunicate OK [23:18:03]SAM_PROTO_GetShiftState done [23:18:03]FM_GetShiftState done [23:18:03]opened in 1717288520 [23:18:03]opened+sec_in_day 1717374920 [23:18:03]quantity*price = 100064 [23:18:03]sum+1 = 100066 [23:18:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 724 02.06.2024 23:18 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57897 ФПД: 224809029793327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231804&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57897&fm=224809029793327&tin=02508201610067®Number=0000000000151680&sum=100000 [23:18:04]StoreToDocumentArchive [23:18:04]shift 69 fd 57897 [23:18:04]save to /storage/0069/doc_00057897 [23:18:04]save last doc name /storage/0069/doc_00057897 to /storage/kkm_last_doc_name [23:18:04]save OK [23:18:04]Clear old archive folders... [23:18:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:18:04]tlvbuf is 01BB6D60 [23:18:04]SAM_PROTO_ClearQueue [23:18:04]wFMCommunicate request_size=4 [23:18:04]MH_SAM_APDU [23:18:04]CAPDU: 80 09 00 00 [23:18:04]Write to MH i2c: E2 08 00 49 0E 80 09 00 00 00 00 00 00 C9 [23:18:04]Write i2c OK [23:18:04]MH_I2C_Read... [23:18:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:18:04]Read from MH i2c: E2 [23:18:04]MH_I2C_Read... [23:18:04]Read from MH i2c: E2 03 00 [23:18:04]MH_I2C_Read... [23:18:04]Read from MH i2c: E2 03 00 49 0E 00 90 00 CB [23:18:04]RAPDU: 90 00 [23:18:04]wFMCommunicate OK [23:18:04]SAM_PROTO_ClearQueue done [23:18:04]KKMCreateOFDPacket [23:18:04]OFDProtocolAddRootSTLVToBuf [23:18:04]FM_MakeSignedData [23:18:04]FM_MakeSignedData [23:18:04]SAM_PROTO_SignData [23:18:04]wFMCommunicate request_size=4 [23:18:04]MH_SAM_APDU [23:18:04]CAPDU: 80 0D 01 02 [23:18:04]Write to MH i2c: E2 08 00 4A 0E 80 0D 01 02 00 00 00 00 D1 [23:18:04]Write i2c OK [23:18:04]MH_I2C_Read... [23:18:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:18:04]Read from MH i2c: E2 [23:18:04]MH_I2C_Read... [23:18:04]Read from MH i2c: E2 03 00 [23:18:04]MH_I2C_Read... [23:18:04]Read from MH i2c: E2 03 00 4A 0E 00 90 00 CC [23:18:04]RAPDU: 90 00 [23:18:04]wFMCommunicate OK [23:18:04]wFMCommunicate request_size=255 [23:18:04]MH_SAM_APDU [23:18:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D4 02 00 00 F4 03 04 00 AC FD 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 29 E2 00 00 35 04 06 00 CC [23:18:04]Write to MH i2c: E2 02 01 4B 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D4 02 00 00 F4 03 04 00 AC FD 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 29 E2 00 00 35 04 06 00 CC 00 00 2E [23:18:04]Write i2c OK [23:18:04]MH_I2C_Read... [23:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:04]Read from MH i2c: E2 [23:18:04]MH_I2C_Read... [23:18:04]Read from MH i2c: E2 03 00 [23:18:04]MH_I2C_Read... [23:18:04]Read from MH i2c: E2 03 00 4B 0E 00 90 00 CD [23:18:04]RAPDU: 90 00 [23:18:04]wFMCommunicate OK [23:18:04]wFMCommunicate request_size=10 [23:18:04]MH_SAM_APDU [23:18:04]CAPDU: 80 0D 02 02 05 76 6E 5C F6 2F [23:18:04]Write to MH i2c: E2 0D 00 4C 0E 80 0D 02 02 05 00 76 6E 5C F6 2F 00 00 43 [23:18:04]Write i2c OK [23:18:04]MH_I2C_Read... [23:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:04]Read from MH i2c: E2 [23:18:04]MH_I2C_Read... [23:18:04]Read from MH i2c: E2 03 00 [23:18:04]MH_I2C_Read... [23:18:04]Read from MH i2c: E2 03 00 4C 0E 00 90 00 CE [23:18:04]RAPDU: 90 00 [23:18:04]wFMCommunicate OK [23:18:04]wFMCommunicate request_size=4 [23:18:04]MH_SAM_APDU [23:18:04]CAPDU: 80 0D 03 02 [23:18:04]Write to MH i2c: E2 08 00 4D 0E 80 0D 03 02 00 00 00 00 D6 [23:18:04]Write i2c OK [23:18:04]MH_I2C_Read... [23:18:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:18:05]OFD Sender: No OFD packet to send [23:18:05]Read from MH i2c: E2 [23:18:05]MH_I2C_Read... [23:18:05]Read from MH i2c: E2 0B 00 [23:18:05]MH_I2C_Read... [23:18:05]Read from MH i2c: E2 0B 00 4D 0E 00 28 6B A0 2B 14 D1 56 28 90 00 98 [23:18:05]RAPDU: 28 6B A0 2B 14 D1 56 28 90 00 [23:18:05]wFMCommunicate OK [23:18:05]SAM_PROTO_SignData done [23:18:05]FM_MakeSignedData done [23:18:05]CreateOFDProtocolMessage [23:18:05]wFMCommunicate request_size=4 [23:18:05]MH_SAM_APDU [23:18:05]CAPDU: 80 11 00 00 [23:18:05]Write to MH i2c: E2 08 00 4E 0E 80 11 00 00 00 00 00 00 D6 [23:18:05]Write i2c OK [23:18:05]MH_I2C_Read... [23:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:05]Read from MH i2c: E2 [23:18:05]MH_I2C_Read... [23:18:05]Read from MH i2c: E2 17 00 [23:18:05]MH_I2C_Read... [23:18:05]Read from MH i2c: E2 17 00 4E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 29 [23:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:18:05]wFMCommunicate OK [23:18:05]CreateOFDProtocolMessage done [23:18:05]OFDSenderStorePacket 57897 [23:18:05]StoreOFDPacket docnum=57897 [23:18:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 9A EC 07 01 B1 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D4 02 00 00 F4 03 04 00 AC FD 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 29 E2 00 00 35 04 06 00 CC 76 6E 5C F6 2F 28 6B A0 2B 14 D1 56 28 [23:18:05]CheckFolder [23:18:05]dirname=/storage/ofd_packets [23:18:05]CheckFolder done [23:18:05]ProducePacketName [23:18:05]name=ofd_packets/00057897 [23:18:05]NVStorageSaveData ofd_packets/00057897 [23:18:05]File name is /storage/ofd_packets/00057897 [23:18:05]Write 301 bytes [23:18:05]NVStorageSaveData done [23:18:05]OFDSenderStorePacket done [23:18:05]KKMCreateOFDPacket done [23:18:05]NVStorageSaveData kkm_last_timestamp [23:18:05]File name is /storage/kkm_last_timestamp [23:18:05]Write 4 bytes [23:18:05]NVStorageSaveData done [23:18:05]ExternCall_PrintAddStr [23:18:05]wPrintStart [23:18:05]Write to MH i2c: 01 00 00 4F 0E 5D [23:18:05]Write i2c OK [23:18:05]MH_I2C_Read... [23:18:05]Read from MH i2c: 01 [23:18:05]MH_I2C_Read... [23:18:05]Read from MH i2c: 01 07 00 [23:18:05]MH_I2C_Read... [23:18:05]Read from MH i2c: 01 07 00 4F 0E 00 00 00 00 00 FF 0F 72 [23:18:05]RasterBufferAndPrint [23:18:05]line Счет N : (1)543242 [23:18:05]line ИНН: 02508201610067 [23:18:05]line Контрольно-Кассовый Чек [23:18:05]line ПРОДАЖА [23:18:05]line ТРК (МРК, ГНК) : 42 [23:18:05]line Товар: 2710124130 [23:18:05]line Аи-92-К-5 [23:18:05]line 15.070 * 66.40 [23:18:05]line = 1000.65 [23:18:05]line НДС 12% НСП 1% [23:18:05]line > о реализуемом товаре [23:18:05]line ОКРУГЛЕНИЕ: -0.65 [23:18:05]line ИТОГО: 1000.00 [23:18:05]line Внесено: 1000.00 [23:18:05]line СДАЧА: 0.00 [23:18:05]line НСП 1% : 8.85 [23:18:05]line НДС 12% : 106.26 [23:18:05]line Наличными: 1000.00 [23:18:05]line Безнал.: 0.00 [23:18:05]line Место: АЗС № 117 "Партнер Нефть" [23:18:05]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:18:05]line СНО: Общий режим [23:18:05]line Чек 724 02.06.2024 23:18 [23:18:05]line Смена: 69 ФФД: 1.0 [23:18:05]line ЗНМ: 0300000048 [23:18:05]line РНМ: 0000000000151680 [23:18:05]line Версия ККМ: v1.0 [23:18:05]line ФМ: 0000000000959414 [23:18:05]line ФД: 57897 [23:18:05]line ФПД: 224809029793327 [23:18:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231804&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57897&fm=224809029793327&tin=02508201610067®Number=0000000000151680&sum=100000 [23:18:05]OFD Sender: Processing packet 57897 [packets to send 50, broken 49] [23:18:05]ProducePacketName [23:18:05]name=ofd_packets/00057897 [23:18:05]OFD Sender: To server: pG, [23:18:05]CommunicateWithHost lk.salyk.kg:30040 [23:18:05]ConnectInit lk.salyk.kg [23:18:05]written 0, free lines is 4095 [23:18:05]Connected sock=10 [23:18:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 9A EC 07 01 B1 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D4 02 00 00 F4 03 04 00 AC FD 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 29 E2 00 00 35 04 06 00 CC 76 6E 5C F6 2F 28 6B A0 2B 14 D1 56 28 [23:18:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 3C 2F 47 00 00 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 29 E2 00 00 F4 03 04 00 7C A8 5C 66 B6 04 01 00 00 43 32 A3 F5 93 82 09 58 [23:18:05]CommunicateWithHost err = 0 [23:18:05]CheckOFDResponse [23:18:05]1017 (14) - 77093643461234 [23:18:05]1041 (16) - 0000000000959414 [23:18:05]1040 (4) - 57897 [23:18:05]1012 (4) - 02.06.2024 17:14 [23:18:05]1206 (1) - 0 [23:18:05]OFD Sender: Remove packet 57897 [23:18:05]ProducePacketName [23:18:05]name=ofd_packets/00057897 [23:18:05]NVStorageDeleteData [23:18:05]Write to MH i2c: 01 00 00 7A 0E 88 [23:18:05]Write i2c OK [23:18:05]MH_I2C_Read... [23:18:05]Read from MH i2c: 01 [23:18:05]MH_I2C_Read... [23:18:05]Read from MH i2c: 01 07 00 [23:18:05]MH_I2C_Read... [23:18:05]Read from MH i2c: 01 07 00 7A 0E 00 00 00 00 00 AF 0C 4A [23:18:05]RasterBufferAndPrint [23:18:05]line [23:18:05]line [23:18:05]line [23:18:05]line [23:18:05]line [23:18:05]written 0, free lines is 3251 [23:18:05]MH_Cut [23:18:05]Write to MH i2c: D1 01 00 81 0E 01 61 [23:18:05]Write i2c OK [23:18:05]MH_I2C_Read... [23:18:05]Read from MH i2c: D1 [23:18:05]MH_I2C_Read... [23:18:05]Read from MH i2c: D1 01 00 [23:18:05]MH_I2C_Read... [23:18:05]Read from MH i2c: D1 01 00 81 0E 00 60 [23:18:05]Write to MH i2c: 01 00 00 82 0E 90 [23:18:05]Write i2c OK [23:18:05]MH_I2C_Read... [23:18:06]OFD Sender: No OFD packet to send [23:18:06]*** Cut start [23:18:06]*** Partial cut [23:18:06]*** CUTSNS_PIN = 1 [23:18:06]*** CUTSNS_PIN = 0 [23:18:07]*** Brake cut motor [23:18:07]Read from MH i2c: 01 [23:18:07]MH_I2C_Read... [23:18:07]*** Stop cut motor [23:18:07]*** Cut end [23:18:07]Read from MH i2c: 01 07 00 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: 01 07 00 82 0E 00 00 00 00 00 FF 0F A5 [23:18:07]process_action close_receipt done [23:18:07]requested_data is exist [23:18:07]produce_requested_data [23:18:07]requested_item fm.sn is exist - process it [23:18:07]wFMCommunicate request_size=4 [23:18:07]MH_SAM_APDU [23:18:07]CAPDU: 80 11 00 00 [23:18:07]Write to MH i2c: E2 08 00 83 0E 80 11 00 00 00 00 00 00 0B [23:18:07]Write i2c OK [23:18:07]MH_I2C_Read... [23:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:07]Read from MH i2c: E2 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 17 00 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 17 00 83 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 5E [23:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:18:07]wFMCommunicate OK [23:18:07]requested_item fd.num is exist - process it [23:18:07]SAM_PROTO_GetFieldsCounters [23:18:07]wFMCommunicate request_size=4 [23:18:07]MH_SAM_APDU [23:18:07]CAPDU: 80 13 00 00 [23:18:07]Write to MH i2c: E2 08 00 84 0E 80 13 00 00 00 00 00 00 0E [23:18:07]Write i2c OK [23:18:07]MH_I2C_Read... [23:18:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:07]Read from MH i2c: E2 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 62 00 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 62 00 84 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 29 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D4 02 00 00 5E 04 04 00 D4 02 00 00 57 04 04 00 D5 02 00 00 19 04 04 00 00 00 00 00 90 00 FD [23:18:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 29 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D4 02 00 00 5E 04 04 00 D4 02 00 00 57 04 04 00 D5 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:07]wFMCommunicate OK [23:18:07]SAM_PROTO_GetFieldsCounters done [23:18:07]requested_item shift.num is exist - process it [23:18:07]requested_item shift.opened is exist - process it [23:18:07]req_shift_opened [23:18:07]FM_GetShiftState [23:18:07]SAM_PROTO_GetShiftState [23:18:07]wFMCommunicate request_size=4 [23:18:07]MH_SAM_APDU [23:18:07]CAPDU: 80 13 01 00 [23:18:07]Write to MH i2c: E2 08 00 85 0E 80 13 01 00 00 00 00 00 10 [23:18:07]Write i2c OK [23:18:07]MH_I2C_Read... [23:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:07]Read from MH i2c: E2 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 0E 00 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 0E 00 85 0E 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 E3 [23:18:07]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:18:07]wFMCommunicate OK [23:18:07]SAM_PROTO_GetShiftState done [23:18:07]FM_GetShiftState done [23:18:07]req_shift_opened done [23:18:07]requested_item shift.open_date is exist - process it [23:18:07]req_shift_open_date [23:18:07]req_shift_open_date done [23:18:07]produce_requested_data done [23:18:07]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57897,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:18:07]process_action_free close_receipt [23:18:07]json_value_free [23:18:07]json_value_free done [23:18:07]process_json_proto returns [23:18:07]Send response to host [23:18:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57897,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:18:07]free response buf [23:18:07]execute_script done [23:18:07]execute_script returns [23:18:07]free content buf [23:18:07]Sock 9.Close socket [23:18:07]Sock 9.Thread stoped [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:52]accept exits with 8 [23:19:52]New connection [23:19:52]New thread 3066592612 created [23:19:52]Thread 3066735972 joined [23:19:52]Waiting for new connection... [23:19:52] Sock 8.Parse request [23:19:52]Sock 8.Check first char [23:19:52]Sock 8.First char is OK [23:19:52]request: POST /json_proto HTTP/1.0 [23:19:52]Method: POST [23:19:52]URL: /json_proto [23:19:52]Method is POST - this is cgi request [23:19:52]url: /json_proto [23:19:52]query_string will be loaded in cgi processing [23:19:52]execute_cgi json_proto POST (null) [23:19:52]execute_cgi path=json_proto method=POST [23:19:52]POST find Content-Length [23:19:52]Host: 172.17.60.68:8080 [23:19:52]Content-Length: 679 [23:19:52]Content-Type: application/json [23:19:52] [23:19:52]POST finish read [23:19:52]Found Content-Length = 679 [23:19:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [23:19:52]execute_script... [23:19:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [23:19:52]POST & json_proto [23:19:52]process_json_proto [23:19:52]json parsed OK: [23:19:52]protocol is kg_v1.0 [23:19:52]action value=close_receipt [23:19:52]process_action close_receipt [23:19:52]cmd_close_receipt [23:19:52]MH_GetDate [23:19:52]Write to MH i2c: F0 00 00 86 0E 83 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: F0 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: F0 09 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: F0 09 00 86 0E 00 19 FE 5C 66 8D A7 02 66 01 [23:19:52]GetLastDocTimeStamp 1717370284 [23:19:52]current date 1717370393 [23:19:52]FM_GetShiftState [23:19:52]SAM_PROTO_GetShiftState [23:19:52]wFMCommunicate request_size=4 [23:19:52]MH_SAM_APDU [23:19:52]CAPDU: 80 13 01 00 [23:19:52]Write to MH i2c: E2 08 00 87 0E 80 13 01 00 00 00 00 00 12 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:52]Read from MH i2c: E2 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 0E 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 0E 00 87 0E 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 E5 [23:19:52]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:19:52]wFMCommunicate OK [23:19:52]SAM_PROTO_GetShiftState done [23:19:52]FM_GetShiftState done [23:19:52]opened in 1717288520 [23:19:52]opened+sec_in_day 1717374920 [23:19:52]quantity*price = 100018 [23:19:52]sum+1 = 100020 [23:19:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 725 02.06.2024 23:19 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57898 ФПД: 152044161072184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231953&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57898&fm=152044161072184&tin=02508201610067®Number=0000000000151680&sum=100000 [23:19:53]StoreToDocumentArchive [23:19:53]shift 69 fd 57898 [23:19:53]save to /storage/0069/doc_00057898 [23:19:53]save last doc name /storage/0069/doc_00057898 to /storage/kkm_last_doc_name [23:19:53]save OK [23:19:53]Clear old archive folders... [23:19:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:19:53]tlvbuf is 01861B30 [23:19:53]SAM_PROTO_ClearQueue [23:19:53]wFMCommunicate request_size=4 [23:19:53]MH_SAM_APDU [23:19:53]CAPDU: 80 09 00 00 [23:19:53]Write to MH i2c: E2 08 00 94 0E 80 09 00 00 00 00 00 00 14 [23:19:53]Write i2c OK [23:19:53]MH_I2C_Read... [23:19:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:53]Read from MH i2c: E2 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 03 00 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 03 00 94 0E 00 90 00 16 [23:19:53]RAPDU: 90 00 [23:19:53]wFMCommunicate OK [23:19:53]SAM_PROTO_ClearQueue done [23:19:53]KKMCreateOFDPacket [23:19:53]OFDProtocolAddRootSTLVToBuf [23:19:53]FM_MakeSignedData [23:19:53]FM_MakeSignedData [23:19:53]SAM_PROTO_SignData [23:19:53]wFMCommunicate request_size=4 [23:19:53]MH_SAM_APDU [23:19:53]CAPDU: 80 0D 01 02 [23:19:53]Write to MH i2c: E2 08 00 95 0E 80 0D 01 02 00 00 00 00 1C [23:19:53]Write i2c OK [23:19:53]MH_I2C_Read... [23:19:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:53]Read from MH i2c: E2 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 03 00 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 03 00 95 0E 00 90 00 17 [23:19:53]RAPDU: 90 00 [23:19:53]wFMCommunicate OK [23:19:53]wFMCommunicate request_size=255 [23:19:53]MH_SAM_APDU [23:19:53]CAPDU: 80 0D 02 02 FA 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 D5 02 00 00 F4 03 04 00 19 FE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2A E2 00 00 35 04 06 00 8A 48 8A 35 [23:19:53]Write to MH i2c: E2 02 01 96 0E 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 D5 02 00 00 F4 03 04 00 19 FE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2A E2 00 00 35 04 06 00 8A 48 8A 35 00 00 10 [23:19:53]Write i2c OK [23:19:53]MH_I2C_Read... [23:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:54]Read from MH i2c: E2 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: E2 03 00 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: E2 03 00 96 0E 00 90 00 18 [23:19:54]RAPDU: 90 00 [23:19:54]wFMCommunicate OK [23:19:54]wFMCommunicate request_size=7 [23:19:54]MH_SAM_APDU [23:19:54]CAPDU: 80 0D 02 02 02 FC 38 [23:19:54]Write to MH i2c: E2 0A 00 97 0E 80 0D 02 02 02 00 FC 38 00 00 57 [23:19:54]Write i2c OK [23:19:54]MH_I2C_Read... [23:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:54]Read from MH i2c: E2 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: E2 03 00 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: E2 03 00 97 0E 00 90 00 19 [23:19:54]RAPDU: 90 00 [23:19:54]wFMCommunicate OK [23:19:54]wFMCommunicate request_size=4 [23:19:54]MH_SAM_APDU [23:19:54]CAPDU: 80 0D 03 02 [23:19:54]Write to MH i2c: E2 08 00 98 0E 80 0D 03 02 00 00 00 00 21 [23:19:54]Write i2c OK [23:19:54]MH_I2C_Read... [23:19:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:54]Read from MH i2c: E2 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: E2 0B 00 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: E2 0B 00 98 0E 00 C0 A1 D2 27 15 E4 23 56 90 00 EE [23:19:54]RAPDU: C0 A1 D2 27 15 E4 23 56 90 00 [23:19:54]wFMCommunicate OK [23:19:54]SAM_PROTO_SignData done [23:19:54]FM_MakeSignedData done [23:19:54]CreateOFDProtocolMessage [23:19:54]wFMCommunicate request_size=4 [23:19:54]MH_SAM_APDU [23:19:54]CAPDU: 80 11 00 00 [23:19:54]Write to MH i2c: E2 08 00 99 0E 80 11 00 00 00 00 00 00 21 [23:19:54]Write i2c OK [23:19:54]MH_I2C_Read... [23:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:54]Read from MH i2c: E2 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: E2 17 00 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: E2 17 00 99 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 74 [23:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:19:54]wFMCommunicate OK [23:19:54]CreateOFDProtocolMessage done [23:19:54]OFDSenderStorePacket 57898 [23:19:54]StoreOFDPacket docnum=57898 [23:19:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 63 54 04 01 97 4C 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 D5 02 00 00 F4 03 04 00 19 FE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2A E2 00 00 35 04 06 00 8A 48 8A 35 FC 38 C0 A1 D2 27 15 E4 23 56 [23:19:54]CheckFolder [23:19:54]dirname=/storage/ofd_packets [23:19:54]CheckFolder done [23:19:54]ProducePacketName [23:19:54]name=ofd_packets/00057898 [23:19:54]NVStorageSaveData ofd_packets/00057898 [23:19:54]File name is /storage/ofd_packets/00057898 [23:19:54]Write 298 bytes [23:19:54]NVStorageSaveData done [23:19:54]OFDSenderStorePacket done [23:19:54]KKMCreateOFDPacket done [23:19:54]NVStorageSaveData kkm_last_timestamp [23:19:54]File name is /storage/kkm_last_timestamp [23:19:54]Write 4 bytes [23:19:54]NVStorageSaveData done [23:19:54]ExternCall_PrintAddStr [23:19:54]wPrintStart [23:19:54]Write to MH i2c: 01 00 00 9A 0E A8 [23:19:54]Write i2c OK [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: 01 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: 01 07 00 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: 01 07 00 9A 0E 00 00 00 00 00 FF 0F BD [23:19:54]RasterBufferAndPrint [23:19:54]line Счет N : (1)543243 [23:19:54]line ИНН: 02508201610067 [23:19:54]line Контрольно-Кассовый Чек [23:19:54]line ПРОДАЖА [23:19:54]line ТРК (МРК, ГНК) : 21 [23:19:54]line Товар: 2710194210 [23:19:54]line ДТ-К-5 [23:19:54]line 13.720 * 72.90 [23:19:54]line = 1000.19 [23:19:54]line НДС 12% НСП 1% [23:19:54]line > о реализуемом товаре [23:19:54]line ОКРУГЛЕНИЕ: -0.19 [23:19:54]line ИТОГО: 1000.00 [23:19:54]line Внесено: 1000.00 [23:19:54]line СДАЧА: 0.00 [23:19:54]line НСП 1% : 8.85 [23:19:54]line НДС 12% : 106.21 [23:19:54]line Наличными: 1000.00 [23:19:54]line Безнал.: 0.00 [23:19:54]line Место: АЗС № 117 "Партнер Нефть" [23:19:54]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:19:54]line СНО: Общий режим [23:19:54]line Чек 725 02.06.2024 23:19 [23:19:54]line Смена: 69 ФФД: 1.0 [23:19:54]line ЗНМ: 0300000048 [23:19:54]line РНМ: 0000000000151680 [23:19:54]line Версия ККМ: v1.0 [23:19:54]line ФМ: 0000000000959414 [23:19:54]line ФД: 57898 [23:19:54]line ФПД: 152044161072184 [23:19:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231953&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57898&fm=152044161072184&tin=02508201610067®Number=0000000000151680&sum=100000 [23:19:54]OFD Sender: Processing packet 57898 [packets to send 50, broken 49] [23:19:54]ProducePacketName [23:19:54]name=ofd_packets/00057898 [23:19:54]OFD Sender: To server: pG, [23:19:54]CommunicateWithHost lk.salyk.kg:30040 [23:19:54]ConnectInit lk.salyk.kg [23:19:54]written 0, free lines is 4095 [23:19:54]Connected sock=10 [23:19:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 63 54 04 01 97 4C 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 D5 02 00 00 F4 03 04 00 19 FE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2A E2 00 00 35 04 06 00 8A 48 8A 35 FC 38 C0 A1 D2 27 15 E4 23 56 [23:19:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 B3 F5 47 00 58 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2A E2 00 00 F4 03 04 00 E9 A8 5C 66 B6 04 01 00 00 FE 5E 38 3A F7 F0 5B ED [23:19:54]CommunicateWithHost err = 0 [23:19:54]CheckOFDResponse [23:19:54]1017 (14) - 77093643461234 [23:19:54]1041 (16) - 0000000000959414 [23:19:54]1040 (4) - 57898 [23:19:54]1012 (4) - 02.06.2024 17:16 [23:19:54]1206 (1) - 0 [23:19:54]OFD Sender: Remove packet 57898 [23:19:54]ProducePacketName [23:19:54]name=ofd_packets/00057898 [23:19:54]NVStorageDeleteData [23:19:55]Write to MH i2c: 01 00 00 C5 0E D3 [23:19:55]Write i2c OK [23:19:55]MH_I2C_Read... [23:19:55]Read from MH i2c: 01 [23:19:55]MH_I2C_Read... [23:19:55]Read from MH i2c: 01 07 00 [23:19:55]MH_I2C_Read... [23:19:55]Read from MH i2c: 01 07 00 C5 0E 00 00 00 00 00 AD 0C 93 [23:19:55]RasterBufferAndPrint [23:19:55]line [23:19:55]line [23:19:55]line [23:19:55]line [23:19:55]line [23:19:55]written 0, free lines is 3251 [23:19:55]MH_Cut [23:19:55]Write to MH i2c: D1 01 00 CC 0E 01 AC [23:19:55]Write i2c OK [23:19:55]MH_I2C_Read... [23:19:55]Read from MH i2c: D1 [23:19:55]MH_I2C_Read... [23:19:55]Read from MH i2c: D1 01 00 [23:19:55]MH_I2C_Read... [23:19:55]Read from MH i2c: D1 01 00 CC 0E 00 AB [23:19:55]Write to MH i2c: 01 00 00 CD 0E DB [23:19:55]Write i2c OK [23:19:55]MH_I2C_Read... [23:19:55]OFD Sender: No OFD packet to send [23:19:55]*** Cut start [23:19:55]*** Partial cut [23:19:55]*** CUTSNS_PIN = 1 [23:19:55]*** CUTSNS_PIN = 0 [23:19:56]*** Brake cut motor [23:19:56]Read from MH i2c: 01 [23:19:56]MH_I2C_Read... [23:19:56]*** Stop cut motor [23:19:56]*** Cut end [23:19:56]Read from MH i2c: 01 07 00 [23:19:56]MH_I2C_Read... [23:19:56]Read from MH i2c: 01 07 00 CD 0E 00 00 00 00 00 FF 0F F0 [23:19:56]process_action close_receipt done [23:19:56]requested_data is exist [23:19:56]produce_requested_data [23:19:56]requested_item fm.sn is exist - process it [23:19:56]wFMCommunicate request_size=4 [23:19:56]MH_SAM_APDU [23:19:56]CAPDU: 80 11 00 00 [23:19:56]Write to MH i2c: E2 08 00 CE 0E 80 11 00 00 00 00 00 00 56 [23:19:56]Write i2c OK [23:19:56]MH_I2C_Read... [23:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:56]Read from MH i2c: E2 [23:19:56]MH_I2C_Read... [23:19:56]Read from MH i2c: E2 17 00 [23:19:56]MH_I2C_Read... [23:19:56]Read from MH i2c: E2 17 00 CE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 A9 [23:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:19:56]wFMCommunicate OK [23:19:56]requested_item fd.num is exist - process it [23:19:56]SAM_PROTO_GetFieldsCounters [23:19:56]wFMCommunicate request_size=4 [23:19:56]MH_SAM_APDU [23:19:56]CAPDU: 80 13 00 00 [23:19:56]Write to MH i2c: E2 08 00 CF 0E 80 13 00 00 00 00 00 00 59 [23:19:56]Write i2c OK [23:19:56]MH_I2C_Read... [23:19:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:56]Read from MH i2c: E2 [23:19:56]MH_I2C_Read... [23:19:56]Read from MH i2c: E2 62 00 [23:19:56]MH_I2C_Read... [23:19:56]Read from MH i2c: E2 62 00 CF 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 2A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D5 02 00 00 5E 04 04 00 D5 02 00 00 57 04 04 00 D6 02 00 00 19 04 04 00 00 00 00 00 90 00 4C [23:19:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 2A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D5 02 00 00 5E 04 04 00 D5 02 00 00 57 04 04 00 D6 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:56]wFMCommunicate OK [23:19:56]SAM_PROTO_GetFieldsCounters done [23:19:56]requested_item shift.num is exist - process it [23:19:56]requested_item shift.opened is exist - process it [23:19:56]req_shift_opened [23:19:56]FM_GetShiftState [23:19:56]SAM_PROTO_GetShiftState [23:19:56]wFMCommunicate request_size=4 [23:19:56]MH_SAM_APDU [23:19:56]CAPDU: 80 13 01 00 [23:19:56]Write to MH i2c: E2 08 00 D0 0E 80 13 01 00 00 00 00 00 5B [23:19:56]Write i2c OK [23:19:56]MH_I2C_Read... [23:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:56]Read from MH i2c: E2 [23:19:56]MH_I2C_Read... [23:19:56]Read from MH i2c: E2 0E 00 [23:19:56]MH_I2C_Read... [23:19:56]Read from MH i2c: E2 0E 00 D0 0E 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 2E [23:19:56]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:19:56]wFMCommunicate OK [23:19:56]SAM_PROTO_GetShiftState done [23:19:56]FM_GetShiftState done [23:19:56]req_shift_opened done [23:19:56]requested_item shift.open_date is exist - process it [23:19:56]req_shift_open_date [23:19:56]req_shift_open_date done [23:19:56]produce_requested_data done [23:19:56]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57898,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:19:56]process_action_free close_receipt [23:19:56]json_value_free [23:19:56]json_value_free done [23:19:56]process_json_proto returns [23:19:56]Send response to host [23:19:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57898,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:19:56]free response buf [23:19:56]execute_script done [23:19:56]execute_script returns [23:19:56]free content buf [23:19:56]Sock 8.Close socket [23:19:56]Sock 8.Thread stoped [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:36]accept exits with 9 [23:21:36]New connection [23:21:36]New thread 3066735972 created [23:21:36]Thread 3066592612 joined [23:21:36]Waiting for new connection... [23:21:36] Sock 9.Parse request [23:21:36]Sock 9.Check first char [23:21:36]Sock 9.First char is OK [23:21:36]request: POST /json_proto HTTP/1.0 [23:21:36]Method: POST [23:21:36]URL: /json_proto [23:21:36]Method is POST - this is cgi request [23:21:36]url: /json_proto [23:21:36]query_string will be loaded in cgi processing [23:21:36]execute_cgi json_proto POST (null) [23:21:36]execute_cgi path=json_proto method=POST [23:21:36]POST find Content-Length [23:21:36]Host: 172.17.60.68:8080 [23:21:36]Content-Length: 990 [23:21:36]Content-Type: application/json [23:21:36] [23:21:36]POST finish read [23:21:36]Found Content-Length = 990 [23:21:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.90, "quantity" : 48.380, "sum" : 1640.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 48.38 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1640.00, "payments": [ { "type": 0, "sum" : 1640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:36]execute_script... [23:21:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.90, "quantity" : 48.380, "sum" : 1640.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 48.38 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1640.00, "payments": [ { "type": 0, "sum" : 1640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:36]POST & json_proto [23:21:36]process_json_proto [23:21:36]json parsed OK: [23:21:36]protocol is kg_v1.0 [23:21:36]action value=close_receipt [23:21:36]process_action close_receipt [23:21:36]cmd_close_receipt [23:21:36]MH_GetDate [23:21:36]Write to MH i2c: F0 00 00 D1 0E CE [23:21:36]Write i2c OK [23:21:36]MH_I2C_Read... [23:21:36]Read from MH i2c: F0 [23:21:36]MH_I2C_Read... [23:21:36]Read from MH i2c: F0 09 00 [23:21:36]MH_I2C_Read... [23:21:36]Read from MH i2c: F0 09 00 D1 0E 00 81 FE 5C 66 8D A7 02 66 B4 [23:21:36]GetLastDocTimeStamp 1717370393 [23:21:36]current date 1717370497 [23:21:36]FM_GetShiftState [23:21:36]SAM_PROTO_GetShiftState [23:21:36]wFMCommunicate request_size=4 [23:21:36]MH_SAM_APDU [23:21:36]CAPDU: 80 13 01 00 [23:21:36]Write to MH i2c: E2 08 00 D2 0E 80 13 01 00 00 00 00 00 5D [23:21:36]Write i2c OK [23:21:36]MH_I2C_Read... [23:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:36]Read from MH i2c: E2 [23:21:36]MH_I2C_Read... [23:21:36]Read from MH i2c: E2 0E 00 [23:21:36]MH_I2C_Read... [23:21:36]Read from MH i2c: E2 0E 00 D2 0E 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 30 [23:21:36]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:21:36]wFMCommunicate OK [23:21:36]SAM_PROTO_GetShiftState done [23:21:36]FM_GetShiftState done [23:21:36]opened in 1717288520 [23:21:36]opened+sec_in_day 1717374920 [23:21:36]quantity*price = 164008 [23:21:36]sum+1 = 164009 [23:21:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1640.00 Внесено: 2000.00 СДАЧА: 360.00 НСП 1% : 14.51 НДС 12% : 174.17 Наличными: 1640.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 726 02.06.2024 23:21 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Дисконтная программа СУГ номер 117 сэкономлено 48.38 сом ФМ: 0000000000959414 ФД: 57899 ФПД: 239394246708819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232137&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57899&fm=239394246708819&tin=02508201610067®Number=0000000000151680&sum=164000 [23:21:37]StoreToDocumentArchive [23:21:37]shift 69 fd 57899 [23:21:37]save to /storage/0069/doc_00057899 [23:21:37]save last doc name /storage/0069/doc_00057899 to /storage/kkm_last_doc_name [23:21:37]save OK [23:21:37]Clear old archive folders... [23:21:37]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:21:37]tlvbuf is 019E94A0 [23:21:37]SAM_PROTO_ClearQueue [23:21:37]wFMCommunicate request_size=4 [23:21:37]MH_SAM_APDU [23:21:37]CAPDU: 80 09 00 00 [23:21:37]Write to MH i2c: E2 08 00 DF 0E 80 09 00 00 00 00 00 00 5F [23:21:37]Write i2c OK [23:21:37]MH_I2C_Read... [23:21:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:37]Read from MH i2c: E2 [23:21:37]MH_I2C_Read... [23:21:37]Read from MH i2c: E2 03 00 [23:21:37]MH_I2C_Read... [23:21:37]Read from MH i2c: E2 03 00 DF 0E 00 90 00 61 [23:21:37]RAPDU: 90 00 [23:21:37]wFMCommunicate OK [23:21:37]SAM_PROTO_ClearQueue done [23:21:37]KKMCreateOFDPacket [23:21:37]OFDProtocolAddRootSTLVToBuf [23:21:37]FM_MakeSignedData [23:21:37]FM_MakeSignedData [23:21:37]SAM_PROTO_SignData [23:21:37]wFMCommunicate request_size=4 [23:21:37]MH_SAM_APDU [23:21:37]CAPDU: 80 0D 01 02 [23:21:37]Write to MH i2c: E2 08 00 E0 0E 80 0D 01 02 00 00 00 00 67 [23:21:37]Write i2c OK [23:21:37]MH_I2C_Read... [23:21:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:37]Read from MH i2c: E2 [23:21:37]MH_I2C_Read... [23:21:37]Read from MH i2c: E2 03 00 [23:21:37]MH_I2C_Read... [23:21:37]Read from MH i2c: E2 03 00 E0 0E 00 90 00 62 [23:21:37]RAPDU: 90 00 [23:21:37]wFMCommunicate OK [23:21:37]wFMCommunicate request_size=255 [23:21:37]MH_SAM_APDU [23:21:37]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FC BC 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 A8 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 44 00 00 00 00 07 04 06 00 A0 80 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 02 00 00 F4 03 04 00 81 FE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2B E2 00 00 35 04 06 00 D9 BA [23:21:38]Write to MH i2c: E2 02 01 E1 0E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FC BC 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 A8 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 44 00 00 00 00 07 04 06 00 A0 80 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 02 00 00 F4 03 04 00 81 FE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2B E2 00 00 35 04 06 00 D9 BA 00 00 80 [23:21:38]Write i2c OK [23:21:38]MH_I2C_Read... [23:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:38]Read from MH i2c: E2 [23:21:38]MH_I2C_Read... [23:21:38]Read from MH i2c: E2 03 00 [23:21:38]MH_I2C_Read... [23:21:38]Read from MH i2c: E2 03 00 E1 0E 00 90 00 63 [23:21:38]RAPDU: 90 00 [23:21:38]wFMCommunicate OK [23:21:38]wFMCommunicate request_size=9 [23:21:38]MH_SAM_APDU [23:21:38]CAPDU: 80 0D 02 02 04 51 09 4E 53 [23:21:38]Write to MH i2c: E2 0C 00 E2 0E 80 0D 02 02 04 00 51 09 4E 53 00 00 6D [23:21:38]Write i2c OK [23:21:38]MH_I2C_Read... [23:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:38]Read from MH i2c: E2 [23:21:38]MH_I2C_Read... [23:21:38]Read from MH i2c: E2 03 00 [23:21:38]MH_I2C_Read... [23:21:38]Read from MH i2c: E2 03 00 E2 0E 00 90 00 64 [23:21:38]RAPDU: 90 00 [23:21:38]wFMCommunicate OK [23:21:38]wFMCommunicate request_size=4 [23:21:38]MH_SAM_APDU [23:21:38]CAPDU: 80 0D 03 02 [23:21:38]Write to MH i2c: E2 08 00 E3 0E 80 0D 03 02 00 00 00 00 6C [23:21:38]Write i2c OK [23:21:38]MH_I2C_Read... [23:21:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:38]Read from MH i2c: E2 [23:21:38]MH_I2C_Read... [23:21:38]Read from MH i2c: E2 0B 00 [23:21:38]MH_I2C_Read... [23:21:38]Read from MH i2c: E2 0B 00 E3 0E 00 80 35 22 C2 6B FF 54 FB 90 00 BF [23:21:38]RAPDU: 80 35 22 C2 6B FF 54 FB 90 00 [23:21:38]wFMCommunicate OK [23:21:38]SAM_PROTO_SignData done [23:21:38]FM_MakeSignedData done [23:21:38]CreateOFDProtocolMessage [23:21:38]wFMCommunicate request_size=4 [23:21:38]MH_SAM_APDU [23:21:38]CAPDU: 80 11 00 00 [23:21:38]Write to MH i2c: E2 08 00 E4 0E 80 11 00 00 00 00 00 00 6C [23:21:38]Write i2c OK [23:21:38]MH_I2C_Read... [23:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:38]Read from MH i2c: E2 [23:21:38]MH_I2C_Read... [23:21:38]Read from MH i2c: E2 17 00 [23:21:38]MH_I2C_Read... [23:21:38]Read from MH i2c: E2 17 00 E4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 BF [23:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:21:38]wFMCommunicate OK [23:21:38]CreateOFDProtocolMessage done [23:21:38]OFDSenderStorePacket 57899 [23:21:38]StoreOFDPacket docnum=57899 [23:21:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 65 28 06 01 3D 10 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FC BC 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 A8 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 44 00 00 00 00 07 04 06 00 A0 80 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 02 00 00 F4 03 04 00 81 FE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2B E2 00 00 35 04 06 00 D9 BA 51 09 4E 53 80 35 22 C2 6B FF 54 FB [23:21:38]CheckFolder [23:21:38]dirname=/storage/ofd_packets [23:21:38]CheckFolder done [23:21:38]ProducePacketName [23:21:38]name=ofd_packets/00057899 [23:21:38]NVStorageSaveData ofd_packets/00057899 [23:21:38]File name is /storage/ofd_packets/00057899 [23:21:38]Write 300 bytes [23:21:38]NVStorageSaveData done [23:21:38]OFDSenderStorePacket done [23:21:38]KKMCreateOFDPacket done [23:21:38]NVStorageSaveData kkm_last_timestamp [23:21:38]File name is /storage/kkm_last_timestamp [23:21:38]Write 4 bytes [23:21:38]NVStorageSaveData done [23:21:38]ExternCall_PrintAddStr [23:21:38]wPrintStart [23:21:38]Write to MH i2c: 01 00 00 E5 0E F3 [23:21:38]Write i2c OK [23:21:38]MH_I2C_Read... [23:21:38]Read from MH i2c: 01 [23:21:38]MH_I2C_Read... [23:21:38]Read from MH i2c: 01 07 00 [23:21:38]MH_I2C_Read... [23:21:38]Read from MH i2c: 01 07 00 E5 0E 00 00 00 00 00 FF 0F 08 [23:21:38]RasterBufferAndPrint [23:21:38]line Счет N : (1)543241 [23:21:38]line ИНН: 02508201610067 [23:21:38]line Контрольно-Кассовый Чек [23:21:38]line ПРОДАЖА [23:21:38]line ТРК (МРК, ГНК) : 71 [23:21:38]line Товар: 2711190000 [23:21:38]line ГАЗ-К-5 [23:21:38]line 48.380 * 33.90 [23:21:38]line = 1640.08 [23:21:38]line НДС 12% НСП 1% [23:21:38]line > о реализуемом товаре [23:21:38]line ОКРУГЛЕНИЕ: -0.08 [23:21:38]line ИТОГО: 1640.00 [23:21:38]line Внесено: 2000.00 [23:21:38]line СДАЧА: 360.00 [23:21:38]line НСП 1% : 14.51 [23:21:38]line НДС 12% : 174.17 [23:21:38]line Наличными: 1640.00 [23:21:38]line Безнал.: 0.00 [23:21:38]line Место: АЗС № 117 "Партнер Нефть" [23:21:38]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:21:38]line СНО: Общий режим [23:21:38]line Чек 726 02.06.2024 23:21 [23:21:38]line Смена: 69 ФФД: 1.0 [23:21:38]line ЗНМ: 0300000048 [23:21:38]line РНМ: 0000000000151680 [23:21:38]line Версия ККМ: v1.0 [23:21:38]line [23:21:38]line Дисконтная программа [23:21:38]line СУГ [23:21:38]line номер 117 [23:21:38]line сэкономлено 48.38 сом [23:21:38]line ФМ: 0000000000959414 [23:21:38]line ФД: 57899 [23:21:38]line ФПД: 239394246708819 [23:21:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232137&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57899&fm=239394246708819&tin=02508201610067®Number=0000000000151680&sum=164000 [23:21:38]OFD Sender: Processing packet 57899 [packets to send 50, broken 49] [23:21:38]ProducePacketName [23:21:38]name=ofd_packets/00057899 [23:21:38]OFD Sender: To server: pG, [23:21:38]CommunicateWithHost lk.salyk.kg:30040 [23:21:38]ConnectInit lk.salyk.kg [23:21:38]written 0, free lines is 4095 [23:21:38]Connected sock=10 [23:21:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 65 28 06 01 3D 10 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FC BC 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 A8 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 44 00 00 00 00 07 04 06 00 A0 80 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 02 00 00 F4 03 04 00 81 FE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2B E2 00 00 35 04 06 00 D9 BA 51 09 4E 53 80 35 22 C2 6B FF 54 FB [23:21:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 D6 A9 47 00 E0 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2B E2 00 00 F4 03 04 00 51 A9 5C 66 B6 04 01 00 00 2D 13 2D 9B BE 76 C3 8D [23:21:39]CommunicateWithHost err = 0 [23:21:39]CheckOFDResponse [23:21:39]1017 (14) - 77093643461234 [23:21:39]1041 (16) - 0000000000959414 [23:21:39]1040 (4) - 57899 [23:21:39]1012 (4) - 02.06.2024 17:18 [23:21:39]1206 (1) - 0 [23:21:39]OFD Sender: Remove packet 57899 [23:21:39]ProducePacketName [23:21:39]name=ofd_packets/00057899 [23:21:39]NVStorageDeleteData [23:21:39]Write to MH i2c: 01 00 00 15 0F 24 [23:21:39]Write i2c OK [23:21:39]MH_I2C_Read... [23:21:39]Read from MH i2c: 01 [23:21:39]MH_I2C_Read... [23:21:39]Read from MH i2c: 01 07 00 [23:21:39]MH_I2C_Read... [23:21:39]Read from MH i2c: 01 07 00 15 0F 00 00 00 00 00 4E 0C 85 [23:21:39]RasterBufferAndPrint [23:21:39]line [23:21:39]line [23:21:39]line [23:21:39]line [23:21:39]line [23:21:39]written 0, free lines is 3154 [23:21:39]MH_Cut [23:21:39]Write to MH i2c: D1 01 00 1C 0F 01 FD [23:21:39]Write i2c OK [23:21:39]MH_I2C_Read... [23:21:39]Read from MH i2c: D1 [23:21:39]MH_I2C_Read... [23:21:39]Read from MH i2c: D1 01 00 [23:21:39]MH_I2C_Read... [23:21:39]Read from MH i2c: D1 01 00 1C 0F 00 FC [23:21:39]Write to MH i2c: 01 00 00 1D 0F 2C [23:21:39]Write i2c OK [23:21:39]MH_I2C_Read... [23:21:39]OFD Sender: No OFD packet to send [23:21:40]*** Cut start [23:21:40]*** Partial cut [23:21:40]*** CUTSNS_PIN = 1 [23:21:40]*** CUTSNS_PIN = 0 [23:21:40]*** Brake cut motor [23:21:40]Read from MH i2c: 01 [23:21:40]MH_I2C_Read... [23:21:40]*** Stop cut motor [23:21:40]*** Cut end [23:21:40]Read from MH i2c: 01 07 00 [23:21:40]MH_I2C_Read... [23:21:40]Read from MH i2c: 01 07 00 1D 0F 00 00 00 00 00 FF 0F 41 [23:21:40]process_action close_receipt done [23:21:40]requested_data is exist [23:21:40]produce_requested_data [23:21:40]requested_item fm.sn is exist - process it [23:21:40]wFMCommunicate request_size=4 [23:21:40]MH_SAM_APDU [23:21:40]CAPDU: 80 11 00 00 [23:21:40]Write to MH i2c: E2 08 00 1E 0F 80 11 00 00 00 00 00 00 A7 [23:21:40]Write i2c OK [23:21:40]MH_I2C_Read... [23:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:40]Read from MH i2c: E2 [23:21:40]MH_I2C_Read... [23:21:40]Read from MH i2c: E2 17 00 [23:21:40]MH_I2C_Read... [23:21:40]Read from MH i2c: E2 17 00 1E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 FA [23:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:21:40]wFMCommunicate OK [23:21:40]requested_item fd.num is exist - process it [23:21:40]SAM_PROTO_GetFieldsCounters [23:21:40]wFMCommunicate request_size=4 [23:21:40]MH_SAM_APDU [23:21:40]CAPDU: 80 13 00 00 [23:21:40]Write to MH i2c: E2 08 00 1F 0F 80 13 00 00 00 00 00 00 AA [23:21:40]Write i2c OK [23:21:40]MH_I2C_Read... [23:21:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:41]Read from MH i2c: E2 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: E2 62 00 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: E2 62 00 1F 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 2B E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D6 02 00 00 5E 04 04 00 D6 02 00 00 57 04 04 00 D7 02 00 00 19 04 04 00 00 00 00 00 90 00 A1 [23:21:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 2B E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D6 02 00 00 5E 04 04 00 D6 02 00 00 57 04 04 00 D7 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:21:41]wFMCommunicate OK [23:21:41]SAM_PROTO_GetFieldsCounters done [23:21:41]requested_item shift.num is exist - process it [23:21:41]requested_item shift.opened is exist - process it [23:21:41]req_shift_opened [23:21:41]FM_GetShiftState [23:21:41]SAM_PROTO_GetShiftState [23:21:41]wFMCommunicate request_size=4 [23:21:41]MH_SAM_APDU [23:21:41]CAPDU: 80 13 01 00 [23:21:41]Write to MH i2c: E2 08 00 20 0F 80 13 01 00 00 00 00 00 AC [23:21:41]Write i2c OK [23:21:41]MH_I2C_Read... [23:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:41]Read from MH i2c: E2 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: E2 0E 00 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: E2 0E 00 20 0F 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 7F [23:21:41]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:21:41]wFMCommunicate OK [23:21:41]SAM_PROTO_GetShiftState done [23:21:41]FM_GetShiftState done [23:21:41]req_shift_opened done [23:21:41]requested_item shift.open_date is exist - process it [23:21:41]req_shift_open_date [23:21:41]req_shift_open_date done [23:21:41]produce_requested_data done [23:21:41]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57899,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:21:41]process_action_free close_receipt [23:21:41]json_value_free [23:21:41]json_value_free done [23:21:41]process_json_proto returns [23:21:41]Send response to host [23:21:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57899,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:21:41]free response buf [23:21:41]execute_script done [23:21:41]execute_script returns [23:21:41]free content buf [23:21:41]Sock 9.Close socket [23:21:41]Sock 9.Thread stoped [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:38]accept exits with 8 [23:23:38]New connection [23:23:38]New thread 3066592612 created [23:23:38]Thread 3066735972 joined [23:23:38]Waiting for new connection... [23:23:38] Sock 8.Parse request [23:23:38]Sock 8.Check first char [23:23:38]Sock 8.First char is OK [23:23:38]request: POST /json_proto HTTP/1.0 [23:23:38]Method: POST [23:23:38]URL: /json_proto [23:23:38]Method is POST - this is cgi request [23:23:38]url: /json_proto [23:23:38]query_string will be loaded in cgi processing [23:23:38]execute_cgi json_proto POST (null) [23:23:38]execute_cgi path=json_proto method=POST [23:23:38]POST find Content-Length [23:23:38]Host: 172.17.60.68:8080 [23:23:38]Content-Length: 677 [23:23:38]Content-Type: application/json [23:23:38] [23:23:38]POST finish read [23:23:38]Found Content-Length = 677 [23:23:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543244", "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" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:38]execute_script... [23:23:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543244", "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" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:38]POST & json_proto [23:23:38]process_json_proto [23:23:38]json parsed OK: [23:23:38]protocol is kg_v1.0 [23:23:38]action value=close_receipt [23:23:38]process_action close_receipt [23:23:38]cmd_close_receipt [23:23:38]MH_GetDate [23:23:38]Write to MH i2c: F0 00 00 21 0F 1F [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: F0 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: F0 09 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: F0 09 00 21 0F 00 FB FE 5C 66 8D A7 02 66 7F [23:23:38]GetLastDocTimeStamp 1717370497 [23:23:38]current date 1717370619 [23:23:38]FM_GetShiftState [23:23:38]SAM_PROTO_GetShiftState [23:23:38]wFMCommunicate request_size=4 [23:23:38]MH_SAM_APDU [23:23:38]CAPDU: 80 13 01 00 [23:23:38]Write to MH i2c: E2 08 00 22 0F 80 13 01 00 00 00 00 00 AE [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:38]Read from MH i2c: E2 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 0E 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 0E 00 22 0F 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 81 [23:23:38]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:23:38]wFMCommunicate OK [23:23:38]SAM_PROTO_GetShiftState done [23:23:38]FM_GetShiftState done [23:23:38]opened in 1717288520 [23:23:38]opened+sec_in_day 1717374920 [23:23:38]quantity*price = 40039 [23:23:38]sum+1 = 40040 [23:23:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 727 02.06.2024 23:23 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57900 ФПД: 23264880101922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232339&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57900&fm=23264880101922&tin=02508201610067®Number=0000000000151680&sum=40000 [23:23:39]StoreToDocumentArchive [23:23:39]shift 69 fd 57900 [23:23:39]save to /storage/0069/doc_00057900 [23:23:39]save last doc name /storage/0069/doc_00057900 to /storage/kkm_last_doc_name [23:23:39]save OK [23:23:39]Clear old archive folders... [23:23:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:23:39]tlvbuf is 01860F20 [23:23:39]SAM_PROTO_ClearQueue [23:23:39]wFMCommunicate request_size=4 [23:23:39]MH_SAM_APDU [23:23:39]CAPDU: 80 09 00 00 [23:23:39]Write to MH i2c: E2 08 00 2F 0F 80 09 00 00 00 00 00 00 B0 [23:23:39]Write i2c OK [23:23:39]MH_I2C_Read... [23:23:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:39]Read from MH i2c: E2 [23:23:39]MH_I2C_Read... [23:23:39]Read from MH i2c: E2 03 00 [23:23:39]MH_I2C_Read... [23:23:39]Read from MH i2c: E2 03 00 2F 0F 00 90 00 B2 [23:23:39]RAPDU: 90 00 [23:23:39]wFMCommunicate OK [23:23:39]SAM_PROTO_ClearQueue done [23:23:39]KKMCreateOFDPacket [23:23:39]OFDProtocolAddRootSTLVToBuf [23:23:39]FM_MakeSignedData [23:23:39]FM_MakeSignedData [23:23:39]SAM_PROTO_SignData [23:23:39]wFMCommunicate request_size=4 [23:23:39]MH_SAM_APDU [23:23:39]CAPDU: 80 0D 01 02 [23:23:39]Write to MH i2c: E2 08 00 30 0F 80 0D 01 02 00 00 00 00 B8 [23:23:39]Write i2c OK [23:23:39]MH_I2C_Read... [23:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:40]Read from MH i2c: E2 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 03 00 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 03 00 30 0F 00 90 00 B3 [23:23:40]RAPDU: 90 00 [23:23:40]wFMCommunicate OK [23:23:40]wFMCommunicate request_size=255 [23:23:40]MH_SAM_APDU [23:23:40]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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 02 00 00 F4 03 04 00 FB FE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2C E2 00 00 35 04 06 00 15 [23:23:40]Write to MH i2c: E2 02 01 31 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 02 00 00 F4 03 04 00 FB FE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2C E2 00 00 35 04 06 00 15 00 00 32 [23:23:40]Write i2c OK [23:23:40]MH_I2C_Read... [23:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:40]Read from MH i2c: E2 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 03 00 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 03 00 31 0F 00 90 00 B4 [23:23:40]RAPDU: 90 00 [23:23:40]wFMCommunicate OK [23:23:40]wFMCommunicate request_size=10 [23:23:40]MH_SAM_APDU [23:23:40]CAPDU: 80 0D 02 02 05 28 C6 EA 0A 22 [23:23:40]Write to MH i2c: E2 0D 00 32 0F 80 0D 02 02 05 00 28 C6 EA 0A 22 00 00 C9 [23:23:40]Write i2c OK [23:23:40]MH_I2C_Read... [23:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:40]Read from MH i2c: E2 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 03 00 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 03 00 32 0F 00 90 00 B5 [23:23:40]RAPDU: 90 00 [23:23:40]wFMCommunicate OK [23:23:40]wFMCommunicate request_size=4 [23:23:40]MH_SAM_APDU [23:23:40]CAPDU: 80 0D 03 02 [23:23:40]Write to MH i2c: E2 08 00 33 0F 80 0D 03 02 00 00 00 00 BD [23:23:40]Write i2c OK [23:23:40]MH_I2C_Read... [23:23:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:40]Read from MH i2c: E2 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 0B 00 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 0B 00 33 0F 00 FB AB 2C CF 52 E5 37 A8 90 00 75 [23:23:40]RAPDU: FB AB 2C CF 52 E5 37 A8 90 00 [23:23:40]wFMCommunicate OK [23:23:40]SAM_PROTO_SignData done [23:23:40]FM_MakeSignedData done [23:23:40]CreateOFDProtocolMessage [23:23:40]wFMCommunicate request_size=4 [23:23:40]MH_SAM_APDU [23:23:40]CAPDU: 80 11 00 00 [23:23:40]Write to MH i2c: E2 08 00 34 0F 80 11 00 00 00 00 00 00 BD [23:23:40]Write i2c OK [23:23:40]MH_I2C_Read... [23:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:40]Read from MH i2c: E2 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 17 00 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 17 00 34 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 10 [23:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:23:40]wFMCommunicate OK [23:23:40]CreateOFDProtocolMessage done [23:23:40]OFDSenderStorePacket 57900 [23:23:40]StoreOFDPacket docnum=57900 [23:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 E5 06 07 01 59 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 02 00 00 F4 03 04 00 FB FE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2C E2 00 00 35 04 06 00 15 28 C6 EA 0A 22 FB AB 2C CF 52 E5 37 A8 [23:23:40]CheckFolder [23:23:40]dirname=/storage/ofd_packets [23:23:40]CheckFolder done [23:23:40]ProducePacketName [23:23:40]name=ofd_packets/00057900 [23:23:40]NVStorageSaveData ofd_packets/00057900 [23:23:40]File name is /storage/ofd_packets/00057900 [23:23:40]Write 301 bytes [23:23:40]NVStorageSaveData done [23:23:40]OFDSenderStorePacket done [23:23:40]KKMCreateOFDPacket done [23:23:40]NVStorageSaveData kkm_last_timestamp [23:23:40]File name is /storage/kkm_last_timestamp [23:23:40]Write 4 bytes [23:23:40]NVStorageSaveData done [23:23:40]ExternCall_PrintAddStr [23:23:40]wPrintStart [23:23:40]Write to MH i2c: 01 00 00 35 0F 44 [23:23:40]Write i2c OK [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: 01 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: 01 07 00 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: 01 07 00 35 0F 00 00 00 00 00 FF 0F 59 [23:23:40]RasterBufferAndPrint [23:23:40]line Счет N : (1)543244 [23:23:40]line ИНН: 02508201610067 [23:23:40]line Контрольно-Кассовый Чек [23:23:40]line ПРОДАЖА [23:23:40]line ТРК (МРК, ГНК) : 12 [23:23:40]line Товар: 2710124130 [23:23:40]line Аи-92-К-5 [23:23:40]line 6.030 * 66.40 [23:23:40]line = 400.39 [23:23:40]line НДС 12% НСП 1% [23:23:40]line > о реализуемом товаре [23:23:40]line ОКРУГЛЕНИЕ: -0.39 [23:23:40]line ИТОГО: 400.00 [23:23:40]line Внесено: 400.00 [23:23:40]line СДАЧА: 0.00 [23:23:40]line НСП 1% : 3.54 [23:23:40]line НДС 12% : 42.52 [23:23:40]line Наличными: 400.00 [23:23:40]line Безнал.: 0.00 [23:23:40]line Место: АЗС № 117 "Партнер Нефть" [23:23:40]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:23:40]line СНО: Общий режим [23:23:40]line Чек 727 02.06.2024 23:23 [23:23:40]line Смена: 69 ФФД: 1.0 [23:23:40]line ЗНМ: 0300000048 [23:23:40]line РНМ: 0000000000151680 [23:23:40]line Версия ККМ: v1.0 [23:23:40]line ФМ: 0000000000959414 [23:23:40]line ФД: 57900 [23:23:40]line ФПД: 23264880101922 [23:23:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232339&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57900&fm=23264880101922&tin=02508201610067®Number=0000000000151680&sum=40000 [23:23:40]OFD Sender: Processing packet 57900 [packets to send 50, broken 49] [23:23:40]ProducePacketName [23:23:40]name=ofd_packets/00057900 [23:23:40]OFD Sender: To server: pG, [23:23:40]CommunicateWithHost lk.salyk.kg:30040 [23:23:40]ConnectInit lk.salyk.kg [23:23:40]written 0, free lines is 4095 [23:23:40]Connected sock=10 [23:23:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 E5 06 07 01 59 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 02 00 00 F4 03 04 00 FB FE 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2C E2 00 00 35 04 06 00 15 28 C6 EA 0A 22 FB AB 2C CF 52 E5 37 A8 [23:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 01 AF 47 00 CA 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2C E2 00 00 F4 03 04 00 CB A9 5C 66 B6 04 01 00 00 05 41 50 2E 97 E6 0F 71 [23:23:41]CommunicateWithHost err = 0 [23:23:41]CheckOFDResponse [23:23:41]1017 (14) - 77093643461234 [23:23:41]1041 (16) - 0000000000959414 [23:23:41]1040 (4) - 57900 [23:23:41]1012 (4) - 02.06.2024 17:20 [23:23:41]1206 (1) - 0 [23:23:41]OFD Sender: Remove packet 57900 [23:23:41]ProducePacketName [23:23:41]name=ofd_packets/00057900 [23:23:41]NVStorageDeleteData [23:23:41]Write to MH i2c: 01 00 00 60 0F 6F [23:23:41]Write i2c OK [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: 01 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: 01 07 00 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: 01 07 00 60 0F 00 00 00 00 00 AD 0C 2F [23:23:41]RasterBufferAndPrint [23:23:41]line [23:23:41]line [23:23:41]line [23:23:41]line [23:23:41]line [23:23:41]written 0, free lines is 3249 [23:23:41]MH_Cut [23:23:41]Write to MH i2c: D1 01 00 67 0F 01 48 [23:23:41]Write i2c OK [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: D1 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: D1 01 00 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: D1 01 00 67 0F 00 47 [23:23:41]Write to MH i2c: 01 00 00 68 0F 77 [23:23:41]Write i2c OK [23:23:41]MH_I2C_Read... [23:23:41]OFD Sender: No OFD packet to send [23:23:42]*** Cut start [23:23:42]*** Partial cut [23:23:42]*** CUTSNS_PIN = 1 [23:23:42]*** CUTSNS_PIN = 0 [23:23:42]*** Brake cut motor [23:23:42]Read from MH i2c: 01 [23:23:42]MH_I2C_Read... [23:23:42]*** Stop cut motor [23:23:42]*** Cut end [23:23:42]Read from MH i2c: 01 07 00 [23:23:42]MH_I2C_Read... [23:23:42]Read from MH i2c: 01 07 00 68 0F 00 00 00 00 00 FF 0F 8C [23:23:42]process_action close_receipt done [23:23:42]requested_data is exist [23:23:42]produce_requested_data [23:23:42]requested_item fm.sn is exist - process it [23:23:42]wFMCommunicate request_size=4 [23:23:42]MH_SAM_APDU [23:23:42]CAPDU: 80 11 00 00 [23:23:42]Write to MH i2c: E2 08 00 69 0F 80 11 00 00 00 00 00 00 F2 [23:23:42]Write i2c OK [23:23:42]MH_I2C_Read... [23:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:42]Read from MH i2c: E2 [23:23:42]MH_I2C_Read... [23:23:42]Read from MH i2c: E2 17 00 [23:23:42]MH_I2C_Read... [23:23:42]Read from MH i2c: E2 17 00 69 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 45 [23:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:23:42]wFMCommunicate OK [23:23:42]requested_item fd.num is exist - process it [23:23:42]SAM_PROTO_GetFieldsCounters [23:23:42]wFMCommunicate request_size=4 [23:23:42]MH_SAM_APDU [23:23:42]CAPDU: 80 13 00 00 [23:23:42]Write to MH i2c: E2 08 00 6A 0F 80 13 00 00 00 00 00 00 F5 [23:23:42]Write i2c OK [23:23:42]MH_I2C_Read... [23:23:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:43]Read from MH i2c: E2 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: E2 62 00 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: E2 62 00 6A 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 2C E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D7 02 00 00 5E 04 04 00 D7 02 00 00 57 04 04 00 D8 02 00 00 19 04 04 00 00 00 00 00 90 00 F0 [23:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 2C E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D7 02 00 00 5E 04 04 00 D7 02 00 00 57 04 04 00 D8 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:23:43]wFMCommunicate OK [23:23:43]SAM_PROTO_GetFieldsCounters done [23:23:43]requested_item shift.num is exist - process it [23:23:43]requested_item shift.opened is exist - process it [23:23:43]req_shift_opened [23:23:43]FM_GetShiftState [23:23:43]SAM_PROTO_GetShiftState [23:23:43]wFMCommunicate request_size=4 [23:23:43]MH_SAM_APDU [23:23:43]CAPDU: 80 13 01 00 [23:23:43]Write to MH i2c: E2 08 00 6B 0F 80 13 01 00 00 00 00 00 F7 [23:23:43]Write i2c OK [23:23:43]MH_I2C_Read... [23:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:43]Read from MH i2c: E2 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: E2 0E 00 [23:23:43]MH_I2C_Read... [23:23:43]Read from MH i2c: E2 0E 00 6B 0F 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 CA [23:23:43]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:23:43]wFMCommunicate OK [23:23:43]SAM_PROTO_GetShiftState done [23:23:43]FM_GetShiftState done [23:23:43]req_shift_opened done [23:23:43]requested_item shift.open_date is exist - process it [23:23:43]req_shift_open_date [23:23:43]req_shift_open_date done [23:23:43]produce_requested_data done [23:23:43]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57900,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:23:43]process_action_free close_receipt [23:23:43]json_value_free [23:23:43]json_value_free done [23:23:43]process_json_proto returns [23:23:43]Send response to host [23:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57900,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:23:43]free response buf [23:23:43]execute_script done [23:23:43]execute_script returns [23:23:43]free content buf [23:23:43]Sock 8.Close socket [23:23:43]Sock 8.Thread stoped [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:17]accept exits with 9 [23:25:17]New connection [23:25:17]New thread 3066735972 created [23:25:17]Thread 3066592612 joined [23:25:17]Waiting for new connection... [23:25:17] Sock 9.Parse request [23:25:17]Sock 9.Check first char [23:25:17]Sock 9.First char is OK [23:25:17]request: POST /json_proto HTTP/1.0 [23:25:17]Method: POST [23:25:17]URL: /json_proto [23:25:17]Method is POST - this is cgi request [23:25:17]url: /json_proto [23:25:17]query_string will be loaded in cgi processing [23:25:17]execute_cgi json_proto POST (null) [23:25:17]execute_cgi path=json_proto method=POST [23:25:17]POST find Content-Length [23:25:17]Host: 172.17.60.68:8080 [23:25:17]Content-Length: 800 [23:25:17]Content-Type: application/json [23:25:17] [23:25:17]POST finish read [23:25:17]Found Content-Length = 800 [23:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543245", "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" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:17]execute_script... [23:25:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543245", "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" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:17]POST & json_proto [23:25:17]process_json_proto [23:25:17]json parsed OK: [23:25:17]protocol is kg_v1.0 [23:25:17]action value=close_receipt [23:25:17]process_action close_receipt [23:25:17]cmd_close_receipt [23:25:17]MH_GetDate [23:25:17]Write to MH i2c: F0 00 00 6C 0F 6A [23:25:17]Write i2c OK [23:25:17]MH_I2C_Read... [23:25:17]Read from MH i2c: F0 [23:25:17]MH_I2C_Read... [23:25:17]Read from MH i2c: F0 09 00 [23:25:17]MH_I2C_Read... [23:25:17]Read from MH i2c: F0 09 00 6C 0F 00 5E FF 5C 66 8D A7 02 66 2E [23:25:17]GetLastDocTimeStamp 1717370619 [23:25:17]current date 1717370718 [23:25:17]FM_GetShiftState [23:25:17]SAM_PROTO_GetShiftState [23:25:17]wFMCommunicate request_size=4 [23:25:17]MH_SAM_APDU [23:25:17]CAPDU: 80 13 01 00 [23:25:17]Write to MH i2c: E2 08 00 6D 0F 80 13 01 00 00 00 00 00 F9 [23:25:17]Write i2c OK [23:25:17]MH_I2C_Read... [23:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:17]Read from MH i2c: E2 [23:25:17]MH_I2C_Read... [23:25:17]Read from MH i2c: E2 0E 00 [23:25:17]MH_I2C_Read... [23:25:17]Read from MH i2c: E2 0E 00 6D 0F 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 CC [23:25:17]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:25:17]wFMCommunicate OK [23:25:17]SAM_PROTO_GetShiftState done [23:25:17]FM_GetShiftState done [23:25:17]opened in 1717288520 [23:25:17]opened+sec_in_day 1717374920 [23:25:17]quantity*price = 50065 [23:25:17]sum+1 = 50067 [23:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 728 02.06.2024 23:25 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57901 ФПД: 57744619279200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232518&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57901&fm=57744619279200&tin=02508201610067®Number=0000000000151680&sum=50066 [23:25:18]StoreToDocumentArchive [23:25:18]shift 69 fd 57901 [23:25:18]save to /storage/0069/doc_00057901 [23:25:18]save last doc name /storage/0069/doc_00057901 to /storage/kkm_last_doc_name [23:25:18]save OK [23:25:18]Clear old archive folders... [23:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:25:18]tlvbuf is 01861540 [23:25:18]SAM_PROTO_ClearQueue [23:25:18]wFMCommunicate request_size=4 [23:25:18]MH_SAM_APDU [23:25:18]CAPDU: 80 09 00 00 [23:25:18]Write to MH i2c: E2 08 00 7A 0F 80 09 00 00 00 00 00 00 FB [23:25:18]Write i2c OK [23:25:18]MH_I2C_Read... [23:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:18]Read from MH i2c: E2 [23:25:18]MH_I2C_Read... [23:25:18]Read from MH i2c: E2 03 00 [23:25:18]MH_I2C_Read... [23:25:18]Read from MH i2c: E2 03 00 7A 0F 00 90 00 FD [23:25:18]RAPDU: 90 00 [23:25:18]wFMCommunicate OK [23:25:18]SAM_PROTO_ClearQueue done [23:25:18]KKMCreateOFDPacket [23:25:18]OFDProtocolAddRootSTLVToBuf [23:25:18]FM_MakeSignedData [23:25:18]FM_MakeSignedData [23:25:18]SAM_PROTO_SignData [23:25:18]wFMCommunicate request_size=4 [23:25:18]MH_SAM_APDU [23:25:18]CAPDU: 80 0D 01 02 [23:25:18]Write to MH i2c: E2 08 00 7B 0F 80 0D 01 02 00 00 00 00 03 [23:25:18]Write i2c OK [23:25:18]MH_I2C_Read... [23:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:18]Read from MH i2c: E2 [23:25:18]MH_I2C_Read... [23:25:18]Read from MH i2c: E2 03 00 [23:25:18]MH_I2C_Read... [23:25:18]Read from MH i2c: E2 03 00 7B 0F 00 90 00 FE [23:25:18]RAPDU: 90 00 [23:25:18]wFMCommunicate OK [23:25:18]wFMCommunicate request_size=255 [23:25:18]MH_SAM_APDU [23:25:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D8 02 00 00 F4 03 04 00 5E FF 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2D E2 00 00 35 04 06 00 34 [23:25:18]Write to MH i2c: E2 02 01 7C 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D8 02 00 00 F4 03 04 00 5E FF 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2D E2 00 00 35 04 06 00 34 00 00 B8 [23:25:18]Write i2c OK [23:25:18]MH_I2C_Read... [23:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:19]Read from MH i2c: E2 [23:25:19]MH_I2C_Read... [23:25:19]Read from MH i2c: E2 03 00 [23:25:19]MH_I2C_Read... [23:25:19]Read from MH i2c: E2 03 00 7C 0F 00 90 00 FF [23:25:19]RAPDU: 90 00 [23:25:19]wFMCommunicate OK [23:25:19]wFMCommunicate request_size=10 [23:25:19]MH_SAM_APDU [23:25:19]CAPDU: 80 0D 02 02 05 84 B7 85 13 60 [23:25:19]Write to MH i2c: E2 0D 00 7D 0F 80 0D 02 02 05 00 84 B7 85 13 60 00 00 43 [23:25:19]Write i2c OK [23:25:19]MH_I2C_Read... [23:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:19]Read from MH i2c: E2 [23:25:19]MH_I2C_Read... [23:25:19]Read from MH i2c: E2 03 00 [23:25:19]MH_I2C_Read... [23:25:19]Read from MH i2c: E2 03 00 7D 0F 00 90 00 00 [23:25:19]RAPDU: 90 00 [23:25:19]wFMCommunicate OK [23:25:19]wFMCommunicate request_size=4 [23:25:19]MH_SAM_APDU [23:25:19]CAPDU: 80 0D 03 02 [23:25:19]Write to MH i2c: E2 08 00 7E 0F 80 0D 03 02 00 00 00 00 08 [23:25:19]Write i2c OK [23:25:19]MH_I2C_Read... [23:25:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:19]Read from MH i2c: E2 [23:25:19]MH_I2C_Read... [23:25:19]Read from MH i2c: E2 0B 00 [23:25:19]MH_I2C_Read... [23:25:19]Read from MH i2c: E2 0B 00 7E 0F 00 25 68 08 DE 99 86 2D 26 90 00 EE [23:25:19]RAPDU: 25 68 08 DE 99 86 2D 26 90 00 [23:25:19]wFMCommunicate OK [23:25:19]SAM_PROTO_SignData done [23:25:19]FM_MakeSignedData done [23:25:19]CreateOFDProtocolMessage [23:25:19]wFMCommunicate request_size=4 [23:25:19]MH_SAM_APDU [23:25:19]CAPDU: 80 11 00 00 [23:25:19]Write to MH i2c: E2 08 00 7F 0F 80 11 00 00 00 00 00 00 08 [23:25:19]Write i2c OK [23:25:19]MH_I2C_Read... [23:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:19]Read from MH i2c: E2 [23:25:19]MH_I2C_Read... [23:25:19]Read from MH i2c: E2 17 00 [23:25:19]MH_I2C_Read... [23:25:19]Read from MH i2c: E2 17 00 7F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 5B [23:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:25:19]wFMCommunicate OK [23:25:19]CreateOFDProtocolMessage done [23:25:19]OFDSenderStorePacket 57901 [23:25:19]StoreOFDPacket docnum=57901 [23:25:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 3A 92 07 01 11 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D8 02 00 00 F4 03 04 00 5E FF 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2D E2 00 00 35 04 06 00 34 84 B7 85 13 60 25 68 08 DE 99 86 2D 26 [23:25:19]CheckFolder [23:25:19]dirname=/storage/ofd_packets [23:25:19]CheckFolder done [23:25:19]ProducePacketName [23:25:19]name=ofd_packets/00057901 [23:25:19]NVStorageSaveData ofd_packets/00057901 [23:25:19]File name is /storage/ofd_packets/00057901 [23:25:19]Write 301 bytes [23:25:19]NVStorageSaveData done [23:25:19]OFDSenderStorePacket done [23:25:19]KKMCreateOFDPacket done [23:25:19]NVStorageSaveData kkm_last_timestamp [23:25:19]File name is /storage/kkm_last_timestamp [23:25:19]Write 4 bytes [23:25:19]NVStorageSaveData done [23:25:19]ExternCall_PrintAddStr [23:25:19]wPrintStart [23:25:19]Write to MH i2c: 01 00 00 80 0F 8F [23:25:19]Write i2c OK [23:25:19]MH_I2C_Read... [23:25:19]Read from MH i2c: 01 [23:25:19]MH_I2C_Read... [23:25:19]Read from MH i2c: 01 07 00 [23:25:19]MH_I2C_Read... [23:25:19]Read from MH i2c: 01 07 00 80 0F 00 00 00 00 00 FF 0F A4 [23:25:19]RasterBufferAndPrint [23:25:19]line Счет N : (1)543245 [23:25:19]line ИНН: 02508201610067 [23:25:19]line Контрольно-Кассовый Чек [23:25:19]line ПРОДАЖА [23:25:19]line ТРК (МРК, ГНК) : 22 [23:25:19]line Товар: 2710124130 [23:25:19]line Аи-92-К-5 [23:25:19]line 7.540 * 66.40 [23:25:19]line = 500.66 [23:25:19]line НДС 12% НСП 1% [23:25:19]line > о реализуемом товаре [23:25:19]line ИТОГО: 500.66 [23:25:19]line НСП 1% : 4.43 [23:25:19]line НДС 12% : 53.17 [23:25:19]line Наличными: 0.00 [23:25:19]line Безнал.: 500.66 [23:25:19]line Место: АЗС № 117 "Партнер Нефть" [23:25:19]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:25:19]line СНО: Общий режим [23:25:19]line Чек 728 02.06.2024 23:25 [23:25:19]line Смена: 69 ФФД: 1.0 [23:25:19]line ЗНМ: 0300000048 [23:25:19]line РНМ: 0000000000151680 [23:25:19]line Версия ККМ: v1.0 [23:25:19]line Платежная система: O! деньги [23:25:19]line ФМ: 0000000000959414 [23:25:19]line ФД: 57901 [23:25:19]line ФПД: 57744619279200 [23:25:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232518&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57901&fm=57744619279200&tin=02508201610067®Number=0000000000151680&sum=50066 [23:25:19]OFD Sender: Processing packet 57901 [packets to send 50, broken 49] [23:25:19]ProducePacketName [23:25:19]name=ofd_packets/00057901 [23:25:19]OFD Sender: To server: pG, [23:25:19]CommunicateWithHost lk.salyk.kg:30040 [23:25:19]ConnectInit lk.salyk.kg [23:25:19]written 0, free lines is 4095 [23:25:19]Connected sock=10 [23:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 3A 92 07 01 11 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D8 02 00 00 F4 03 04 00 5E FF 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2D E2 00 00 35 04 06 00 34 84 B7 85 13 60 25 68 08 DE 99 86 2D 26 [23:25:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 08 41 47 00 B5 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2D E2 00 00 F4 03 04 00 2E AA 5C 66 B6 04 01 00 00 F7 79 D5 C9 D1 34 DE 67 [23:25:20]CommunicateWithHost err = 0 [23:25:20]CheckOFDResponse [23:25:20]1017 (14) - 77093643461234 [23:25:20]1041 (16) - 0000000000959414 [23:25:20]1040 (4) - 57901 [23:25:20]1012 (4) - 02.06.2024 17:21 [23:25:20]1206 (1) - 0 [23:25:20]OFD Sender: Remove packet 57901 [23:25:20]ProducePacketName [23:25:20]name=ofd_packets/00057901 [23:25:20]NVStorageDeleteData [23:25:20]Write to MH i2c: 01 00 00 AA 0F B9 [23:25:20]Write i2c OK [23:25:20]MH_I2C_Read... [23:25:20]Read from MH i2c: 01 [23:25:20]MH_I2C_Read... [23:25:20]Read from MH i2c: 01 07 00 [23:25:20]MH_I2C_Read... [23:25:20]Read from MH i2c: 01 07 00 AA 0F 00 00 00 00 00 C3 0C 8F [23:25:20]RasterBufferAndPrint [23:25:20]line [23:25:20]line [23:25:20]line [23:25:20]line [23:25:20]line [23:25:20]written 0, free lines is 3272 [23:25:20]MH_Cut [23:25:20]Write to MH i2c: D1 01 00 B1 0F 01 92 [23:25:20]Write i2c OK [23:25:20]MH_I2C_Read... [23:25:20]Read from MH i2c: D1 [23:25:20]MH_I2C_Read... [23:25:20]Read from MH i2c: D1 01 00 [23:25:20]MH_I2C_Read... [23:25:20]Read from MH i2c: D1 01 00 B1 0F 00 91 [23:25:20]Write to MH i2c: 01 00 00 B2 0F C1 [23:25:20]Write i2c OK [23:25:20]MH_I2C_Read... [23:25:20]OFD Sender: No OFD packet to send [23:25:21]*** Cut start [23:25:21]*** Partial cut [23:25:21]*** CUTSNS_PIN = 1 [23:25:21]*** CUTSNS_PIN = 0 [23:25:21]*** Brake cut motor [23:25:21]Read from MH i2c: 01 [23:25:21]MH_I2C_Read... [23:25:21]*** Stop cut motor [23:25:21]*** Cut end [23:25:21]Read from MH i2c: 01 07 00 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: 01 07 00 B2 0F 00 00 00 00 00 FF 0F D6 [23:25:21]process_action close_receipt done [23:25:21]requested_data is exist [23:25:21]produce_requested_data [23:25:21]requested_item fm.sn is exist - process it [23:25:21]wFMCommunicate request_size=4 [23:25:21]MH_SAM_APDU [23:25:21]CAPDU: 80 11 00 00 [23:25:21]Write to MH i2c: E2 08 00 B3 0F 80 11 00 00 00 00 00 00 3C [23:25:21]Write i2c OK [23:25:21]MH_I2C_Read... [23:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:21]Read from MH i2c: E2 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 17 00 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 17 00 B3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 8F [23:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:25:21]wFMCommunicate OK [23:25:21]requested_item fd.num is exist - process it [23:25:21]SAM_PROTO_GetFieldsCounters [23:25:21]wFMCommunicate request_size=4 [23:25:21]MH_SAM_APDU [23:25:21]CAPDU: 80 13 00 00 [23:25:21]Write to MH i2c: E2 08 00 B4 0F 80 13 00 00 00 00 00 00 3F [23:25:21]Write i2c OK [23:25:21]MH_I2C_Read... [23:25:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:21]Read from MH i2c: E2 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 62 00 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 62 00 B4 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 2D E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D8 02 00 00 5E 04 04 00 D8 02 00 00 57 04 04 00 D9 02 00 00 19 04 04 00 00 00 00 00 90 00 3E [23:25:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 2D E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D8 02 00 00 5E 04 04 00 D8 02 00 00 57 04 04 00 D9 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:25:21]wFMCommunicate OK [23:25:21]SAM_PROTO_GetFieldsCounters done [23:25:21]requested_item shift.num is exist - process it [23:25:21]requested_item shift.opened is exist - process it [23:25:21]req_shift_opened [23:25:21]FM_GetShiftState [23:25:21]SAM_PROTO_GetShiftState [23:25:21]wFMCommunicate request_size=4 [23:25:21]MH_SAM_APDU [23:25:21]CAPDU: 80 13 01 00 [23:25:21]Write to MH i2c: E2 08 00 B5 0F 80 13 01 00 00 00 00 00 41 [23:25:21]Write i2c OK [23:25:21]MH_I2C_Read... [23:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:21]Read from MH i2c: E2 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 0E 00 [23:25:21]MH_I2C_Read... [23:25:21]Read from MH i2c: E2 0E 00 B5 0F 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 14 [23:25:21]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:25:21]wFMCommunicate OK [23:25:21]SAM_PROTO_GetShiftState done [23:25:21]FM_GetShiftState done [23:25:21]req_shift_opened done [23:25:21]requested_item shift.open_date is exist - process it [23:25:21]req_shift_open_date [23:25:21]req_shift_open_date done [23:25:21]produce_requested_data done [23:25:21]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57901,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:25:21]process_action_free close_receipt [23:25:21]json_value_free [23:25:21]json_value_free done [23:25:21]process_json_proto returns [23:25:21]Send response to host [23:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57901,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:25:21]free response buf [23:25:21]execute_script done [23:25:21]execute_script returns [23:25:21]free content buf [23:25:21]Sock 9.Close socket [23:25:21]Sock 9.Thread stoped [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:46]accept exits with 8 [23:25:46]New connection [23:25:46]New thread 3066592612 created [23:25:46]Thread 3066735972 joined [23:25:46]Waiting for new connection... [23:25:46] Sock 8.Parse request [23:25:46]Sock 8.Check first char [23:25:46]Sock 8.First char is OK [23:25:46]request: POST /json_proto HTTP/1.0 [23:25:46]Method: POST [23:25:46]URL: /json_proto [23:25:46]Method is POST - this is cgi request [23:25:46]url: /json_proto [23:25:46]query_string will be loaded in cgi processing [23:25:46]execute_cgi json_proto POST (null) [23:25:46]execute_cgi path=json_proto method=POST [23:25:46]POST find Content-Length [23:25:46]Host: 172.17.60.68:8080 [23:25:46]Content-Length: 800 [23:25:46]Content-Type: application/json [23:25:46] [23:25:46]POST finish read [23:25:46]Found Content-Length = 800 [23:25:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:46]execute_script... [23:25:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:46]POST & json_proto [23:25:46]process_json_proto [23:25:46]json parsed OK: [23:25:46]protocol is kg_v1.0 [23:25:46]action value=close_receipt [23:25:46]process_action close_receipt [23:25:46]cmd_close_receipt [23:25:46]MH_GetDate [23:25:46]Write to MH i2c: F0 00 00 B6 0F B4 [23:25:46]Write i2c OK [23:25:46]MH_I2C_Read... [23:25:46]Read from MH i2c: F0 [23:25:46]MH_I2C_Read... [23:25:46]Read from MH i2c: F0 09 00 [23:25:46]MH_I2C_Read... [23:25:46]Read from MH i2c: F0 09 00 B6 0F 00 7B FF 5C 66 8D A7 02 66 95 [23:25:46]GetLastDocTimeStamp 1717370718 [23:25:46]current date 1717370747 [23:25:46]FM_GetShiftState [23:25:46]SAM_PROTO_GetShiftState [23:25:46]wFMCommunicate request_size=4 [23:25:46]MH_SAM_APDU [23:25:46]CAPDU: 80 13 01 00 [23:25:46]Write to MH i2c: E2 08 00 B7 0F 80 13 01 00 00 00 00 00 43 [23:25:46]Write i2c OK [23:25:46]MH_I2C_Read... [23:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:46]Read from MH i2c: E2 [23:25:46]MH_I2C_Read... [23:25:46]Read from MH i2c: E2 0E 00 [23:25:46]MH_I2C_Read... [23:25:46]Read from MH i2c: E2 0E 00 B7 0F 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 16 [23:25:46]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:25:46]wFMCommunicate OK [23:25:46]SAM_PROTO_GetShiftState done [23:25:46]FM_GetShiftState done [23:25:46]opened in 1717288520 [23:25:46]opened+sec_in_day 1717374920 [23:25:46]quantity*price = 60025 [23:25:46]sum+1 = 60027 [23:25:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.26 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.26 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 729 02.06.2024 23:25 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57902 ФПД: 90173146846234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232547&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57902&fm=90173146846234&tin=02508201610067®Number=0000000000151680&sum=60026 [23:25:47]StoreToDocumentArchive [23:25:47]shift 69 fd 57902 [23:25:47]save to /storage/0069/doc_00057902 [23:25:47]save last doc name /storage/0069/doc_00057902 to /storage/kkm_last_doc_name [23:25:47]save OK [23:25:47]Clear old archive folders... [23:25:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:25:47]tlvbuf is 01ADB3E0 [23:25:47]SAM_PROTO_ClearQueue [23:25:47]wFMCommunicate request_size=4 [23:25:47]MH_SAM_APDU [23:25:47]CAPDU: 80 09 00 00 [23:25:47]Write to MH i2c: E2 08 00 C4 0F 80 09 00 00 00 00 00 00 45 [23:25:47]Write i2c OK [23:25:47]MH_I2C_Read... [23:25:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:47]Read from MH i2c: E2 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 03 00 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 03 00 C4 0F 00 90 00 47 [23:25:47]RAPDU: 90 00 [23:25:47]wFMCommunicate OK [23:25:47]SAM_PROTO_ClearQueue done [23:25:47]KKMCreateOFDPacket [23:25:47]OFDProtocolAddRootSTLVToBuf [23:25:47]FM_MakeSignedData [23:25:47]FM_MakeSignedData [23:25:47]SAM_PROTO_SignData [23:25:47]wFMCommunicate request_size=4 [23:25:47]MH_SAM_APDU [23:25:47]CAPDU: 80 0D 01 02 [23:25:47]Write to MH i2c: E2 08 00 C5 0F 80 0D 01 02 00 00 00 00 4D [23:25:47]Write i2c OK [23:25:47]MH_I2C_Read... [23:25:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:47]Read from MH i2c: E2 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 03 00 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 03 00 C5 0F 00 90 00 48 [23:25:47]RAPDU: 90 00 [23:25:47]wFMCommunicate OK [23:25:47]wFMCommunicate request_size=255 [23:25:47]MH_SAM_APDU [23:25:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7A 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 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 02 00 00 F4 03 04 00 7B FF 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2E E2 00 00 35 04 06 00 52 [23:25:47]Write to MH i2c: E2 02 01 C6 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7A 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 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 02 00 00 F4 03 04 00 7B FF 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2E E2 00 00 35 04 06 00 52 00 00 CC [23:25:47]Write i2c OK [23:25:47]MH_I2C_Read... [23:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:47]Read from MH i2c: E2 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 03 00 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 03 00 C6 0F 00 90 00 49 [23:25:47]RAPDU: 90 00 [23:25:47]wFMCommunicate OK [23:25:47]wFMCommunicate request_size=10 [23:25:47]MH_SAM_APDU [23:25:47]CAPDU: 80 0D 02 02 05 03 12 62 D4 1A [23:25:47]Write to MH i2c: E2 0D 00 C7 0F 80 0D 02 02 05 00 03 12 62 D4 1A 00 00 BF [23:25:47]Write i2c OK [23:25:47]MH_I2C_Read... [23:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:47]Read from MH i2c: E2 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 03 00 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 03 00 C7 0F 00 90 00 4A [23:25:47]RAPDU: 90 00 [23:25:47]wFMCommunicate OK [23:25:47]wFMCommunicate request_size=4 [23:25:47]MH_SAM_APDU [23:25:47]CAPDU: 80 0D 03 02 [23:25:47]Write to MH i2c: E2 08 00 C8 0F 80 0D 03 02 00 00 00 00 52 [23:25:47]Write i2c OK [23:25:47]MH_I2C_Read... [23:25:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:47]Read from MH i2c: E2 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 0B 00 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 0B 00 C8 0F 00 C9 4A 7B E1 01 E0 6D EA 90 00 FA [23:25:47]RAPDU: C9 4A 7B E1 01 E0 6D EA 90 00 [23:25:47]wFMCommunicate OK [23:25:47]SAM_PROTO_SignData done [23:25:47]FM_MakeSignedData done [23:25:47]CreateOFDProtocolMessage [23:25:47]wFMCommunicate request_size=4 [23:25:47]MH_SAM_APDU [23:25:47]CAPDU: 80 11 00 00 [23:25:47]Write to MH i2c: E2 08 00 C9 0F 80 11 00 00 00 00 00 00 52 [23:25:47]Write i2c OK [23:25:47]MH_I2C_Read... [23:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:47]Read from MH i2c: E2 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 17 00 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 17 00 C9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 A5 [23:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:25:47]wFMCommunicate OK [23:25:47]CreateOFDProtocolMessage done [23:25:47]OFDSenderStorePacket 57902 [23:25:47]StoreOFDPacket docnum=57902 [23:25:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 66 8C 07 01 94 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 7A 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 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 02 00 00 F4 03 04 00 7B FF 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2E E2 00 00 35 04 06 00 52 03 12 62 D4 1A C9 4A 7B E1 01 E0 6D EA [23:25:47]CheckFolder [23:25:47]dirname=/storage/ofd_packets [23:25:47]CheckFolder done [23:25:47]ProducePacketName [23:25:47]name=ofd_packets/00057902 [23:25:47]NVStorageSaveData ofd_packets/00057902 [23:25:47]File name is /storage/ofd_packets/00057902 [23:25:47]Write 301 bytes [23:25:47]NVStorageSaveData done [23:25:47]OFDSenderStorePacket done [23:25:47]KKMCreateOFDPacket done [23:25:47]NVStorageSaveData kkm_last_timestamp [23:25:47]File name is /storage/kkm_last_timestamp [23:25:47]Write 4 bytes [23:25:47]NVStorageSaveData done [23:25:47]ExternCall_PrintAddStr [23:25:47]wPrintStart [23:25:47]Write to MH i2c: 01 00 00 CA 0F D9 [23:25:47]Write i2c OK [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: 01 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: 01 07 00 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: 01 07 00 CA 0F 00 00 00 00 00 FF 0F EE [23:25:47]RasterBufferAndPrint [23:25:47]line Счет N : (1)543246 [23:25:47]line ИНН: 02508201610067 [23:25:47]line Контрольно-Кассовый Чек [23:25:47]line ПРОДАЖА [23:25:47]line ТРК (МРК, ГНК) : 32 [23:25:47]line Товар: 2710124130 [23:25:47]line Аи-92-К-5 [23:25:47]line 9.040 * 66.40 [23:25:47]line = 600.26 [23:25:47]line НДС 12% НСП 1% [23:25:47]line > о реализуемом товаре [23:25:47]line ИТОГО: 600.26 [23:25:47]line НСП 1% : 5.31 [23:25:47]line НДС 12% : 63.74 [23:25:47]line Наличными: 0.00 [23:25:47]line Безнал.: 600.26 [23:25:47]line Место: АЗС № 117 "Партнер Нефть" [23:25:47]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:25:47]line СНО: Общий режим [23:25:47]line Чек 729 02.06.2024 23:25 [23:25:47]line Смена: 69 ФФД: 1.0 [23:25:47]line ЗНМ: 0300000048 [23:25:47]line РНМ: 0000000000151680 [23:25:47]line Версия ККМ: v1.0 [23:25:47]line Платежная система: O! деньги [23:25:47]line ФМ: 0000000000959414 [23:25:47]line ФД: 57902 [23:25:47]line ФПД: 90173146846234 [23:25:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232547&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57902&fm=90173146846234&tin=02508201610067®Number=0000000000151680&sum=60026 [23:25:48]OFD Sender: Processing packet 57902 [packets to send 50, broken 49] [23:25:48]ProducePacketName [23:25:48]name=ofd_packets/00057902 [23:25:48]OFD Sender: To server: pG, [23:25:48]CommunicateWithHost lk.salyk.kg:30040 [23:25:48]ConnectInit lk.salyk.kg [23:25:48]written 0, free lines is 4095 [23:25:48]Connected sock=10 [23:25:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 66 8C 07 01 94 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 7A 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 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 02 00 00 F4 03 04 00 7B FF 5C 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2E E2 00 00 35 04 06 00 52 03 12 62 D4 1A C9 4A 7B E1 01 E0 6D EA [23:25:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 19 7E 47 00 A2 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2E E2 00 00 F4 03 04 00 4A AA 5C 66 B6 04 01 00 00 76 22 02 2F 3D 11 05 89 [23:25:48]CommunicateWithHost err = 0 [23:25:48]CheckOFDResponse [23:25:48]1017 (14) - 77093643461234 [23:25:48]1041 (16) - 0000000000959414 [23:25:48]1040 (4) - 57902 [23:25:48]1012 (4) - 02.06.2024 17:22 [23:25:48]1206 (1) - 0 [23:25:48]OFD Sender: Remove packet 57902 [23:25:48]ProducePacketName [23:25:48]name=ofd_packets/00057902 [23:25:48]NVStorageDeleteData [23:25:48]Write to MH i2c: 01 00 00 F4 0F 03 [23:25:48]Write i2c OK [23:25:48]MH_I2C_Read... [23:25:48]Read from MH i2c: 01 [23:25:48]MH_I2C_Read... [23:25:48]Read from MH i2c: 01 07 00 [23:25:48]MH_I2C_Read... [23:25:48]Read from MH i2c: 01 07 00 F4 0F 00 00 00 00 00 C8 0C DE [23:25:48]RasterBufferAndPrint [23:25:48]line [23:25:48]line [23:25:48]line [23:25:48]line [23:25:48]line [23:25:48]written 0, free lines is 3281 [23:25:48]MH_Cut [23:25:48]Write to MH i2c: D1 01 00 FB 0F 01 DC [23:25:48]Write i2c OK [23:25:48]MH_I2C_Read... [23:25:48]Read from MH i2c: D1 [23:25:48]MH_I2C_Read... [23:25:48]Read from MH i2c: D1 01 00 [23:25:48]MH_I2C_Read... [23:25:48]Read from MH i2c: D1 01 00 FB 0F 00 DB [23:25:48]Write to MH i2c: 01 00 00 FC 0F 0B [23:25:48]Write i2c OK [23:25:48]MH_I2C_Read... [23:25:49]OFD Sender: No OFD packet to send [23:25:49]*** Cut start [23:25:49]*** Partial cut [23:25:49]*** CUTSNS_PIN = 1 [23:25:49]*** CUTSNS_PIN = 0 [23:25:49]*** Brake cut motor [23:25:50]Read from MH i2c: 01 [23:25:50]MH_I2C_Read... [23:25:50]*** Stop cut motor [23:25:50]*** Cut end [23:25:50]Read from MH i2c: 01 07 00 [23:25:50]MH_I2C_Read... [23:25:50]Read from MH i2c: 01 07 00 FC 0F 00 00 00 00 00 FF 0F 20 [23:25:50]process_action close_receipt done [23:25:50]requested_data is exist [23:25:50]produce_requested_data [23:25:50]requested_item fm.sn is exist - process it [23:25:50]wFMCommunicate request_size=4 [23:25:50]MH_SAM_APDU [23:25:50]CAPDU: 80 11 00 00 [23:25:50]Write to MH i2c: E2 08 00 FD 0F 80 11 00 00 00 00 00 00 86 [23:25:50]Write i2c OK [23:25:50]MH_I2C_Read... [23:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:50]Read from MH i2c: E2 [23:25:50]MH_I2C_Read... [23:25:50]Read from MH i2c: E2 17 00 [23:25:50]MH_I2C_Read... [23:25:50]Read from MH i2c: E2 17 00 FD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 D9 [23:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:25:50]wFMCommunicate OK [23:25:50]requested_item fd.num is exist - process it [23:25:50]SAM_PROTO_GetFieldsCounters [23:25:50]wFMCommunicate request_size=4 [23:25:50]MH_SAM_APDU [23:25:50]CAPDU: 80 13 00 00 [23:25:50]Write to MH i2c: E2 08 00 FE 0F 80 13 00 00 00 00 00 00 89 [23:25:50]Write i2c OK [23:25:50]MH_I2C_Read... [23:25:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:50]Read from MH i2c: E2 [23:25:50]MH_I2C_Read... [23:25:50]Read from MH i2c: E2 62 00 [23:25:50]MH_I2C_Read... [23:25:50]Read from MH i2c: E2 62 00 FE 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 2E E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D9 02 00 00 5E 04 04 00 D9 02 00 00 57 04 04 00 DA 02 00 00 19 04 04 00 00 00 00 00 90 00 8C [23:25:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 2E E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 D9 02 00 00 5E 04 04 00 D9 02 00 00 57 04 04 00 DA 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:25:50]wFMCommunicate OK [23:25:50]SAM_PROTO_GetFieldsCounters done [23:25:50]requested_item shift.num is exist - process it [23:25:50]requested_item shift.opened is exist - process it [23:25:50]req_shift_opened [23:25:50]FM_GetShiftState [23:25:50]SAM_PROTO_GetShiftState [23:25:50]wFMCommunicate request_size=4 [23:25:50]MH_SAM_APDU [23:25:50]CAPDU: 80 13 01 00 [23:25:50]Write to MH i2c: E2 08 00 FF 0F 80 13 01 00 00 00 00 00 8B [23:25:50]Write i2c OK [23:25:50]MH_I2C_Read... [23:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:50]Read from MH i2c: E2 [23:25:50]MH_I2C_Read... [23:25:50]Read from MH i2c: E2 0E 00 [23:25:50]MH_I2C_Read... [23:25:50]Read from MH i2c: E2 0E 00 FF 0F 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 5E [23:25:50]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:25:50]wFMCommunicate OK [23:25:50]SAM_PROTO_GetShiftState done [23:25:50]FM_GetShiftState done [23:25:50]req_shift_opened done [23:25:50]requested_item shift.open_date is exist - process it [23:25:50]req_shift_open_date [23:25:50]req_shift_open_date done [23:25:50]produce_requested_data done [23:25:50]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57902,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:25:50]process_action_free close_receipt [23:25:50]json_value_free [23:25:50]json_value_free done [23:25:50]process_json_proto returns [23:25:50]Send response to host [23:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57902,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:25:50]free response buf [23:25:50]execute_script done [23:25:50]execute_script returns [23:25:50]free content buf [23:25:50]Sock 8.Close socket [23:25:50]Sock 8.Thread stoped [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:19]accept exits with 9 [23:35:19]New connection [23:35:19]New thread 3066735972 created [23:35:19]Thread 3066592612 joined [23:35:19]Waiting for new connection... [23:35:19] Sock 9.Parse request [23:35:19]Sock 9.Check first char [23:35:19]Sock 9.First char is OK [23:35:19]request: POST /json_proto HTTP/1.0 [23:35:19]Method: POST [23:35:19]URL: /json_proto [23:35:19]Method is POST - this is cgi request [23:35:19]url: /json_proto [23:35:19]query_string will be loaded in cgi processing [23:35:19]execute_cgi json_proto POST (null) [23:35:19]execute_cgi path=json_proto method=POST [23:35:19]POST find Content-Length [23:35:19]Host: 172.17.60.68:8080 [23:35:19]Content-Length: 678 [23:35:19]Content-Type: application/json [23:35:19] [23:35:19]POST finish read [23:35:19]Found Content-Length = 678 [23:35:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543248", "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" : 10.850, "sum" : 720.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:19]execute_script... [23:35: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)543248", "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" : 10.850, "sum" : 720.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:19]POST & json_proto [23:35:19]process_json_proto [23:35:19]json parsed OK: [23:35:19]protocol is kg_v1.0 [23:35:19]action value=close_receipt [23:35:19]process_action close_receipt [23:35:19]cmd_close_receipt [23:35:19]MH_GetDate [23:35:19]Write to MH i2c: F0 00 00 00 10 FF [23:35:19]Write i2c OK [23:35:19]MH_I2C_Read... [23:35:19]Read from MH i2c: F0 [23:35:19]MH_I2C_Read... [23:35:19]Read from MH i2c: F0 09 00 [23:35:19]MH_I2C_Read... [23:35:19]Read from MH i2c: F0 09 00 00 10 00 B8 01 5D 66 8D A7 02 66 20 [23:35:19]GetLastDocTimeStamp 1717370747 [23:35:19]current date 1717371320 [23:35:19]FM_GetShiftState [23:35:19]SAM_PROTO_GetShiftState [23:35:19]wFMCommunicate request_size=4 [23:35:19]MH_SAM_APDU [23:35:19]CAPDU: 80 13 01 00 [23:35:19]Write to MH i2c: E2 08 00 01 10 80 13 01 00 00 00 00 00 8E [23:35:19]Write i2c OK [23:35:19]MH_I2C_Read... [23:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:19]Read from MH i2c: E2 [23:35:19]MH_I2C_Read... [23:35:19]Read from MH i2c: E2 0E 00 [23:35:19]MH_I2C_Read... [23:35:19]Read from MH i2c: E2 0E 00 01 10 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 61 [23:35:19]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:35:19]wFMCommunicate OK [23:35:19]SAM_PROTO_GetShiftState done [23:35:19]FM_GetShiftState done [23:35:19]opened in 1717288520 [23:35:19]opened+sec_in_day 1717374920 [23:35:19]quantity*price = 72044 [23:35:19]sum+1 = 72045 [23:35:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.51 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 730 02.06.2024 23:35 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57903 ФПД: 271556229132155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T233520&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57903&fm=271556229132155&tin=02508201610067®Number=0000000000151680&sum=72000 [23:35:21]StoreToDocumentArchive [23:35:21]shift 69 fd 57903 [23:35:21]save to /storage/0069/doc_00057903 [23:35:21]save last doc name /storage/0069/doc_00057903 to /storage/kkm_last_doc_name [23:35:21]save OK [23:35:21]Clear old archive folders... [23:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:35:21]tlvbuf is 019ED740 [23:35:21]SAM_PROTO_ClearQueue [23:35:21]wFMCommunicate request_size=4 [23:35:21]MH_SAM_APDU [23:35:21]CAPDU: 80 09 00 00 [23:35:21]Write to MH i2c: E2 08 00 0E 10 80 09 00 00 00 00 00 00 90 [23:35:21]Write i2c OK [23:35:21]MH_I2C_Read... [23:35:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:35:21]Read from MH i2c: E2 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: E2 03 00 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: E2 03 00 0E 10 00 90 00 92 [23:35:21]RAPDU: 90 00 [23:35:21]wFMCommunicate OK [23:35:21]SAM_PROTO_ClearQueue done [23:35:21]KKMCreateOFDPacket [23:35:21]OFDProtocolAddRootSTLVToBuf [23:35:21]FM_MakeSignedData [23:35:21]FM_MakeSignedData [23:35:21]SAM_PROTO_SignData [23:35:21]wFMCommunicate request_size=4 [23:35:21]MH_SAM_APDU [23:35:21]CAPDU: 80 0D 01 02 [23:35:21]Write to MH i2c: E2 08 00 0F 10 80 0D 01 02 00 00 00 00 98 [23:35:21]Write i2c OK [23:35:21]MH_I2C_Read... [23:35:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:35:21]Read from MH i2c: E2 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: E2 03 00 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: E2 03 00 0F 10 00 90 00 93 [23:35:21]RAPDU: 90 00 [23:35:21]wFMCommunicate OK [23:35:21]wFMCommunicate request_size=255 [23:35:21]MH_SAM_APDU [23:35:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 2A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 02 00 00 F4 03 04 00 B8 01 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2F E2 00 00 35 04 06 00 F6 [23:35:21]Write to MH i2c: E2 02 01 10 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 2A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 02 00 00 F4 03 04 00 B8 01 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2F E2 00 00 35 04 06 00 F6 00 00 91 [23:35:21]Write i2c OK [23:35:21]MH_I2C_Read... [23:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:21]Read from MH i2c: E2 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: E2 03 00 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: E2 03 00 10 10 00 90 00 94 [23:35:21]RAPDU: 90 00 [23:35:21]wFMCommunicate OK [23:35:21]wFMCommunicate request_size=10 [23:35:21]MH_SAM_APDU [23:35:21]CAPDU: 80 0D 02 02 05 FA 9C 92 EF 7B [23:35:21]Write to MH i2c: E2 0D 00 11 10 80 0D 02 02 05 00 FA 9C 92 EF 7B 00 00 37 [23:35:21]Write i2c OK [23:35:21]MH_I2C_Read... [23:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:21]Read from MH i2c: E2 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: E2 03 00 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: E2 03 00 11 10 00 90 00 95 [23:35:21]RAPDU: 90 00 [23:35:21]wFMCommunicate OK [23:35:21]wFMCommunicate request_size=4 [23:35:21]MH_SAM_APDU [23:35:21]CAPDU: 80 0D 03 02 [23:35:21]Write to MH i2c: E2 08 00 12 10 80 0D 03 02 00 00 00 00 9D [23:35:21]Write i2c OK [23:35:21]MH_I2C_Read... [23:35:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:35:21]Read from MH i2c: E2 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: E2 0B 00 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: E2 0B 00 12 10 00 14 82 7E CB C3 2F CB 65 90 00 9F [23:35:21]RAPDU: 14 82 7E CB C3 2F CB 65 90 00 [23:35:21]wFMCommunicate OK [23:35:21]SAM_PROTO_SignData done [23:35:21]FM_MakeSignedData done [23:35:21]CreateOFDProtocolMessage [23:35:21]wFMCommunicate request_size=4 [23:35:21]MH_SAM_APDU [23:35:21]CAPDU: 80 11 00 00 [23:35:21]Write to MH i2c: E2 08 00 13 10 80 11 00 00 00 00 00 00 9D [23:35:21]Write i2c OK [23:35:21]MH_I2C_Read... [23:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:21]Read from MH i2c: E2 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: E2 17 00 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: E2 17 00 13 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 F0 [23:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:35:21]wFMCommunicate OK [23:35:21]CreateOFDProtocolMessage done [23:35:21]OFDSenderStorePacket 57903 [23:35:21]StoreOFDPacket docnum=57903 [23:35:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 DB D5 07 01 55 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 2A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 02 00 00 F4 03 04 00 B8 01 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2F E2 00 00 35 04 06 00 F6 FA 9C 92 EF 7B 14 82 7E CB C3 2F CB 65 [23:35:21]CheckFolder [23:35:21]dirname=/storage/ofd_packets [23:35:21]CheckFolder done [23:35:21]ProducePacketName [23:35:21]name=ofd_packets/00057903 [23:35:21]NVStorageSaveData ofd_packets/00057903 [23:35:21]File name is /storage/ofd_packets/00057903 [23:35:21]Write 301 bytes [23:35:21]NVStorageSaveData done [23:35:21]OFDSenderStorePacket done [23:35:21]KKMCreateOFDPacket done [23:35:21]NVStorageSaveData kkm_last_timestamp [23:35:21]File name is /storage/kkm_last_timestamp [23:35:21]Write 4 bytes [23:35:21]NVStorageSaveData done [23:35:21]ExternCall_PrintAddStr [23:35:21]wPrintStart [23:35:21]Write to MH i2c: 01 00 00 14 10 24 [23:35:21]Write i2c OK [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: 01 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: 01 07 00 [23:35:21]MH_I2C_Read... [23:35:21]Read from MH i2c: 01 07 00 14 10 00 00 00 00 00 FF 0F 39 [23:35:21]RasterBufferAndPrint [23:35:21]line Счет N : (1)543248 [23:35:21]line ИНН: 02508201610067 [23:35:21]line Контрольно-Кассовый Чек [23:35:21]line ПРОДАЖА [23:35:21]line ТРК (МРК, ГНК) : 22 [23:35:21]line Товар: 2710124130 [23:35:21]line Аи-92-К-5 [23:35:21]line 10.850 * 66.40 [23:35:21]line = 720.44 [23:35:21]line НДС 12% НСП 1% [23:35:21]line > о реализуемом товаре [23:35:21]line ОКРУГЛЕНИЕ: -0.44 [23:35:21]line ИТОГО: 720.00 [23:35:21]line Внесено: 720.00 [23:35:21]line СДАЧА: 0.00 [23:35:21]line НСП 1% : 6.38 [23:35:21]line НДС 12% : 76.51 [23:35:21]line Наличными: 720.00 [23:35:21]line Безнал.: 0.00 [23:35:21]line Место: АЗС № 117 "Партнер Нефть" [23:35:21]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:35:21]line СНО: Общий режим [23:35:21]line Чек 730 02.06.2024 23:35 [23:35:21]line Смена: 69 ФФД: 1.0 [23:35:21]line ЗНМ: 0300000048 [23:35:21]line РНМ: 0000000000151680 [23:35:21]line Версия ККМ: v1.0 [23:35:21]line ФМ: 0000000000959414 [23:35:21]line ФД: 57903 [23:35:21]line ФПД: 271556229132155 [23:35:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T233520&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57903&fm=271556229132155&tin=02508201610067®Number=0000000000151680&sum=72000 [23:35:21]OFD Sender: Processing packet 57903 [packets to send 50, broken 49] [23:35:21]ProducePacketName [23:35:21]name=ofd_packets/00057903 [23:35:21]OFD Sender: To server: pG, [23:35:21]CommunicateWithHost lk.salyk.kg:30040 [23:35:21]ConnectInit lk.salyk.kg [23:35:21]written 0, free lines is 4095 [23:35:22]Connected sock=10 [23:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 DB D5 07 01 55 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 2A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 02 00 00 F4 03 04 00 B8 01 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2F E2 00 00 35 04 06 00 F6 FA 9C 92 EF 7B 14 82 7E CB C3 2F CB 65 [23:35:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 B0 0C 47 00 42 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 2F E2 00 00 F4 03 04 00 88 AC 5C 66 B6 04 01 00 00 03 BD 81 12 5C 9B AE 31 [23:35:22]CommunicateWithHost err = 0 [23:35:22]CheckOFDResponse [23:35:22]1017 (14) - 77093643461234 [23:35:22]1041 (16) - 0000000000959414 [23:35:22]1040 (4) - 57903 [23:35:22]1012 (4) - 02.06.2024 17:31 [23:35:22]1206 (1) - 0 [23:35:22]OFD Sender: Remove packet 57903 [23:35:22]ProducePacketName [23:35:22]name=ofd_packets/00057903 [23:35:22]NVStorageDeleteData [23:35:22]Write to MH i2c: 01 00 00 3F 10 4F [23:35:22]Write i2c OK [23:35:22]MH_I2C_Read... [23:35:22]Read from MH i2c: 01 [23:35:22]MH_I2C_Read... [23:35:22]Read from MH i2c: 01 07 00 [23:35:22]MH_I2C_Read... [23:35:22]Read from MH i2c: 01 07 00 3F 10 00 00 00 00 00 A9 0C 0B [23:35:22]RasterBufferAndPrint [23:35:22]line [23:35:22]line [23:35:22]line [23:35:22]line [23:35:22]line [23:35:22]written 0, free lines is 3245 [23:35:22]MH_Cut [23:35:22]Write to MH i2c: D1 01 00 46 10 01 28 [23:35:22]Write i2c OK [23:35:22]MH_I2C_Read... [23:35:22]Read from MH i2c: D1 [23:35:22]MH_I2C_Read... [23:35:22]Read from MH i2c: D1 01 00 [23:35:22]MH_I2C_Read... [23:35:22]Read from MH i2c: D1 01 00 46 10 00 27 [23:35:22]Write to MH i2c: 01 00 00 47 10 57 [23:35:22]Write i2c OK [23:35:22]MH_I2C_Read... [23:35:22]OFD Sender: No OFD packet to send [23:35:23]*** Cut start [23:35:23]*** Partial cut [23:35:23]*** CUTSNS_PIN = 1 [23:35:23]*** CUTSNS_PIN = 0 [23:35:23]*** Brake cut motor [23:35:23]Read from MH i2c: 01 [23:35:23]MH_I2C_Read... [23:35:23]*** Stop cut motor [23:35:23]*** Cut end [23:35:23]Read from MH i2c: 01 07 00 [23:35:23]MH_I2C_Read... [23:35:23]Read from MH i2c: 01 07 00 47 10 00 00 00 00 00 FF 0F 6C [23:35:23]process_action close_receipt done [23:35:23]requested_data is exist [23:35:23]produce_requested_data [23:35:23]requested_item fm.sn is exist - process it [23:35:23]wFMCommunicate request_size=4 [23:35:23]MH_SAM_APDU [23:35:23]CAPDU: 80 11 00 00 [23:35:23]Write to MH i2c: E2 08 00 48 10 80 11 00 00 00 00 00 00 D2 [23:35:23]Write i2c OK [23:35:23]MH_I2C_Read... [23:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:24]Read from MH i2c: E2 [23:35:24]MH_I2C_Read... [23:35:24]Read from MH i2c: E2 17 00 [23:35:24]MH_I2C_Read... [23:35:24]Read from MH i2c: E2 17 00 48 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 25 [23:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:35:24]wFMCommunicate OK [23:35:24]requested_item fd.num is exist - process it [23:35:24]SAM_PROTO_GetFieldsCounters [23:35:24]wFMCommunicate request_size=4 [23:35:24]MH_SAM_APDU [23:35:24]CAPDU: 80 13 00 00 [23:35:24]Write to MH i2c: E2 08 00 49 10 80 13 00 00 00 00 00 00 D5 [23:35:24]Write i2c OK [23:35:24]MH_I2C_Read... [23:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:35:24]Read from MH i2c: E2 [23:35:24]MH_I2C_Read... [23:35:24]Read from MH i2c: E2 62 00 [23:35:24]MH_I2C_Read... [23:35:24]Read from MH i2c: E2 62 00 49 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 2F E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 DA 02 00 00 5E 04 04 00 DA 02 00 00 57 04 04 00 DB 02 00 00 19 04 04 00 00 00 00 00 90 00 DC [23:35:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 2F E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 DA 02 00 00 5E 04 04 00 DA 02 00 00 57 04 04 00 DB 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:35:24]wFMCommunicate OK [23:35:24]SAM_PROTO_GetFieldsCounters done [23:35:24]requested_item shift.num is exist - process it [23:35:24]requested_item shift.opened is exist - process it [23:35:24]req_shift_opened [23:35:24]FM_GetShiftState [23:35:24]SAM_PROTO_GetShiftState [23:35:24]wFMCommunicate request_size=4 [23:35:24]MH_SAM_APDU [23:35:24]CAPDU: 80 13 01 00 [23:35:24]Write to MH i2c: E2 08 00 4A 10 80 13 01 00 00 00 00 00 D7 [23:35:24]Write i2c OK [23:35:24]MH_I2C_Read... [23:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:24]Read from MH i2c: E2 [23:35:24]MH_I2C_Read... [23:35:24]Read from MH i2c: E2 0E 00 [23:35:24]MH_I2C_Read... [23:35:24]Read from MH i2c: E2 0E 00 4A 10 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 AA [23:35:24]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:35:24]wFMCommunicate OK [23:35:24]SAM_PROTO_GetShiftState done [23:35:24]FM_GetShiftState done [23:35:24]req_shift_opened done [23:35:24]requested_item shift.open_date is exist - process it [23:35:24]req_shift_open_date [23:35:24]req_shift_open_date done [23:35:24]produce_requested_data done [23:35:24]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57903,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:35:24]process_action_free close_receipt [23:35:24]json_value_free [23:35:24]json_value_free done [23:35:24]process_json_proto returns [23:35:24]Send response to host [23:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57903,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:35:24]free response buf [23:35:24]execute_script done [23:35:24]execute_script returns [23:35:24]free content buf [23:35:24]Sock 9.Close socket [23:35:24]Sock 9.Thread stoped [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:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:51]accept exits with 8 [23:37:51]New connection [23:37:51]New thread 3066592612 created [23:37:51]Thread 3066735972 joined [23:37:51]Waiting for new connection... [23:37:51] Sock 8.Parse request [23:37:51]Sock 8.Check first char [23:37:51]Sock 8.First char is OK [23:37:51]request: POST /json_proto HTTP/1.0 [23:37:51]Method: POST [23:37:51]URL: /json_proto [23:37:51]Method is POST - this is cgi request [23:37:51]url: /json_proto [23:37:51]query_string will be loaded in cgi processing [23:37:51]execute_cgi json_proto POST (null) [23:37:51]execute_cgi path=json_proto method=POST [23:37:51]POST find Content-Length [23:37:51]Host: 172.17.60.68:8080 [23:37:51]Content-Length: 800 [23:37:51]Content-Type: application/json [23:37:51] [23:37:51]POST finish read [23:37:51]Found Content-Length = 800 [23:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543249", "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" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:51]execute_script... [23:37:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543249", "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" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:51]POST & json_proto [23:37:51]process_json_proto [23:37:51]json parsed OK: [23:37:51]protocol is kg_v1.0 [23:37:51]action value=close_receipt [23:37:51]process_action close_receipt [23:37:51]cmd_close_receipt [23:37:51]MH_GetDate [23:37:51]Write to MH i2c: F0 00 00 4B 10 4A [23:37:51]Write i2c OK [23:37:51]MH_I2C_Read... [23:37:51]Read from MH i2c: F0 [23:37:51]MH_I2C_Read... [23:37:51]Read from MH i2c: F0 09 00 [23:37:51]MH_I2C_Read... [23:37:51]Read from MH i2c: F0 09 00 4B 10 00 50 02 5D 66 8D A7 02 66 04 [23:37:51]GetLastDocTimeStamp 1717371320 [23:37:51]current date 1717371472 [23:37:51]FM_GetShiftState [23:37:51]SAM_PROTO_GetShiftState [23:37:51]wFMCommunicate request_size=4 [23:37:51]MH_SAM_APDU [23:37:51]CAPDU: 80 13 01 00 [23:37:51]Write to MH i2c: E2 08 00 4C 10 80 13 01 00 00 00 00 00 D9 [23:37:51]Write i2c OK [23:37:51]MH_I2C_Read... [23:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:51]Read from MH i2c: E2 [23:37:51]MH_I2C_Read... [23:37:51]Read from MH i2c: E2 0E 00 [23:37:51]MH_I2C_Read... [23:37:51]Read from MH i2c: E2 0E 00 4C 10 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 AC [23:37:51]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:37:51]wFMCommunicate OK [23:37:51]SAM_PROTO_GetShiftState done [23:37:51]FM_GetShiftState done [23:37:51]opened in 1717288520 [23:37:51]opened+sec_in_day 1717374920 [23:37:51]quantity*price = 30012 [23:37:51]sum+1 = 30014 [23:37:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 731 02.06.2024 23:37 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57904 ФПД: 147500385949849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T233752&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57904&fm=147500385949849&tin=02508201610067®Number=0000000000151680&sum=30013 [23:37:52]StoreToDocumentArchive [23:37:52]shift 69 fd 57904 [23:37:52]save to /storage/0069/doc_00057904 [23:37:52]save last doc name /storage/0069/doc_00057904 to /storage/kkm_last_doc_name [23:37:52]save OK [23:37:52]Clear old archive folders... [23:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:37:52]tlvbuf is 01860D20 [23:37:52]SAM_PROTO_ClearQueue [23:37:52]wFMCommunicate request_size=4 [23:37:52]MH_SAM_APDU [23:37:52]CAPDU: 80 09 00 00 [23:37:52]Write to MH i2c: E2 08 00 59 10 80 09 00 00 00 00 00 00 DB [23:37:52]Write i2c OK [23:37:52]MH_I2C_Read... [23:37:52]*** iso7816_exchange 80 09 00 00... 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 59 10 00 90 00 DD [23:37:52]RAPDU: 90 00 [23:37:52]wFMCommunicate OK [23:37:52]SAM_PROTO_ClearQueue done [23:37:52]KKMCreateOFDPacket [23:37:52]OFDProtocolAddRootSTLVToBuf [23:37:52]FM_MakeSignedData [23:37:52]FM_MakeSignedData [23:37:52]SAM_PROTO_SignData [23:37:52]wFMCommunicate request_size=4 [23:37:52]MH_SAM_APDU [23:37:52]CAPDU: 80 0D 01 02 [23:37:52]Write to MH i2c: E2 08 00 5A 10 80 0D 01 02 00 00 00 00 E3 [23:37:52]Write i2c OK [23:37:52]MH_I2C_Read... [23:37:52]*** iso7816_exchange 80 0D 01 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 5A 10 00 90 00 DE [23:37:52]RAPDU: 90 00 [23:37:52]wFMCommunicate OK [23:37:52]wFMCommunicate request_size=255 [23:37:52]MH_SAM_APDU [23:37:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 DB 02 00 00 F4 03 04 00 50 02 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 30 E2 00 00 35 04 06 00 86 [23:37:52]Write to MH i2c: E2 02 01 5B 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 DB 02 00 00 F4 03 04 00 50 02 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 30 E2 00 00 35 04 06 00 86 00 00 1A [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 5B 10 00 90 00 DF [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 26 9C 1B D8 99 [23:37:52]Write to MH i2c: E2 0D 00 5C 10 80 0D 02 02 05 00 26 9C 1B D8 99 00 00 3E [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 5C 10 00 90 00 E0 [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 5D 10 80 0D 03 02 00 00 00 00 E8 [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]OFD Sender: No OFD packet to send [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 5D 10 00 E5 7A B7 A8 74 59 E2 63 90 00 B9 [23:37:52]RAPDU: E5 7A B7 A8 74 59 E2 63 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 5E 10 80 11 00 00 00 00 00 00 E8 [23:37:52]Write i2c OK [23:37:52]MH_I2C_Read... [23:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:53]Read from MH i2c: E2 [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: E2 17 00 [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: E2 17 00 5E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 3B [23:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:37:53]wFMCommunicate OK [23:37:53]CreateOFDProtocolMessage done [23:37:53]OFDSenderStorePacket 57904 [23:37:53]StoreOFDPacket docnum=57904 [23:37:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 3C 34 07 01 AF 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 DB 02 00 00 F4 03 04 00 50 02 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 30 E2 00 00 35 04 06 00 86 26 9C 1B D8 99 E5 7A B7 A8 74 59 E2 63 [23:37:53]CheckFolder [23:37:53]dirname=/storage/ofd_packets [23:37:53]CheckFolder done [23:37:53]ProducePacketName [23:37:53]name=ofd_packets/00057904 [23:37:53]NVStorageSaveData ofd_packets/00057904 [23:37:53]File name is /storage/ofd_packets/00057904 [23:37:53]Write 301 bytes [23:37:53]NVStorageSaveData done [23:37:53]OFDSenderStorePacket done [23:37:53]KKMCreateOFDPacket done [23:37:53]NVStorageSaveData kkm_last_timestamp [23:37:53]File name is /storage/kkm_last_timestamp [23:37:53]Write 4 bytes [23:37:53]NVStorageSaveData done [23:37:53]ExternCall_PrintAddStr [23:37:53]wPrintStart [23:37:53]Write to MH i2c: 01 00 00 5F 10 6F [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 5F 10 00 00 00 00 00 FF 0F 84 [23:37:53]RasterBufferAndPrint [23:37:53]line Счет N : (1)543249 [23:37:53]line ИНН: 02508201610067 [23:37:53]line Контрольно-Кассовый Чек [23:37:53]line ПРОДАЖА [23:37:53]line ТРК (МРК, ГНК) : 12 [23:37:53]line Товар: 2710124130 [23:37:53]line Аи-92-К-5 [23:37:53]line 4.520 * 66.40 [23:37:53]line = 300.13 [23:37:53]line НДС 12% НСП 1% [23:37:53]line > о реализуемом товаре [23:37:53]line ИТОГО: 300.13 [23:37:53]line НСП 1% : 2.66 [23:37:53]line НДС 12% : 31.87 [23:37:53]line Наличными: 0.00 [23:37:53]line Безнал.: 300.13 [23:37:53]line Место: АЗС № 117 "Партнер Нефть" [23:37:53]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:37:53]line СНО: Общий режим [23:37:53]line Чек 731 02.06.2024 23:37 [23:37:53]line Смена: 69 ФФД: 1.0 [23:37:53]line ЗНМ: 0300000048 [23:37:53]line РНМ: 0000000000151680 [23:37:53]line Версия ККМ: v1.0 [23:37:53]line Платежная система: O! деньги [23:37:53]line ФМ: 0000000000959414 [23:37:53]line ФД: 57904 [23:37:53]line ФПД: 147500385949849 [23:37:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T233752&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57904&fm=147500385949849&tin=02508201610067®Number=0000000000151680&sum=30013 [23:37:53]written 0, free lines is 4095 [23:37:53]OFD Sender: Processing packet 57904 [packets to send 50, broken 49] [23:37:53]ProducePacketName [23:37:53]name=ofd_packets/00057904 [23:37:53]OFD Sender: To server: pG, [23:37:53]CommunicateWithHost lk.salyk.kg:30040 [23:37:53]ConnectInit lk.salyk.kg [23:37:53]Connected sock=10 [23:37:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 3C 34 07 01 AF 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 DB 02 00 00 F4 03 04 00 50 02 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 30 E2 00 00 35 04 06 00 86 26 9C 1B D8 99 E5 7A B7 A8 74 59 E2 63 [23:37:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 93 C1 47 00 B7 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 39 35 39 34 31 34 10 04 04 00 30 E2 00 00 F4 03 04 00 1F AD 5C 66 B6 04 01 00 00 49 C5 5D 19 69 BD 2D 06 [23:37:53]CommunicateWithHost err = 0 [23:37:53]CheckOFDResponse [23:37:53]1017 (14) - 77093643461234 [23:37:53]1041 (16) - 0000000000959414 [23:37:53]1040 (4) - 57904 [23:37:53]1012 (4) - 02.06.2024 17:34 [23:37:53]1206 (1) - 0 [23:37:53]OFD Sender: Remove packet 57904 [23:37:53]ProducePacketName [23:37:53]name=ofd_packets/00057904 [23:37:53]NVStorageDeleteData [23:37:53]Write to MH i2c: 01 00 00 89 10 99 [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 89 10 00 00 00 00 00 C5 0C 71 [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 3275 [23:37:53]MH_Cut [23:37:53]Write to MH i2c: D1 01 00 90 10 01 72 [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 90 10 00 71 [23:37:53]Write to MH i2c: 01 00 00 91 10 A1 [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:55]Read from MH i2c: 01 [23:37:55]MH_I2C_Read... [23:37:55]*** Stop cut motor [23:37:55]*** Cut end [23:37:55]Read from MH i2c: 01 07 00 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: 01 07 00 91 10 00 00 00 00 00 FF 0F B6 [23:37:55]process_action close_receipt done [23:37:55]requested_data is exist [23:37:55]produce_requested_data [23:37:55]requested_item fm.sn is exist - process it [23:37:55]wFMCommunicate request_size=4 [23:37:55]MH_SAM_APDU [23:37:55]CAPDU: 80 11 00 00 [23:37:55]Write to MH i2c: E2 08 00 92 10 80 11 00 00 00 00 00 00 1C [23:37:55]Write i2c OK [23:37:55]MH_I2C_Read... [23:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:55]Read from MH i2c: E2 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: E2 17 00 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: E2 17 00 92 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 6F [23:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:37:55]wFMCommunicate OK [23:37:55]requested_item fd.num is exist - process it [23:37:55]SAM_PROTO_GetFieldsCounters [23:37:55]wFMCommunicate request_size=4 [23:37:55]MH_SAM_APDU [23:37:55]CAPDU: 80 13 00 00 [23:37:55]Write to MH i2c: E2 08 00 93 10 80 13 00 00 00 00 00 00 1F [23:37:55]Write i2c OK [23:37:55]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 93 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 30 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 DB 02 00 00 5E 04 04 00 DB 02 00 00 57 04 04 00 DC 02 00 00 19 04 04 00 00 00 00 00 90 00 2A [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 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 30 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 DB 02 00 00 5E 04 04 00 DB 02 00 00 57 04 04 00 DC 02 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 94 10 80 13 01 00 00 00 00 00 21 [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 94 10 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 F4 [23:37:55]RAPDU: 09 00 01 48 BE 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":"0000000000959414","fd.num":57904,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [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":"0000000000959414","fd.num":57904,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [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:05]accept exits with 9 [23:39:05]New connection [23:39:05]New thread 3066735972 created [23:39:05]Thread 3066592612 joined [23:39:05]Waiting for new connection... [23:39:05] Sock 9.Parse request [23:39:05]Sock 9.Check first char [23:39:05]Sock 9.First char is OK [23:39:05]request: POST /json_proto HTTP/1.0 [23:39:05]Method: POST [23:39:05]URL: /json_proto [23:39:05]Method is POST - this is cgi request [23:39:05]url: /json_proto [23:39:05]query_string will be loaded in cgi processing [23:39:05]execute_cgi json_proto POST (null) [23:39:05]execute_cgi path=json_proto method=POST [23:39:05]POST find Content-Length [23:39:05]Host: 172.17.60.68:8080 [23:39:05]Content-Length: 990 [23:39:05]Content-Type: application/json [23:39:05] [23:39:05]POST finish read [23:39:05]Found Content-Length = 990 [23:39:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.90, "quantity" : 64.910, "sum" : 2200.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 64.91 \u0441\u043E\u043C", "deposit" : 2400.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:05]execute_script... [23:39:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.90, "quantity" : 64.910, "sum" : 2200.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 64.91 \u0441\u043E\u043C", "deposit" : 2400.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:05]POST & json_proto [23:39:05]process_json_proto [23:39:05]json parsed OK: [23:39:05]protocol is kg_v1.0 [23:39:05]action value=close_receipt [23:39:05]process_action close_receipt [23:39:05]cmd_close_receipt [23:39:05]MH_GetDate [23:39:05]Write to MH i2c: F0 00 00 95 10 94 [23:39:05]Write i2c OK [23:39:05]MH_I2C_Read... [23:39:05]Read from MH i2c: F0 [23:39:05]MH_I2C_Read... [23:39:05]Read from MH i2c: F0 09 00 [23:39:05]MH_I2C_Read... [23:39:05]Read from MH i2c: F0 09 00 95 10 00 9A 02 5D 66 8D A7 02 66 98 [23:39:05]GetLastDocTimeStamp 1717371472 [23:39:05]current date 1717371546 [23:39:05]FM_GetShiftState [23:39:05]SAM_PROTO_GetShiftState [23:39:05]wFMCommunicate request_size=4 [23:39:05]MH_SAM_APDU [23:39:05]CAPDU: 80 13 01 00 [23:39:05]Write to MH i2c: E2 08 00 96 10 80 13 01 00 00 00 00 00 23 [23:39:05]Write i2c OK [23:39:05]MH_I2C_Read... [23:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:05]Read from MH i2c: E2 [23:39:05]MH_I2C_Read... [23:39:05]Read from MH i2c: E2 0E 00 [23:39:05]MH_I2C_Read... [23:39:05]Read from MH i2c: E2 0E 00 96 10 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 F6 [23:39:05]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:39:05]wFMCommunicate OK [23:39:05]SAM_PROTO_GetShiftState done [23:39:05]FM_GetShiftState done [23:39:05]opened in 1717288520 [23:39:05]opened+sec_in_day 1717374920 [23:39:05]quantity*price = 220044 [23:39:05]sum+1 = 220046 [23:39:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 2200.00 Внесено: 2400.00 СДАЧА: 200.00 НСП 1% : 19.47 НДС 12% : 233.68 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 732 02.06.2024 23:39 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Дисконтная программа СУГ номер 117 сэкономлено 64.91 сом ФМ: 0000000000959414 ФД: 57905 ФПД: 205557164269850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T233906&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57905&fm=205557164269850&tin=02508201610067®Number=0000000000151680&sum=220000 [23:39:06]StoreToDocumentArchive [23:39:06]shift 69 fd 57905 [23:39:06]save to /storage/0069/doc_00057905 [23:39:06]save last doc name /storage/0069/doc_00057905 to /storage/kkm_last_doc_name [23:39:06]save OK [23:39:06]Clear old archive folders... [23:39:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:39:06]tlvbuf is 019E9920 [23:39:06]SAM_PROTO_ClearQueue [23:39:06]wFMCommunicate request_size=4 [23:39:06]MH_SAM_APDU [23:39:06]CAPDU: 80 09 00 00 [23:39:06]Write to MH i2c: E2 08 00 A3 10 80 09 00 00 00 00 00 00 25 [23:39:06]Write i2c OK [23:39:06]MH_I2C_Read... [23:39:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:06]Read from MH i2c: E2 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 03 00 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 03 00 A3 10 00 90 00 27 [23:39:06]RAPDU: 90 00 [23:39:06]wFMCommunicate OK [23:39:06]SAM_PROTO_ClearQueue done [23:39:06]KKMCreateOFDPacket [23:39:06]OFDProtocolAddRootSTLVToBuf [23:39:06]FM_MakeSignedData [23:39:06]FM_MakeSignedData [23:39:06]SAM_PROTO_SignData [23:39:06]wFMCommunicate request_size=4 [23:39:06]MH_SAM_APDU [23:39:06]CAPDU: 80 0D 01 02 [23:39:06]Write to MH i2c: E2 08 00 A4 10 80 0D 01 02 00 00 00 00 2D [23:39:06]Write i2c OK [23:39:06]MH_I2C_Read... [23:39:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:06]Read from MH i2c: E2 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 03 00 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 03 00 A4 10 00 90 00 28 [23:39:06]RAPDU: 90 00 [23:39:06]wFMCommunicate OK [23:39:06]wFMCommunicate request_size=255 [23:39:06]MH_SAM_APDU [23:39:06]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8E FD 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 8D 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 02 00 00 F4 03 04 00 9A 02 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 31 E2 00 00 35 04 06 00 BA F4 [23:39:06]Write to MH i2c: E2 02 01 A5 10 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8E FD 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 8D 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 02 00 00 F4 03 04 00 9A 02 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 31 E2 00 00 35 04 06 00 BA F4 00 00 9F [23:39:06]Write i2c OK [23:39:06]MH_I2C_Read... [23:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:06]Read from MH i2c: E2 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 03 00 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 03 00 A5 10 00 90 00 29 [23:39:06]RAPDU: 90 00 [23:39:06]wFMCommunicate OK [23:39:06]wFMCommunicate request_size=9 [23:39:06]MH_SAM_APDU [23:39:06]CAPDU: 80 0D 02 02 04 01 C1 E1 1A [23:39:06]Write to MH i2c: E2 0C 00 A6 10 80 0D 02 02 04 00 01 C1 E1 1A 00 00 F5 [23:39:06]Write i2c OK [23:39:06]MH_I2C_Read... [23:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:06]Read from MH i2c: E2 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 03 00 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 03 00 A6 10 00 90 00 2A [23:39:06]RAPDU: 90 00 [23:39:06]wFMCommunicate OK [23:39:06]wFMCommunicate request_size=4 [23:39:06]MH_SAM_APDU [23:39:06]CAPDU: 80 0D 03 02 [23:39:06]Write to MH i2c: E2 08 00 A7 10 80 0D 03 02 00 00 00 00 32 [23:39:06]Write i2c OK [23:39:06]MH_I2C_Read... [23:39:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:06]Read from MH i2c: E2 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 0B 00 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 0B 00 A7 10 00 D2 1C DE A3 7A 3A F8 14 90 00 62 [23:39:06]RAPDU: D2 1C DE A3 7A 3A F8 14 90 00 [23:39:06]wFMCommunicate OK [23:39:06]SAM_PROTO_SignData done [23:39:06]FM_MakeSignedData done [23:39:06]CreateOFDProtocolMessage [23:39:06]wFMCommunicate request_size=4 [23:39:06]MH_SAM_APDU [23:39:06]CAPDU: 80 11 00 00 [23:39:06]Write to MH i2c: E2 08 00 A8 10 80 11 00 00 00 00 00 00 32 [23:39:06]Write i2c OK [23:39:06]MH_I2C_Read... [23:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:06]Read from MH i2c: E2 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 17 00 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: E2 17 00 A8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 85 [23:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:39:06]wFMCommunicate OK [23:39:06]CreateOFDProtocolMessage done [23:39:06]OFDSenderStorePacket 57905 [23:39:06]StoreOFDPacket docnum=57905 [23:39:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 68 1F 06 01 E3 0E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8E FD 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 8D 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 02 00 00 F4 03 04 00 9A 02 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 31 E2 00 00 35 04 06 00 BA F4 01 C1 E1 1A D2 1C DE A3 7A 3A F8 14 [23:39:06]CheckFolder [23:39:06]dirname=/storage/ofd_packets [23:39:06]CheckFolder done [23:39:06]ProducePacketName [23:39:06]name=ofd_packets/00057905 [23:39:06]NVStorageSaveData ofd_packets/00057905 [23:39:06]File name is /storage/ofd_packets/00057905 [23:39:06]Write 300 bytes [23:39:06]NVStorageSaveData done [23:39:06]OFDSenderStorePacket done [23:39:06]KKMCreateOFDPacket done [23:39:06]NVStorageSaveData kkm_last_timestamp [23:39:06]File name is /storage/kkm_last_timestamp [23:39:06]Write 4 bytes [23:39:06]NVStorageSaveData done [23:39:06]ExternCall_PrintAddStr [23:39:06]wPrintStart [23:39:06]Write to MH i2c: 01 00 00 A9 10 B9 [23:39:06]Write i2c OK [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: 01 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: 01 07 00 [23:39:06]MH_I2C_Read... [23:39:06]Read from MH i2c: 01 07 00 A9 10 00 00 00 00 00 FF 0F CE [23:39:06]RasterBufferAndPrint [23:39:06]line Счет N : (1)543247 [23:39:06]line ИНН: 02508201610067 [23:39:06]line Контрольно-Кассовый Чек [23:39:06]line ПРОДАЖА [23:39:06]line ТРК (МРК, ГНК) : 71 [23:39:06]line Товар: 2711190000 [23:39:06]line ГАЗ-К-5 [23:39:06]line 64.910 * 33.90 [23:39:06]line = 2200.45 [23:39:06]line НДС 12% НСП 1% [23:39:06]line > о реализуемом товаре [23:39:06]line ОКРУГЛЕНИЕ: -0.45 [23:39:06]line ИТОГО: 2200.00 [23:39:06]line Внесено: 2400.00 [23:39:06]line СДАЧА: 200.00 [23:39:06]line НСП 1% : 19.47 [23:39:06]line НДС 12% : 233.68 [23:39:06]line Наличными: 2200.00 [23:39:06]line Безнал.: 0.00 [23:39:06]line Место: АЗС № 117 "Партнер Нефть" [23:39:06]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:39:06]line СНО: Общий режим [23:39:06]line Чек 732 02.06.2024 23:39 [23:39:06]line Смена: 69 ФФД: 1.0 [23:39:06]line ЗНМ: 0300000048 [23:39:06]line РНМ: 0000000000151680 [23:39:06]line Версия ККМ: v1.0 [23:39:06]line [23:39:06]line Дисконтная программа [23:39:06]line СУГ [23:39:06]line номер 117 [23:39:06]line сэкономлено 64.91 сом [23:39:06]line ФМ: 0000000000959414 [23:39:06]line ФД: 57905 [23:39:06]line ФПД: 205557164269850 [23:39:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T233906&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57905&fm=205557164269850&tin=02508201610067®Number=0000000000151680&sum=220000 [23:39:07]OFD Sender: Processing packet 57905 [packets to send 50, broken 49] [23:39:07]ProducePacketName [23:39:07]name=ofd_packets/00057905 [23:39:07]OFD Sender: To server: pG, [23:39:07]CommunicateWithHost lk.salyk.kg:30040 [23:39:07]ConnectInit lk.salyk.kg [23:39:07]written 0, free lines is 4095 [23:39:07]Connected sock=10 [23:39:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 68 1F 06 01 E3 0E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8E FD 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 8D 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 02 00 00 F4 03 04 00 9A 02 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 31 E2 00 00 35 04 06 00 BA F4 01 C1 E1 1A D2 1C DE A3 7A 3A F8 14 [23:39:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 3C D9 47 00 51 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 31 E2 00 00 F4 03 04 00 69 AD 5C 66 B6 04 01 00 00 88 BD E4 14 AC C0 81 C2 [23:39:07]CommunicateWithHost err = 0 [23:39:07]CheckOFDResponse [23:39:07]1017 (14) - 77093643461234 [23:39:07]1041 (16) - 0000000000959414 [23:39:07]1040 (4) - 57905 [23:39:07]1012 (4) - 02.06.2024 17:35 [23:39:07]1206 (1) - 0 [23:39:07]OFD Sender: Remove packet 57905 [23:39:07]ProducePacketName [23:39:07]name=ofd_packets/00057905 [23:39:07]NVStorageDeleteData [23:39:07]Write to MH i2c: 01 00 00 D9 10 E9 [23:39:07]Write i2c OK [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: 01 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: 01 07 00 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: 01 07 00 D9 10 00 00 00 00 00 4B 0C 47 [23:39:07]RasterBufferAndPrint [23:39:07]line [23:39:07]line [23:39:07]line [23:39:07]line [23:39:07]line [23:39:07]written 0, free lines is 3152 [23:39:07]MH_Cut [23:39:07]Write to MH i2c: D1 01 00 E0 10 01 C2 [23:39:07]Write i2c OK [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: D1 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: D1 01 00 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: D1 01 00 E0 10 00 C1 [23:39:07]Write to MH i2c: 01 00 00 E1 10 F1 [23:39:07]Write i2c OK [23:39:07]MH_I2C_Read... [23:39:08]OFD Sender: No OFD packet to send [23:39:08]*** Cut start [23:39:08]*** Partial cut [23:39:08]*** CUTSNS_PIN = 1 [23:39:08]*** CUTSNS_PIN = 0 [23:39:09]*** Brake cut motor [23:39:09]Read from MH i2c: 01 [23:39:09]MH_I2C_Read... [23:39:09]*** Stop cut motor [23:39:09]*** Cut end [23:39:09]Read from MH i2c: 01 07 00 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: 01 07 00 E1 10 00 00 00 00 00 FF 0F 06 [23:39:09]process_action close_receipt done [23:39:09]requested_data is exist [23:39:09]produce_requested_data [23:39:09]requested_item fm.sn is exist - process it [23:39:09]wFMCommunicate request_size=4 [23:39:09]MH_SAM_APDU [23:39:09]CAPDU: 80 11 00 00 [23:39:09]Write to MH i2c: E2 08 00 E2 10 80 11 00 00 00 00 00 00 6C [23:39:09]Write i2c OK [23:39:09]MH_I2C_Read... [23:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:09]Read from MH i2c: E2 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: E2 17 00 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: E2 17 00 E2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 BF [23:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:39:09]wFMCommunicate OK [23:39:09]requested_item fd.num is exist - process it [23:39:09]SAM_PROTO_GetFieldsCounters [23:39:09]wFMCommunicate request_size=4 [23:39:09]MH_SAM_APDU [23:39:09]CAPDU: 80 13 00 00 [23:39:09]Write to MH i2c: E2 08 00 E3 10 80 13 00 00 00 00 00 00 6F [23:39:09]Write i2c OK [23:39:09]MH_I2C_Read... [23:39:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:09]Read from MH i2c: E2 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: E2 62 00 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: E2 62 00 E3 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 31 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 DC 02 00 00 5E 04 04 00 DC 02 00 00 57 04 04 00 DD 02 00 00 19 04 04 00 00 00 00 00 90 00 7E [23:39:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 31 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 DC 02 00 00 5E 04 04 00 DC 02 00 00 57 04 04 00 DD 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:39:09]wFMCommunicate OK [23:39:09]SAM_PROTO_GetFieldsCounters done [23:39:09]requested_item shift.num is exist - process it [23:39:09]requested_item shift.opened is exist - process it [23:39:09]req_shift_opened [23:39:09]FM_GetShiftState [23:39:09]SAM_PROTO_GetShiftState [23:39:09]wFMCommunicate request_size=4 [23:39:09]MH_SAM_APDU [23:39:09]CAPDU: 80 13 01 00 [23:39:09]Write to MH i2c: E2 08 00 E4 10 80 13 01 00 00 00 00 00 71 [23:39:09]Write i2c OK [23:39:09]MH_I2C_Read... [23:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:09]Read from MH i2c: E2 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: E2 0E 00 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: E2 0E 00 E4 10 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 44 [23:39:09]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:39:09]wFMCommunicate OK [23:39:09]SAM_PROTO_GetShiftState done [23:39:09]FM_GetShiftState done [23:39:09]req_shift_opened done [23:39:09]requested_item shift.open_date is exist - process it [23:39:09]req_shift_open_date [23:39:09]req_shift_open_date done [23:39:09]produce_requested_data done [23:39:09]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57905,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:39:09]process_action_free close_receipt [23:39:09]json_value_free [23:39:09]json_value_free done [23:39:09]process_json_proto returns [23:39:09]Send response to host [23:39:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57905,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:39:09]free response buf [23:39:09]execute_script done [23:39:09]execute_script returns [23:39:09]free content buf [23:39:09]Sock 9.Close socket [23:39:09]Sock 9.Thread stoped [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:33]accept exits with 8 [23:41:33]New connection [23:41:33]New thread 3066592612 created [23:41:33]Thread 3066735972 joined [23:41:33]Waiting for new connection... [23:41:33] Sock 8.Parse request [23:41:33]Sock 8.Check first char [23:41:33]Sock 8.First char is OK [23:41:33]request: POST /json_proto HTTP/1.0 [23:41:33]Method: POST [23:41:33]URL: /json_proto [23:41:33]Method is POST - this is cgi request [23:41:33]url: /json_proto [23:41:33]query_string will be loaded in cgi processing [23:41:33]execute_cgi json_proto POST (null) [23:41:33]execute_cgi path=json_proto method=POST [23:41:33]POST find Content-Length [23:41:33]Host: 172.17.60.68:8080 [23:41:33]Content-Length: 677 [23:41:33]Content-Type: application/json [23:41:33] [23:41:33]POST finish read [23:41:33]Found Content-Length = 677 [23:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543250", "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" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:33]execute_script... [23:41:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543250", "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" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:33]POST & json_proto [23:41:33]process_json_proto [23:41:33]json parsed OK: [23:41:33]protocol is kg_v1.0 [23:41:33]action value=close_receipt [23:41:33]process_action close_receipt [23:41:33]cmd_close_receipt [23:41:33]MH_GetDate [23:41:33]Write to MH i2c: F0 00 00 E5 10 E4 [23:41:33]Write i2c OK [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: F0 [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: F0 09 00 [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: F0 09 00 E5 10 00 2E 03 5D 66 8D A7 02 66 7D [23:41:33]GetLastDocTimeStamp 1717371546 [23:41:33]current date 1717371694 [23:41:33]FM_GetShiftState [23:41:33]SAM_PROTO_GetShiftState [23:41:33]wFMCommunicate request_size=4 [23:41:33]MH_SAM_APDU [23:41:33]CAPDU: 80 13 01 00 [23:41:33]Write to MH i2c: E2 08 00 E6 10 80 13 01 00 00 00 00 00 73 [23:41:33]Write i2c OK [23:41:33]MH_I2C_Read... [23:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:33]Read from MH i2c: E2 [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: E2 0E 00 [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: E2 0E 00 E6 10 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 46 [23:41:33]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:41:33]wFMCommunicate OK [23:41:33]SAM_PROTO_GetShiftState done [23:41:33]FM_GetShiftState done [23:41:33]opened in 1717288520 [23:41:33]opened+sec_in_day 1717374920 [23:41:33]quantity*price = 40039 [23:41:33]sum+1 = 40040 [23:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 733 02.06.2024 23:41 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57906 ФПД: 144112692425084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T234134&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57906&fm=144112692425084&tin=02508201610067®Number=0000000000151680&sum=40000 [23:41:34]StoreToDocumentArchive [23:41:34]shift 69 fd 57906 [23:41:34]save to /storage/0069/doc_00057906 [23:41:34]save last doc name /storage/0069/doc_00057906 to /storage/kkm_last_doc_name [23:41:34]save OK [23:41:34]Clear old archive folders... [23:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:41:34]tlvbuf is 01A32A10 [23:41:34]SAM_PROTO_ClearQueue [23:41:34]wFMCommunicate request_size=4 [23:41:34]MH_SAM_APDU [23:41:34]CAPDU: 80 09 00 00 [23:41:34]Write to MH i2c: E2 08 00 F3 10 80 09 00 00 00 00 00 00 75 [23:41:34]Write i2c OK [23:41:34]MH_I2C_Read... [23:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:34]Read from MH i2c: E2 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 03 00 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 03 00 F3 10 00 90 00 77 [23:41:34]RAPDU: 90 00 [23:41:34]wFMCommunicate OK [23:41:34]SAM_PROTO_ClearQueue done [23:41:34]KKMCreateOFDPacket [23:41:34]OFDProtocolAddRootSTLVToBuf [23:41:34]FM_MakeSignedData [23:41:34]FM_MakeSignedData [23:41:34]SAM_PROTO_SignData [23:41:34]wFMCommunicate request_size=4 [23:41:34]MH_SAM_APDU [23:41:34]CAPDU: 80 0D 01 02 [23:41:34]Write to MH i2c: E2 08 00 F4 10 80 0D 01 02 00 00 00 00 7D [23:41:34]Write i2c OK [23:41:34]MH_I2C_Read... [23:41:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:34]Read from MH i2c: E2 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 03 00 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 03 00 F4 10 00 90 00 78 [23:41:34]RAPDU: 90 00 [23:41:34]wFMCommunicate OK [23:41:34]wFMCommunicate request_size=255 [23:41:34]MH_SAM_APDU [23:41:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 02 00 00 F4 03 04 00 2E 03 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 32 E2 00 00 35 04 06 00 83 [23:41:35]Write to MH i2c: E2 02 01 F5 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 02 00 00 F4 03 04 00 2E 03 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 32 E2 00 00 35 04 06 00 83 00 00 AA [23:41:35]Write i2c OK [23:41:35]MH_I2C_Read... [23:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:35]Read from MH i2c: E2 [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: E2 03 00 [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: E2 03 00 F5 10 00 90 00 79 [23:41:35]RAPDU: 90 00 [23:41:35]wFMCommunicate OK [23:41:35]wFMCommunicate request_size=10 [23:41:35]MH_SAM_APDU [23:41:35]CAPDU: 80 0D 02 02 05 11 D9 D6 F1 7C [23:41:35]Write to MH i2c: E2 0D 00 F6 10 80 0D 02 02 05 00 11 D9 D6 F1 7C 00 00 B7 [23:41:35]Write i2c OK [23:41:35]MH_I2C_Read... [23:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:35]Read from MH i2c: E2 [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: E2 03 00 [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: E2 03 00 F6 10 00 90 00 7A [23:41:35]RAPDU: 90 00 [23:41:35]wFMCommunicate OK [23:41:35]wFMCommunicate request_size=4 [23:41:35]MH_SAM_APDU [23:41:35]CAPDU: 80 0D 03 02 [23:41:35]Write to MH i2c: E2 08 00 F7 10 80 0D 03 02 00 00 00 00 82 [23:41:35]Write i2c OK [23:41:35]MH_I2C_Read... [23:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:35]Read from MH i2c: E2 [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: E2 0B 00 [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: E2 0B 00 F7 10 00 F9 51 7F A1 B8 41 D8 EA 90 00 A8 [23:41:35]RAPDU: F9 51 7F A1 B8 41 D8 EA 90 00 [23:41:35]wFMCommunicate OK [23:41:35]SAM_PROTO_SignData done [23:41:35]FM_MakeSignedData done [23:41:35]CreateOFDProtocolMessage [23:41:35]wFMCommunicate request_size=4 [23:41:35]MH_SAM_APDU [23:41:35]CAPDU: 80 11 00 00 [23:41:35]Write to MH i2c: E2 08 00 F8 10 80 11 00 00 00 00 00 00 82 [23:41:35]Write i2c OK [23:41:35]MH_I2C_Read... [23:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:35]Read from MH i2c: E2 [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: E2 17 00 [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: E2 17 00 F8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 D5 [23:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:41:35]wFMCommunicate OK [23:41:35]CreateOFDProtocolMessage done [23:41:35]OFDSenderStorePacket 57906 [23:41:35]StoreOFDPacket docnum=57906 [23:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 60 B3 07 01 D3 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 02 00 00 F4 03 04 00 2E 03 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 32 E2 00 00 35 04 06 00 83 11 D9 D6 F1 7C F9 51 7F A1 B8 41 D8 EA [23:41:35]CheckFolder [23:41:35]dirname=/storage/ofd_packets [23:41:35]CheckFolder done [23:41:35]ProducePacketName [23:41:35]name=ofd_packets/00057906 [23:41:35]NVStorageSaveData ofd_packets/00057906 [23:41:35]File name is /storage/ofd_packets/00057906 [23:41:35]Write 301 bytes [23:41:35]NVStorageSaveData done [23:41:35]OFDSenderStorePacket done [23:41:35]KKMCreateOFDPacket done [23:41:35]NVStorageSaveData kkm_last_timestamp [23:41:35]File name is /storage/kkm_last_timestamp [23:41:35]Write 4 bytes [23:41:35]NVStorageSaveData done [23:41:35]ExternCall_PrintAddStr [23:41:35]wPrintStart [23:41:35]Write to MH i2c: 01 00 00 F9 10 09 [23:41:35]Write i2c OK [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: 01 [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: 01 07 00 [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: 01 07 00 F9 10 00 00 00 00 00 FF 0F 1E [23:41:35]RasterBufferAndPrint [23:41:35]line Счет N : (1)543250 [23:41:35]line ИНН: 02508201610067 [23:41:35]line Контрольно-Кассовый Чек [23:41:35]line ПРОДАЖА [23:41:35]line ТРК (МРК, ГНК) : 12 [23:41:35]line Товар: 2710124130 [23:41:35]line Аи-92-К-5 [23:41:35]line 6.030 * 66.40 [23:41:35]line = 400.39 [23:41:35]line НДС 12% НСП 1% [23:41:35]line > о реализуемом товаре [23:41:35]line ОКРУГЛЕНИЕ: -0.39 [23:41:35]line ИТОГО: 400.00 [23:41:35]line Внесено: 400.00 [23:41:35]line СДАЧА: 0.00 [23:41:35]line НСП 1% : 3.54 [23:41:35]line НДС 12% : 42.52 [23:41:35]line Наличными: 400.00 [23:41:35]line Безнал.: 0.00 [23:41:35]line Место: АЗС № 117 "Партнер Нефть" [23:41:35]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:41:35]line СНО: Общий режим [23:41:35]line Чек 733 02.06.2024 23:41 [23:41:35]line Смена: 69 ФФД: 1.0 [23:41:35]line ЗНМ: 0300000048 [23:41:35]line РНМ: 0000000000151680 [23:41:35]line Версия ККМ: v1.0 [23:41:35]line ФМ: 0000000000959414 [23:41:35]line ФД: 57906 [23:41:35]line ФПД: 144112692425084 [23:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T234134&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57906&fm=144112692425084&tin=02508201610067®Number=0000000000151680&sum=40000 [23:41:35]OFD Sender: Processing packet 57906 [packets to send 50, broken 49] [23:41:35]ProducePacketName [23:41:35]name=ofd_packets/00057906 [23:41:35]OFD Sender: To server: pG, [23:41:35]CommunicateWithHost lk.salyk.kg:30040 [23:41:35]ConnectInit lk.salyk.kg [23:41:35]written 0, free lines is 4095 [23:41:35]Connected sock=10 [23:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 60 B3 07 01 D3 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 02 00 00 F4 03 04 00 2E 03 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 32 E2 00 00 35 04 06 00 83 11 D9 D6 F1 7C F9 51 7F A1 B8 41 D8 EA [23:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 73 03 47 00 17 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 39 35 39 34 31 34 10 04 04 00 32 E2 00 00 F4 03 04 00 FE AD 5C 66 B6 04 01 00 00 EC 46 B3 9D 7C 3B DA 6B [23:41:36]CommunicateWithHost err = 0 [23:41:36]CheckOFDResponse [23:41:36]1017 (14) - 77093643461234 [23:41:36]1041 (16) - 0000000000959414 [23:41:36]1040 (4) - 57906 [23:41:36]1012 (4) - 02.06.2024 17:38 [23:41:36]1206 (1) - 0 [23:41:36]OFD Sender: Remove packet 57906 [23:41:36]ProducePacketName [23:41:36]name=ofd_packets/00057906 [23:41:36]NVStorageDeleteData [23:41:36]Write to MH i2c: 01 00 00 24 11 35 [23:41:36]Write i2c OK [23:41:36]MH_I2C_Read... [23:41:36]Read from MH i2c: 01 [23:41:36]MH_I2C_Read... [23:41:36]Read from MH i2c: 01 07 00 [23:41:36]MH_I2C_Read... [23:41:36]Read from MH i2c: 01 07 00 24 11 00 00 00 00 00 B1 0C F9 [23:41:36]RasterBufferAndPrint [23:41:36]line [23:41:36]line [23:41:36]line [23:41:36]line [23:41:36]line [23:41:36]written 0, free lines is 3255 [23:41:36]MH_Cut [23:41:36]Write to MH i2c: D1 01 00 2B 11 01 0E [23:41:36]Write i2c OK [23:41:36]MH_I2C_Read... [23:41:36]Read from MH i2c: D1 [23:41:36]MH_I2C_Read... [23:41:36]Read from MH i2c: D1 01 00 [23:41:36]MH_I2C_Read... [23:41:36]Read from MH i2c: D1 01 00 2B 11 00 0D [23:41:36]Write to MH i2c: 01 00 00 2C 11 3D [23:41:36]Write i2c OK [23:41:36]MH_I2C_Read... [23:41:36]OFD Sender: No OFD packet to send [23:41:37]*** Cut start [23:41:37]*** Partial cut [23:41:37]*** CUTSNS_PIN = 1 [23:41:37]*** CUTSNS_PIN = 0 [23:41:37]*** Brake cut motor [23:41:37]Read from MH i2c: 01 [23:41:37]MH_I2C_Read... [23:41:37]*** Stop cut motor [23:41:37]*** Cut end [23:41:37]Read from MH i2c: 01 07 00 [23:41:37]MH_I2C_Read... [23:41:37]Read from MH i2c: 01 07 00 2C 11 00 00 00 00 00 FF 0F 52 [23:41:37]process_action close_receipt done [23:41:37]requested_data is exist [23:41:37]produce_requested_data [23:41:37]requested_item fm.sn is exist - process it [23:41:37]wFMCommunicate request_size=4 [23:41:37]MH_SAM_APDU [23:41:37]CAPDU: 80 11 00 00 [23:41:37]Write to MH i2c: E2 08 00 2D 11 80 11 00 00 00 00 00 00 B8 [23:41:37]Write i2c OK [23:41:37]MH_I2C_Read... [23:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:37]Read from MH i2c: E2 [23:41:37]MH_I2C_Read... [23:41:37]Read from MH i2c: E2 17 00 [23:41:37]MH_I2C_Read... [23:41:37]Read from MH i2c: E2 17 00 2D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 0B [23:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:41:37]wFMCommunicate OK [23:41:37]requested_item fd.num is exist - process it [23:41:37]SAM_PROTO_GetFieldsCounters [23:41:37]wFMCommunicate request_size=4 [23:41:37]MH_SAM_APDU [23:41:37]CAPDU: 80 13 00 00 [23:41:37]Write to MH i2c: E2 08 00 2E 11 80 13 00 00 00 00 00 00 BB [23:41:37]Write i2c OK [23:41:37]MH_I2C_Read... [23:41:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:37]Read from MH i2c: E2 [23:41:37]MH_I2C_Read... [23:41:37]Read from MH i2c: E2 62 00 [23:41:37]MH_I2C_Read... [23:41:37]Read from MH i2c: E2 62 00 2E 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 32 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 DD 02 00 00 5E 04 04 00 DD 02 00 00 57 04 04 00 DE 02 00 00 19 04 04 00 00 00 00 00 90 00 CE [23:41:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 32 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 DD 02 00 00 5E 04 04 00 DD 02 00 00 57 04 04 00 DE 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:41:38]wFMCommunicate OK [23:41:38]SAM_PROTO_GetFieldsCounters done [23:41:38]requested_item shift.num is exist - process it [23:41:38]requested_item shift.opened is exist - process it [23:41:38]req_shift_opened [23:41:38]FM_GetShiftState [23:41:38]SAM_PROTO_GetShiftState [23:41:38]wFMCommunicate request_size=4 [23:41:38]MH_SAM_APDU [23:41:38]CAPDU: 80 13 01 00 [23:41:38]Write to MH i2c: E2 08 00 2F 11 80 13 01 00 00 00 00 00 BD [23:41:38]Write i2c OK [23:41:38]MH_I2C_Read... [23:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:38]Read from MH i2c: E2 [23:41:38]MH_I2C_Read... [23:41:38]Read from MH i2c: E2 0E 00 [23:41:38]MH_I2C_Read... [23:41:38]Read from MH i2c: E2 0E 00 2F 11 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 90 [23:41:38]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:41:38]wFMCommunicate OK [23:41:38]SAM_PROTO_GetShiftState done [23:41:38]FM_GetShiftState done [23:41:38]req_shift_opened done [23:41:38]requested_item shift.open_date is exist - process it [23:41:38]req_shift_open_date [23:41:38]req_shift_open_date done [23:41:38]produce_requested_data done [23:41:38]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57906,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:41:38]process_action_free close_receipt [23:41:38]json_value_free [23:41:38]json_value_free done [23:41:38]process_json_proto returns [23:41:38]Send response to host [23:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57906,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:41:38]free response buf [23:41:38]execute_script done [23:41:38]execute_script returns [23:41:38]free content buf [23:41:38]Sock 8.Close socket [23:41:38]Sock 8.Thread stoped [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:54]accept exits with 9 [23:45:54]New connection [23:45:54]New thread 3066735972 created [23:45:54]Thread 3066592612 joined [23:45:54]Waiting for new connection... [23:45:54] Sock 9.Parse request [23:45:54]Sock 9.Check first char [23:45:54]Sock 9.First char is OK [23:45:54]request: POST /json_proto HTTP/1.0 [23:45:54]Method: POST [23:45:54]URL: /json_proto [23:45:54]Method is POST - this is cgi request [23:45:54]url: /json_proto [23:45:54]query_string will be loaded in cgi processing [23:45:54]execute_cgi json_proto POST (null) [23:45:54]execute_cgi path=json_proto method=POST [23:45:54]POST find Content-Length [23:45:54]Host: 172.17.60.68:8080 [23:45:54]Content-Length: 674 [23:45:54]Content-Type: application/json [23:45:54] [23:45:54]POST finish read [23:45:54]Found Content-Length = 674 [23:45:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.080, "sum" : 370.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:54]execute_script... [23:45:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.080, "sum" : 370.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:54]POST & json_proto [23:45:54]process_json_proto [23:45:54]json parsed OK: [23:45:54]protocol is kg_v1.0 [23:45:54]action value=close_receipt [23:45:54]process_action close_receipt [23:45:54]cmd_close_receipt [23:45:54]MH_GetDate [23:45:54]Write to MH i2c: F0 00 00 30 11 30 [23:45:54]Write i2c OK [23:45:54]MH_I2C_Read... [23:45:54]Read from MH i2c: F0 [23:45:54]MH_I2C_Read... [23:45:54]Read from MH i2c: F0 09 00 [23:45:54]MH_I2C_Read... [23:45:54]Read from MH i2c: F0 09 00 30 11 00 33 04 5D 66 8D A7 02 66 CF [23:45:54]GetLastDocTimeStamp 1717371694 [23:45:54]current date 1717371955 [23:45:54]FM_GetShiftState [23:45:54]SAM_PROTO_GetShiftState [23:45:54]wFMCommunicate request_size=4 [23:45:54]MH_SAM_APDU [23:45:54]CAPDU: 80 13 01 00 [23:45:54]Write to MH i2c: E2 08 00 31 11 80 13 01 00 00 00 00 00 BF [23:45:54]Write i2c OK [23:45:54]MH_I2C_Read... [23:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:54]Read from MH i2c: E2 [23:45:54]MH_I2C_Read... [23:45:54]Read from MH i2c: E2 0E 00 [23:45:54]MH_I2C_Read... [23:45:54]Read from MH i2c: E2 0E 00 31 11 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 92 [23:45:54]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:45:54]wFMCommunicate OK [23:45:54]SAM_PROTO_GetShiftState done [23:45:54]FM_GetShiftState done [23:45:54]opened in 1717288520 [23:45:54]opened+sec_in_day 1717374920 [23:45:54]quantity*price = 37033 [23:45:54]sum+1 = 37034 [23:45:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.33 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 734 02.06.2024 23:45 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57907 ФПД: 208799926567660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T234555&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57907&fm=208799926567660&tin=02508201610067®Number=0000000000151680&sum=37000 [23:45:55]StoreToDocumentArchive [23:45:55]shift 69 fd 57907 [23:45:55]save to /storage/0069/doc_00057907 [23:45:55]save last doc name /storage/0069/doc_00057907 to /storage/kkm_last_doc_name [23:45:55]save OK [23:45:55]Clear old archive folders... [23:45:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:45:55]tlvbuf is 01861040 [23:45:55]SAM_PROTO_ClearQueue [23:45:55]wFMCommunicate request_size=4 [23:45:55]MH_SAM_APDU [23:45:55]CAPDU: 80 09 00 00 [23:45:55]Write to MH i2c: E2 08 00 3E 11 80 09 00 00 00 00 00 00 C1 [23:45:55]Write i2c OK [23:45:55]MH_I2C_Read... [23:45:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:55]Read from MH i2c: E2 [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: E2 03 00 [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: E2 03 00 3E 11 00 90 00 C3 [23:45:55]RAPDU: 90 00 [23:45:55]wFMCommunicate OK [23:45:55]SAM_PROTO_ClearQueue done [23:45:55]KKMCreateOFDPacket [23:45:55]OFDProtocolAddRootSTLVToBuf [23:45:55]FM_MakeSignedData [23:45:55]FM_MakeSignedData [23:45:55]SAM_PROTO_SignData [23:45:55]wFMCommunicate request_size=4 [23:45:55]MH_SAM_APDU [23:45:55]CAPDU: 80 0D 01 02 [23:45:55]Write to MH i2c: E2 08 00 3F 11 80 0D 01 02 00 00 00 00 C9 [23:45:55]Write i2c OK [23:45:55]MH_I2C_Read... [23:45:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:55]Read from MH i2c: E2 [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: E2 03 00 [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: E2 03 00 3F 11 00 90 00 C4 [23:45:55]RAPDU: 90 00 [23:45:55]wFMCommunicate OK [23:45:55]wFMCommunicate request_size=255 [23:45:55]MH_SAM_APDU [23:45:55]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 D8 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 02 00 00 F4 03 04 00 33 04 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 33 E2 00 00 35 04 06 00 BD E7 05 73 [23:45:55]Write to MH i2c: E2 02 01 40 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 02 00 00 F4 03 04 00 33 04 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 33 E2 00 00 35 04 06 00 BD E7 05 73 00 00 11 [23:45:55]Write i2c OK [23:45:55]MH_I2C_Read... [23:45:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:55]Read from MH i2c: E2 [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: E2 03 00 [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: E2 03 00 40 11 00 90 00 C5 [23:45:55]RAPDU: 90 00 [23:45:55]wFMCommunicate OK [23:45:55]wFMCommunicate request_size=7 [23:45:55]MH_SAM_APDU [23:45:55]CAPDU: 80 0D 02 02 02 C2 EC [23:45:55]Write to MH i2c: E2 0A 00 41 11 80 0D 02 02 02 00 C2 EC 00 00 7E [23:45:55]Write i2c OK [23:45:55]MH_I2C_Read... [23:45:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:55]Read from MH i2c: E2 [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: E2 03 00 [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: E2 03 00 41 11 00 90 00 C6 [23:45:55]RAPDU: 90 00 [23:45:55]wFMCommunicate OK [23:45:55]wFMCommunicate request_size=4 [23:45:55]MH_SAM_APDU [23:45:55]CAPDU: 80 0D 03 02 [23:45:55]Write to MH i2c: E2 08 00 42 11 80 0D 03 02 00 00 00 00 CE [23:45:55]Write i2c OK [23:45:55]MH_I2C_Read... [23:45:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:45:55]Read from MH i2c: E2 [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: E2 0B 00 [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: E2 0B 00 42 11 00 AC 68 7D 87 DA 7A EB B5 90 00 DB [23:45:55]RAPDU: AC 68 7D 87 DA 7A EB B5 90 00 [23:45:55]wFMCommunicate OK [23:45:55]SAM_PROTO_SignData done [23:45:55]FM_MakeSignedData done [23:45:55]CreateOFDProtocolMessage [23:45:55]wFMCommunicate request_size=4 [23:45:55]MH_SAM_APDU [23:45:55]CAPDU: 80 11 00 00 [23:45:55]Write to MH i2c: E2 08 00 43 11 80 11 00 00 00 00 00 00 CE [23:45:55]Write i2c OK [23:45:55]MH_I2C_Read... [23:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:55]Read from MH i2c: E2 [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: E2 17 00 [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: E2 17 00 43 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 21 [23:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:45:55]wFMCommunicate OK [23:45:55]CreateOFDProtocolMessage done [23:45:55]OFDSenderStorePacket 57907 [23:45:55]StoreOFDPacket docnum=57907 [23:45:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 E8 AE 04 01 4D AA 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 D8 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 02 00 00 F4 03 04 00 33 04 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 33 E2 00 00 35 04 06 00 BD E7 05 73 C2 EC AC 68 7D 87 DA 7A EB B5 [23:45:55]CheckFolder [23:45:55]dirname=/storage/ofd_packets [23:45:55]CheckFolder done [23:45:55]ProducePacketName [23:45:55]name=ofd_packets/00057907 [23:45:55]NVStorageSaveData ofd_packets/00057907 [23:45:55]File name is /storage/ofd_packets/00057907 [23:45:55]Write 298 bytes [23:45:55]NVStorageSaveData done [23:45:55]OFDSenderStorePacket done [23:45:55]KKMCreateOFDPacket done [23:45:55]NVStorageSaveData kkm_last_timestamp [23:45:55]File name is /storage/kkm_last_timestamp [23:45:55]Write 4 bytes [23:45:55]NVStorageSaveData done [23:45:55]ExternCall_PrintAddStr [23:45:55]wPrintStart [23:45:55]Write to MH i2c: 01 00 00 44 11 55 [23:45:55]Write i2c OK [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: 01 [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: 01 07 00 [23:45:55]MH_I2C_Read... [23:45:55]Read from MH i2c: 01 07 00 44 11 00 00 00 00 00 FF 0F 6A [23:45:55]RasterBufferAndPrint [23:45:55]line Счет N : (1)543251 [23:45:55]line ИНН: 02508201610067 [23:45:55]line Контрольно-Кассовый Чек [23:45:55]line ПРОДАЖА [23:45:55]line ТРК (МРК, ГНК) : 21 [23:45:55]line Товар: 2710194210 [23:45:55]line ДТ-К-5 [23:45:55]line 5.080 * 72.90 [23:45:55]line = 370.33 [23:45:55]line НДС 12% НСП 1% [23:45:55]line > о реализуемом товаре [23:45:55]line ОКРУГЛЕНИЕ: -0.33 [23:45:55]line ИТОГО: 370.00 [23:45:55]line Внесено: 370.00 [23:45:55]line СДАЧА: 0.00 [23:45:55]line НСП 1% : 3.28 [23:45:55]line НДС 12% : 39.33 [23:45:55]line Наличными: 370.00 [23:45:55]line Безнал.: 0.00 [23:45:55]line Место: АЗС № 117 "Партнер Нефть" [23:45:55]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:45:55]line СНО: Общий режим [23:45:55]line Чек 734 02.06.2024 23:45 [23:45:55]line Смена: 69 ФФД: 1.0 [23:45:55]line ЗНМ: 0300000048 [23:45:55]line РНМ: 0000000000151680 [23:45:55]line Версия ККМ: v1.0 [23:45:55]line ФМ: 0000000000959414 [23:45:55]line ФД: 57907 [23:45:55]line ФПД: 208799926567660 [23:45:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T234555&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57907&fm=208799926567660&tin=02508201610067®Number=0000000000151680&sum=37000 [23:45:56]OFD Sender: Processing packet 57907 [packets to send 50, broken 49] [23:45:56]ProducePacketName [23:45:56]name=ofd_packets/00057907 [23:45:56]OFD Sender: To server: pG, [23:45:56]CommunicateWithHost lk.salyk.kg:30040 [23:45:56]ConnectInit lk.salyk.kg [23:45:56]written 0, free lines is 4095 [23:45:56]Connected sock=8 [23:45:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 E8 AE 04 01 4D AA 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 D8 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 02 00 00 F4 03 04 00 33 04 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 33 E2 00 00 35 04 06 00 BD E7 05 73 C2 EC AC 68 7D 87 DA 7A EB B5 [23:45:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 EC B8 47 00 56 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 33 E2 00 00 F4 03 04 00 02 AF 5C 66 B6 04 01 00 00 0C 70 DF 8F 67 53 B6 44 [23:45:56]CommunicateWithHost err = 0 [23:45:56]CheckOFDResponse [23:45:56]1017 (14) - 77093643461234 [23:45:56]1041 (16) - 0000000000959414 [23:45:56]1040 (4) - 57907 [23:45:56]1012 (4) - 02.06.2024 17:42 [23:45:56]1206 (1) - 0 [23:45:56]OFD Sender: Remove packet 57907 [23:45:56]ProducePacketName [23:45:56]name=ofd_packets/00057907 [23:45:56]NVStorageDeleteData [23:45:56]Write to MH i2c: 01 00 00 6F 11 80 [23:45:56]Write i2c OK [23:45:56]MH_I2C_Read... [23:45:56]Read from MH i2c: 01 [23:45:56]MH_I2C_Read... [23:45:56]Read from MH i2c: 01 07 00 [23:45:56]MH_I2C_Read... [23:45:56]Read from MH i2c: 01 07 00 6F 11 00 00 00 00 00 B2 0C 45 [23:45:56]RasterBufferAndPrint [23:45:56]line [23:45:56]line [23:45:56]line [23:45:56]line [23:45:56]line [23:45:56]written 0, free lines is 3256 [23:45:56]MH_Cut [23:45:56]Write to MH i2c: D1 01 00 76 11 01 59 [23:45:56]Write i2c OK [23:45:56]MH_I2C_Read... [23:45:56]Read from MH i2c: D1 [23:45:56]MH_I2C_Read... [23:45:56]Read from MH i2c: D1 01 00 [23:45:56]MH_I2C_Read... [23:45:56]Read from MH i2c: D1 01 00 76 11 00 58 [23:45:56]Write to MH i2c: 01 00 00 77 11 88 [23:45:56]Write i2c OK [23:45:56]MH_I2C_Read... [23:45:56]OFD Sender: No OFD packet to send [23:45:57]*** Cut start [23:45:57]*** Partial cut [23:45:57]*** CUTSNS_PIN = 1 [23:45:57]*** CUTSNS_PIN = 0 [23:45:57]*** Brake cut motor [23:45:58]Read from MH i2c: 01 [23:45:58]MH_I2C_Read... [23:45:58]*** Stop cut motor [23:45:58]*** Cut end [23:45:58]Read from MH i2c: 01 07 00 [23:45:58]MH_I2C_Read... [23:45:58]Read from MH i2c: 01 07 00 77 11 00 00 00 00 00 FF 0F 9D [23:45:58]process_action close_receipt done [23:45:58]requested_data is exist [23:45:58]produce_requested_data [23:45:58]requested_item fm.sn is exist - process it [23:45:58]wFMCommunicate request_size=4 [23:45:58]MH_SAM_APDU [23:45:58]CAPDU: 80 11 00 00 [23:45:58]Write to MH i2c: E2 08 00 78 11 80 11 00 00 00 00 00 00 03 [23:45:58]Write i2c OK [23:45:58]MH_I2C_Read... [23:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:58]Read from MH i2c: E2 [23:45:58]MH_I2C_Read... [23:45:58]Read from MH i2c: E2 17 00 [23:45:58]MH_I2C_Read... [23:45:58]Read from MH i2c: E2 17 00 78 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 56 [23:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:45:58]wFMCommunicate OK [23:45:58]requested_item fd.num is exist - process it [23:45:58]SAM_PROTO_GetFieldsCounters [23:45:58]wFMCommunicate request_size=4 [23:45:58]MH_SAM_APDU [23:45:58]CAPDU: 80 13 00 00 [23:45:58]Write to MH i2c: E2 08 00 79 11 80 13 00 00 00 00 00 00 06 [23:45:58]Write i2c OK [23:45:58]MH_I2C_Read... [23:45:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:58]Read from MH i2c: E2 [23:45:58]MH_I2C_Read... [23:45:58]Read from MH i2c: E2 62 00 [23:45:58]MH_I2C_Read... [23:45:58]Read from MH i2c: E2 62 00 79 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 33 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 DE 02 00 00 5E 04 04 00 DE 02 00 00 57 04 04 00 DF 02 00 00 19 04 04 00 00 00 00 00 90 00 1D [23:45:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 33 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 DE 02 00 00 5E 04 04 00 DE 02 00 00 57 04 04 00 DF 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:45:58]wFMCommunicate OK [23:45:58]SAM_PROTO_GetFieldsCounters done [23:45:58]requested_item shift.num is exist - process it [23:45:58]requested_item shift.opened is exist - process it [23:45:58]req_shift_opened [23:45:58]FM_GetShiftState [23:45:58]SAM_PROTO_GetShiftState [23:45:58]wFMCommunicate request_size=4 [23:45:58]MH_SAM_APDU [23:45:58]CAPDU: 80 13 01 00 [23:45:58]Write to MH i2c: E2 08 00 7A 11 80 13 01 00 00 00 00 00 08 [23:45:58]Write i2c OK [23:45:58]MH_I2C_Read... [23:45:58]Read from MH i2c: E2 [23:45:58]MH_I2C_Read... [23:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:58]Read from MH i2c: E2 0E 00 [23:45:58]MH_I2C_Read... [23:45:58]Read from MH i2c: E2 0E 00 7A 11 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 DB [23:45:58]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:45:58]wFMCommunicate OK [23:45:58]SAM_PROTO_GetShiftState done [23:45:58]FM_GetShiftState done [23:45:58]req_shift_opened done [23:45:58]requested_item shift.open_date is exist - process it [23:45:58]req_shift_open_date [23:45:58]req_shift_open_date done [23:45:58]produce_requested_data done [23:45:58]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57907,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:45:58]process_action_free close_receipt [23:45:58]json_value_free [23:45:58]json_value_free done [23:45:58]process_json_proto returns [23:45:58]Send response to host [23:45:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57907,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:45:58]free response buf [23:45:58]execute_script done [23:45:58]execute_script returns [23:45:58]free content buf [23:45:58]Sock 9.Close socket [23:45:58]Sock 9.Thread stoped [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46: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:05]accept exits with 10 [23:49:05]New connection [23:49:05]New thread 3066592612 created [23:49:05]Thread 3066735972 joined [23:49:05]Waiting for new connection... [23:49:05] Sock 10.Parse request [23:49:05]Sock 10.Check first char [23:49:05]Sock 10.First char is OK [23:49:05]request: POST /json_proto HTTP/1.0 [23:49:05]Method: POST [23:49:05]URL: /json_proto [23:49:05]Method is POST - this is cgi request [23:49:05]url: /json_proto [23:49:05]query_string will be loaded in cgi processing [23:49:05]execute_cgi json_proto POST (null) [23:49:05]execute_cgi path=json_proto method=POST [23:49:05]POST find Content-Length [23:49:05]Host: 172.17.60.68:8080 [23:49:05]Content-Length: 966 [23:49:05]Content-Type: application/json [23:49:05] [23:49:05]POST finish read [23:49:05]Found Content-Length = 966 [23:49:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000AS-92\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 21.09 \u0441\u043E\u043C", "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:05]execute_script... [23:49:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000AS-92\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 21.09 \u0441\u043E\u043C", "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:05]POST & json_proto [23:49:05]process_json_proto [23:49:05]json parsed OK: [23:49:05]protocol is kg_v1.0 [23:49:05]action value=close_receipt [23:49:05]process_action close_receipt [23:49:05]cmd_close_receipt [23:49:05]MH_GetDate [23:49:05]Write to MH i2c: F0 00 00 7B 11 7B [23:49:05]Write i2c OK [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: F0 [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: F0 09 00 [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: F0 09 00 7B 11 00 F2 04 5D 66 8D A7 02 66 D9 [23:49:05]GetLastDocTimeStamp 1717371955 [23:49:05]current date 1717372146 [23:49:05]FM_GetShiftState [23:49:05]SAM_PROTO_GetShiftState [23:49:05]wFMCommunicate request_size=4 [23:49:05]MH_SAM_APDU [23:49:05]CAPDU: 80 13 01 00 [23:49:05]Write to MH i2c: E2 08 00 7C 11 80 13 01 00 00 00 00 00 0A [23:49:05]Write i2c OK [23:49:05]MH_I2C_Read... [23:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:05]Read from MH i2c: E2 [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: E2 0E 00 [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: E2 0E 00 7C 11 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 DD [23:49:05]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:49:05]wFMCommunicate OK [23:49:05]SAM_PROTO_GetShiftState done [23:49:05]FM_GetShiftState done [23:49:05]opened in 1717288520 [23:49:05]opened+sec_in_day 1717374920 [23:49:05]quantity*price = 140037 [23:49:05]sum+1 = 140039 [23:49:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 735 02.06.2024 23:49 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Дисконтная программа S-92 номер 117 сэкономлено 21.09 сом ФМ: 0000000000959414 ФД: 57908 ФПД: 137244652686490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T234906&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57908&fm=137244652686490&tin=02508201610067®Number=0000000000151680&sum=140000 [23:49:06]StoreToDocumentArchive [23:49:06]shift 69 fd 57908 [23:49:06]save to /storage/0069/doc_00057908 [23:49:06]save last doc name /storage/0069/doc_00057908 to /storage/kkm_last_doc_name [23:49:06]save OK [23:49:06]Clear old archive folders... [23:49:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:49:06]tlvbuf is 01A33290 [23:49:06]SAM_PROTO_ClearQueue [23:49:06]wFMCommunicate request_size=4 [23:49:06]MH_SAM_APDU [23:49:06]CAPDU: 80 09 00 00 [23:49:06]Write to MH i2c: E2 08 00 89 11 80 09 00 00 00 00 00 00 0C [23:49:06]Write i2c OK [23:49:06]MH_I2C_Read... [23:49:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:06]Read from MH i2c: E2 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 03 00 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 03 00 89 11 00 90 00 0E [23:49:06]RAPDU: 90 00 [23:49:06]wFMCommunicate OK [23:49:06]SAM_PROTO_ClearQueue done [23:49:06]KKMCreateOFDPacket [23:49:06]OFDProtocolAddRootSTLVToBuf [23:49:06]FM_MakeSignedData [23:49:06]FM_MakeSignedData [23:49:06]SAM_PROTO_SignData [23:49:06]wFMCommunicate request_size=4 [23:49:06]MH_SAM_APDU [23:49:06]CAPDU: 80 0D 01 02 [23:49:06]Write to MH i2c: E2 08 00 8A 11 80 0D 01 02 00 00 00 00 14 [23:49:06]Write i2c OK [23:49:06]MH_I2C_Read... [23:49:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:06]Read from MH i2c: E2 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 03 00 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 03 00 8A 11 00 90 00 0F [23:49:06]RAPDU: 90 00 [23:49:06]wFMCommunicate OK [23:49:06]wFMCommunicate request_size=255 [23:49:06]MH_SAM_APDU [23:49:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 02 00 00 F4 03 04 00 F2 04 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 34 E2 00 00 35 04 06 00 [23:49:06]Write to MH i2c: E2 02 01 8B 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 02 00 00 F4 03 04 00 F2 04 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 34 E2 00 00 35 04 06 00 00 00 C8 [23:49:06]Write i2c OK [23:49:06]MH_I2C_Read... [23:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:06]Read from MH i2c: E2 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 03 00 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 03 00 8B 11 00 90 00 10 [23:49:06]RAPDU: 90 00 [23:49:06]wFMCommunicate OK [23:49:06]wFMCommunicate request_size=11 [23:49:06]MH_SAM_APDU [23:49:06]CAPDU: 80 0D 02 02 06 7C D2 C2 C5 4C 9A [23:49:06]Write to MH i2c: E2 0E 00 8C 11 80 0D 02 02 06 00 7C D2 C2 C5 4C 9A 00 00 DE [23:49:06]Write i2c OK [23:49:06]MH_I2C_Read... [23:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:06]Read from MH i2c: E2 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 03 00 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 03 00 8C 11 00 90 00 11 [23:49:06]RAPDU: 90 00 [23:49:06]wFMCommunicate OK [23:49:06]wFMCommunicate request_size=4 [23:49:06]MH_SAM_APDU [23:49:06]CAPDU: 80 0D 03 02 [23:49:06]Write to MH i2c: E2 08 00 8D 11 80 0D 03 02 00 00 00 00 19 [23:49:06]Write i2c OK [23:49:06]MH_I2C_Read... [23:49:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:06]Read from MH i2c: E2 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 0B 00 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 0B 00 8D 11 00 26 91 0F 72 48 CC F6 C5 90 00 21 [23:49:06]RAPDU: 26 91 0F 72 48 CC F6 C5 90 00 [23:49:06]wFMCommunicate OK [23:49:06]SAM_PROTO_SignData done [23:49:06]FM_MakeSignedData done [23:49:06]CreateOFDProtocolMessage [23:49:06]wFMCommunicate request_size=4 [23:49:06]MH_SAM_APDU [23:49:06]CAPDU: 80 11 00 00 [23:49:06]Write to MH i2c: E2 08 00 8E 11 80 11 00 00 00 00 00 00 19 [23:49:06]Write i2c OK [23:49:06]MH_I2C_Read... [23:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:06]Read from MH i2c: E2 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 17 00 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 17 00 8E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 6C [23:49:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:49:06]wFMCommunicate OK [23:49:06]CreateOFDProtocolMessage done [23:49:06]OFDSenderStorePacket 57908 [23:49:06]StoreOFDPacket docnum=57908 [23:49:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 30 1B 08 01 05 D6 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 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 02 00 00 F4 03 04 00 F2 04 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 34 E2 00 00 35 04 06 00 7C D2 C2 C5 4C 9A 26 91 0F 72 48 CC F6 C5 [23:49:06]CheckFolder [23:49:06]dirname=/storage/ofd_packets [23:49:06]CheckFolder done [23:49:06]ProducePacketName [23:49:06]name=ofd_packets/00057908 [23:49:06]NVStorageSaveData ofd_packets/00057908 [23:49:06]File name is /storage/ofd_packets/00057908 [23:49:06]Write 302 bytes [23:49:06]NVStorageSaveData done [23:49:06]OFDSenderStorePacket done [23:49:06]KKMCreateOFDPacket done [23:49:06]NVStorageSaveData kkm_last_timestamp [23:49:06]File name is /storage/kkm_last_timestamp [23:49:06]Write 4 bytes [23:49:06]NVStorageSaveData done [23:49:06]ExternCall_PrintAddStr [23:49:06]wPrintStart [23:49:06]Write to MH i2c: 01 00 00 8F 11 A0 [23:49:06]Write i2c OK [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: 01 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: 01 07 00 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: 01 07 00 8F 11 00 00 00 00 00 FF 0F B5 [23:49:06]RasterBufferAndPrint [23:49:06]line Счет N : (1)543252 [23:49:06]line ИНН: 02508201610067 [23:49:06]line Контрольно-Кассовый Чек [23:49:06]line ПРОДАЖА [23:49:06]line ТРК (МРК, ГНК) : 24 [23:49:06]line Товар: 2710124130 [23:49:06]line SUPER 92-К-5 [23:49:06]line 21.090 * 66.40 [23:49:06]line = 1400.38 [23:49:06]line НДС 12% НСП 1% [23:49:06]line > о реализуемом товаре [23:49:06]line ОКРУГЛЕНИЕ: -0.38 [23:49:06]line ИТОГО: 1400.00 [23:49:06]line Внесено: 1400.00 [23:49:06]line СДАЧА: 0.00 [23:49:06]line НСП 1% : 12.39 [23:49:06]line НДС 12% : 148.71 [23:49:06]line Наличными: 1400.00 [23:49:06]line Безнал.: 0.00 [23:49:06]line Место: АЗС № 117 "Партнер Нефть" [23:49:06]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:49:06]line СНО: Общий режим [23:49:06]line Чек 735 02.06.2024 23:49 [23:49:06]line Смена: 69 ФФД: 1.0 [23:49:06]line ЗНМ: 0300000048 [23:49:06]line РНМ: 0000000000151680 [23:49:06]line Версия ККМ: v1.0 [23:49:06]line [23:49:06]line Дисконтная программа [23:49:06]line S-92 [23:49:06]line номер 117 [23:49:06]line сэкономлено 21.09 сом [23:49:06]line ФМ: 0000000000959414 [23:49:06]line ФД: 57908 [23:49:06]line ФПД: 137244652686490 [23:49:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T234906&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57908&fm=137244652686490&tin=02508201610067®Number=0000000000151680&sum=140000 [23:49:07]OFD Sender: Processing packet 57908 [packets to send 50, broken 49] [23:49:07]ProducePacketName [23:49:07]name=ofd_packets/00057908 [23:49:07]OFD Sender: To server: pG, [23:49:07]CommunicateWithHost lk.salyk.kg:30040 [23:49:07]ConnectInit lk.salyk.kg [23:49:07]written 0, free lines is 4095 [23:49:07]Connected sock=9 [23:49:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 30 1B 08 01 05 D6 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 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 02 00 00 F4 03 04 00 F2 04 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 34 E2 00 00 35 04 06 00 7C D2 C2 C5 4C 9A 26 91 0F 72 48 CC F6 C5 [23:49:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 D0 F3 47 00 8A 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 34 E2 00 00 F4 03 04 00 C1 AF 5C 66 B6 04 01 00 00 D6 66 1B A1 17 AB 49 A2 [23:49:07]CommunicateWithHost err = 0 [23:49:07]CheckOFDResponse [23:49:07]1017 (14) - 77093643461234 [23:49:07]1041 (16) - 0000000000959414 [23:49:07]1040 (4) - 57908 [23:49:07]1012 (4) - 02.06.2024 17:45 [23:49:07]1206 (1) - 0 [23:49:07]OFD Sender: Remove packet 57908 [23:49:07]ProducePacketName [23:49:07]name=ofd_packets/00057908 [23:49:07]NVStorageDeleteData [23:49:07]Write to MH i2c: 01 00 00 BF 11 D0 [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: 01 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: 01 07 00 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: 01 07 00 BF 11 00 00 00 00 00 53 0C 36 [23:49:07]RasterBufferAndPrint [23:49:07]line [23:49:07]line [23:49:07]line [23:49:07]line [23:49:07]line [23:49:07]written 0, free lines is 3161 [23:49:07]MH_Cut [23:49:07]Write to MH i2c: D1 01 00 C6 11 01 A9 [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: D1 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: D1 01 00 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: D1 01 00 C6 11 00 A8 [23:49:07]Write to MH i2c: 01 00 00 C7 11 D8 [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:08]OFD Sender: No OFD packet to send [23:49:08]*** Cut start [23:49:08]*** Partial cut [23:49:08]*** CUTSNS_PIN = 1 [23:49:08]*** CUTSNS_PIN = 0 [23:49:09]*** Brake cut motor [23:49:09]Read from MH i2c: 01 [23:49:09]MH_I2C_Read... [23:49:09]*** Stop cut motor [23:49:09]*** Cut end [23:49:09]Read from MH i2c: 01 07 00 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: 01 07 00 C7 11 00 00 00 00 00 FF 0F ED [23:49:09]process_action close_receipt done [23:49:09]requested_data is exist [23:49:09]produce_requested_data [23:49:09]requested_item fm.sn is exist - process it [23:49:09]wFMCommunicate request_size=4 [23:49:09]MH_SAM_APDU [23:49:09]CAPDU: 80 11 00 00 [23:49:09]Write to MH i2c: E2 08 00 C8 11 80 11 00 00 00 00 00 00 53 [23:49:09]Write i2c OK [23:49:09]MH_I2C_Read... [23:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:09]Read from MH i2c: E2 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 17 00 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 17 00 C8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 A6 [23:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:49:09]wFMCommunicate OK [23:49:09]requested_item fd.num is exist - process it [23:49:09]SAM_PROTO_GetFieldsCounters [23:49:09]wFMCommunicate request_size=4 [23:49:09]MH_SAM_APDU [23:49:09]CAPDU: 80 13 00 00 [23:49:09]Write to MH i2c: E2 08 00 C9 11 80 13 00 00 00 00 00 00 56 [23:49:09]Write i2c OK [23:49:09]MH_I2C_Read... [23:49:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:09]Read from MH i2c: E2 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 62 00 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 62 00 C9 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 34 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 DF 02 00 00 5E 04 04 00 DF 02 00 00 57 04 04 00 E0 02 00 00 19 04 04 00 00 00 00 00 90 00 71 [23:49:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 34 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 DF 02 00 00 5E 04 04 00 DF 02 00 00 57 04 04 00 E0 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:09]wFMCommunicate OK [23:49:09]SAM_PROTO_GetFieldsCounters done [23:49:09]requested_item shift.num is exist - process it [23:49:09]requested_item shift.opened is exist - process it [23:49:09]req_shift_opened [23:49:09]FM_GetShiftState [23:49:09]SAM_PROTO_GetShiftState [23:49:09]wFMCommunicate request_size=4 [23:49:09]MH_SAM_APDU [23:49:09]CAPDU: 80 13 01 00 [23:49:09]Write to MH i2c: E2 08 00 CA 11 80 13 01 00 00 00 00 00 58 [23:49:09]Write i2c OK [23:49:09]MH_I2C_Read... [23:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:09]Read from MH i2c: E2 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 0E 00 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 0E 00 CA 11 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 2B [23:49:09]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:49:09]wFMCommunicate OK [23:49:09]SAM_PROTO_GetShiftState done [23:49:09]FM_GetShiftState done [23:49:09]req_shift_opened done [23:49:09]requested_item shift.open_date is exist - process it [23:49:09]req_shift_open_date [23:49:09]req_shift_open_date done [23:49:09]produce_requested_data done [23:49:09]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57908,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:49:09]process_action_free close_receipt [23:49:09]json_value_free [23:49:09]json_value_free done [23:49:09]process_json_proto returns [23:49:09]Send response to host [23:49:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57908,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:49:09]free response buf [23:49:09]execute_script done [23:49:09]execute_script returns [23:49:09]free content buf [23:49:09]Sock 10.Close socket [23:49:09]Sock 10.Thread stoped [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:43]accept exits with 8 [23:52:43]New connection [23:52:43]New thread 3066735972 created [23:52:43]Thread 3066592612 joined [23:52:43]Waiting for new connection... [23:52:43] Sock 8.Parse request [23:52:43]Sock 8.Check first char [23:52:43]Sock 8.First char is OK [23:52:43]request: POST /json_proto HTTP/1.0 [23:52:43]Method: POST [23:52:43]URL: /json_proto [23:52:43]Method is POST - this is cgi request [23:52:43]url: /json_proto [23:52:43]query_string will be loaded in cgi processing [23:52:43]execute_cgi json_proto POST (null) [23:52:43]execute_cgi path=json_proto method=POST [23:52:43]POST find Content-Length [23:52:43]Host: 172.17.60.68:8080 [23:52:43]Content-Length: 677 [23:52:43]Content-Type: application/json [23:52:43] [23:52:43]POST finish read [23:52:43]Found Content-Length = 677 [23:52:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543253", "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" : 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" ] } } [23:52:43]execute_script... [23:52:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543253", "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" : 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" ] } } [23:52:43]POST & json_proto [23:52:43]process_json_proto [23:52:43]json parsed OK: [23:52:43]protocol is kg_v1.0 [23:52:43]action value=close_receipt [23:52:43]process_action close_receipt [23:52:43]cmd_close_receipt [23:52:43]MH_GetDate [23:52:43]Write to MH i2c: F0 00 00 CB 11 CB [23:52:43]Write i2c OK [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: F0 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: F0 09 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: F0 09 00 CB 11 00 CC 05 5D 66 8D A7 02 66 04 [23:52:43]GetLastDocTimeStamp 1717372146 [23:52:43]current date 1717372364 [23:52:43]FM_GetShiftState [23:52:43]SAM_PROTO_GetShiftState [23:52:43]wFMCommunicate request_size=4 [23:52:43]MH_SAM_APDU [23:52:43]CAPDU: 80 13 01 00 [23:52:43]Write to MH i2c: E2 08 00 CC 11 80 13 01 00 00 00 00 00 5A [23:52:43]Write i2c OK [23:52:43]MH_I2C_Read... [23:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:43]Read from MH i2c: E2 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 0E 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 0E 00 CC 11 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 2D [23:52:43]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:52:43]wFMCommunicate OK [23:52:43]SAM_PROTO_GetShiftState done [23:52:43]FM_GetShiftState done [23:52:43]opened in 1717288520 [23:52:43]opened+sec_in_day 1717374920 [23:52:43]quantity*price = 25032 [23:52:43]sum+1 = 25034 [23:52:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 736 02.06.2024 23:52 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57909 ФПД: 239192577510220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235244&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57909&fm=239192577510220&tin=02508201610067®Number=0000000000151680&sum=25000 [23:52:44]StoreToDocumentArchive [23:52:44]shift 69 fd 57909 [23:52:44]save to /storage/0069/doc_00057909 [23:52:44]save last doc name /storage/0069/doc_00057909 to /storage/kkm_last_doc_name [23:52:44]save OK [23:52:44]Clear old archive folders... [23:52:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:52:44]tlvbuf is 01879DB0 [23:52:44]SAM_PROTO_ClearQueue [23:52:44]wFMCommunicate request_size=4 [23:52:44]MH_SAM_APDU [23:52:44]CAPDU: 80 09 00 00 [23:52:44]Write to MH i2c: E2 08 00 D9 11 80 09 00 00 00 00 00 00 5C [23:52:44]Write i2c OK [23:52:44]MH_I2C_Read... [23:52:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:44]Read from MH i2c: E2 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 03 00 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 03 00 D9 11 00 90 00 5E [23:52:44]RAPDU: 90 00 [23:52:44]wFMCommunicate OK [23:52:44]SAM_PROTO_ClearQueue done [23:52:44]KKMCreateOFDPacket [23:52:44]OFDProtocolAddRootSTLVToBuf [23:52:44]FM_MakeSignedData [23:52:44]FM_MakeSignedData [23:52:44]SAM_PROTO_SignData [23:52:44]wFMCommunicate request_size=4 [23:52:44]MH_SAM_APDU [23:52:44]CAPDU: 80 0D 01 02 [23:52:44]Write to MH i2c: E2 08 00 DA 11 80 0D 01 02 00 00 00 00 64 [23:52:44]Write i2c OK [23:52:44]MH_I2C_Read... [23:52:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:44]Read from MH i2c: E2 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 03 00 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 03 00 DA 11 00 90 00 5F [23:52:44]RAPDU: 90 00 [23:52:44]wFMCommunicate OK [23:52:44]wFMCommunicate request_size=255 [23:52:44]MH_SAM_APDU [23:52:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E0 02 00 00 F4 03 04 00 CC 05 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 35 E2 00 00 35 04 06 00 D9 [23:52:44]Write to MH i2c: E2 02 01 DB 11 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 E0 02 00 00 F4 03 04 00 CC 05 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 35 E2 00 00 35 04 06 00 D9 00 00 6B [23:52:44]Write i2c OK [23:52:44]MH_I2C_Read... [23:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:45]Read from MH i2c: E2 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 03 00 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 03 00 DB 11 00 90 00 60 [23:52:45]RAPDU: 90 00 [23:52:45]wFMCommunicate OK [23:52:45]wFMCommunicate request_size=10 [23:52:45]MH_SAM_APDU [23:52:45]CAPDU: 80 0D 02 02 05 8B 5C 9D 8B 4C [23:52:45]Write to MH i2c: E2 0D 00 DC 11 80 0D 02 02 05 00 8B 5C 9D 8B 4C 00 00 CC [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:45]Read from MH i2c: E2 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 03 00 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 03 00 DC 11 00 90 00 61 [23:52:45]RAPDU: 90 00 [23:52:45]wFMCommunicate OK [23:52:45]wFMCommunicate request_size=4 [23:52:45]MH_SAM_APDU [23:52:45]CAPDU: 80 0D 03 02 [23:52:45]Write to MH i2c: E2 08 00 DD 11 80 0D 03 02 00 00 00 00 69 [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:45]Read from MH i2c: E2 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 0B 00 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 0B 00 DD 11 00 25 4E 47 CD D7 E4 93 82 90 00 C1 [23:52:45]RAPDU: 25 4E 47 CD D7 E4 93 82 90 00 [23:52:45]wFMCommunicate OK [23:52:45]SAM_PROTO_SignData done [23:52:45]FM_MakeSignedData done [23:52:45]CreateOFDProtocolMessage [23:52:45]wFMCommunicate request_size=4 [23:52:45]MH_SAM_APDU [23:52:45]CAPDU: 80 11 00 00 [23:52:45]Write to MH i2c: E2 08 00 DE 11 80 11 00 00 00 00 00 00 69 [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:45]Read from MH i2c: E2 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 17 00 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 17 00 DE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 BC [23:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:52:45]wFMCommunicate OK [23:52:45]CreateOFDProtocolMessage done [23:52:45]OFDSenderStorePacket 57909 [23:52:45]StoreOFDPacket docnum=57909 [23:52:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 02 4E 07 01 AF 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E0 02 00 00 F4 03 04 00 CC 05 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 35 E2 00 00 35 04 06 00 D9 8B 5C 9D 8B 4C 25 4E 47 CD D7 E4 93 82 [23:52:45]CheckFolder [23:52:45]dirname=/storage/ofd_packets [23:52:45]CheckFolder done [23:52:45]ProducePacketName [23:52:45]name=ofd_packets/00057909 [23:52:45]NVStorageSaveData ofd_packets/00057909 [23:52:45]File name is /storage/ofd_packets/00057909 [23:52:45]Write 301 bytes [23:52:45]NVStorageSaveData done [23:52:45]OFDSenderStorePacket done [23:52:45]KKMCreateOFDPacket done [23:52:45]NVStorageSaveData kkm_last_timestamp [23:52:45]File name is /storage/kkm_last_timestamp [23:52:45]Write 4 bytes [23:52:45]NVStorageSaveData done [23:52:45]ExternCall_PrintAddStr [23:52:45]wPrintStart [23:52:45]Write to MH i2c: 01 00 00 DF 11 F0 [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: 01 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: 01 07 00 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: 01 07 00 DF 11 00 00 00 00 00 FF 0F 05 [23:52:45]RasterBufferAndPrint [23:52:45]line Счет N : (1)543253 [23:52:45]line ИНН: 02508201610067 [23:52:45]line Контрольно-Кассовый Чек [23:52:45]line ПРОДАЖА [23:52:45]line ТРК (МРК, ГНК) : 12 [23:52:45]line Товар: 2710124130 [23:52:45]line Аи-92-К-5 [23:52:45]line 3.770 * 66.40 [23:52:45]line = 250.33 [23:52:45]line НДС 12% НСП 1% [23:52:45]line > о реализуемом товаре [23:52:45]line ОКРУГЛЕНИЕ: -0.33 [23:52:45]line ИТОГО: 250.00 [23:52:45]line Внесено: 250.00 [23:52:45]line СДАЧА: 0.00 [23:52:45]line НСП 1% : 2.21 [23:52:45]line НДС 12% : 26.58 [23:52:45]line Наличными: 250.00 [23:52:45]line Безнал.: 0.00 [23:52:45]line Место: АЗС № 117 "Партнер Нефть" [23:52:45]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:52:45]line СНО: Общий режим [23:52:45]line Чек 736 02.06.2024 23:52 [23:52:45]line Смена: 69 ФФД: 1.0 [23:52:45]line ЗНМ: 0300000048 [23:52:45]line РНМ: 0000000000151680 [23:52:45]line Версия ККМ: v1.0 [23:52:45]line ФМ: 0000000000959414 [23:52:45]line ФД: 57909 [23:52:45]line ФПД: 239192577510220 [23:52:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235244&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57909&fm=239192577510220&tin=02508201610067®Number=0000000000151680&sum=25000 [23:52:45]OFD Sender: Processing packet 57909 [packets to send 50, broken 49] [23:52:45]ProducePacketName [23:52:45]name=ofd_packets/00057909 [23:52:45]OFD Sender: To server: pG, [23:52:45]CommunicateWithHost lk.salyk.kg:30040 [23:52:45]ConnectInit lk.salyk.kg [23:52:45]written 0, free lines is 4095 [23:52:45]Connected sock=10 [23:52:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 02 4E 07 01 AF 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E0 02 00 00 F4 03 04 00 CC 05 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 35 E2 00 00 35 04 06 00 D9 8B 5C 9D 8B 4C 25 4E 47 CD D7 E4 93 82 [23:52:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 97 E1 47 00 70 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 35 E2 00 00 F4 03 04 00 9C B0 5C 66 B6 04 01 00 00 F7 99 9E 1B 9B 45 FB 43 [23:52:45]CommunicateWithHost err = 0 [23:52:45]CheckOFDResponse [23:52:45]1017 (14) - 77093643461234 [23:52:45]1041 (16) - 0000000000959414 [23:52:45]1040 (4) - 57909 [23:52:45]1012 (4) - 02.06.2024 17:49 [23:52:45]1206 (1) - 0 [23:52:45]OFD Sender: Remove packet 57909 [23:52:45]ProducePacketName [23:52:45]name=ofd_packets/00057909 [23:52:45]NVStorageDeleteData [23:52:46]Write to MH i2c: 01 00 00 0A 12 1C [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: 01 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: 01 07 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: 01 07 00 0A 12 00 00 00 00 00 AC 0C DB [23:52:46]RasterBufferAndPrint [23:52:46]line [23:52:46]line [23:52:46]line [23:52:46]line [23:52:46]line [23:52:46]written 0, free lines is 3249 [23:52:46]MH_Cut [23:52:46]Write to MH i2c: D1 01 00 11 12 01 F5 [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: D1 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: D1 01 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: D1 01 00 11 12 00 F4 [23:52:46]Write to MH i2c: 01 00 00 12 12 24 [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]OFD Sender: No OFD packet to send [23:52:47]*** Cut start [23:52:47]*** Partial cut [23:52:47]*** CUTSNS_PIN = 1 [23:52:47]*** CUTSNS_PIN = 0 [23:52:47]*** Brake cut motor [23:52:47]Read from MH i2c: 01 [23:52:47]MH_I2C_Read... [23:52:47]*** Stop cut motor [23:52:47]*** Cut end [23:52:47]Read from MH i2c: 01 07 00 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: 01 07 00 12 12 00 00 00 00 00 FF 0F 39 [23:52:47]process_action close_receipt done [23:52:47]requested_data is exist [23:52:47]produce_requested_data [23:52:47]requested_item fm.sn is exist - process it [23:52:47]wFMCommunicate request_size=4 [23:52:47]MH_SAM_APDU [23:52:47]CAPDU: 80 11 00 00 [23:52:47]Write to MH i2c: E2 08 00 13 12 80 11 00 00 00 00 00 00 9F [23:52:47]Write i2c OK [23:52:47]MH_I2C_Read... [23:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:47]Read from MH i2c: E2 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 17 00 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 17 00 13 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 F2 [23:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:52:47]wFMCommunicate OK [23:52:47]requested_item fd.num is exist - process it [23:52:47]SAM_PROTO_GetFieldsCounters [23:52:47]wFMCommunicate request_size=4 [23:52:47]MH_SAM_APDU [23:52:47]CAPDU: 80 13 00 00 [23:52:47]Write to MH i2c: E2 08 00 14 12 80 13 00 00 00 00 00 00 A2 [23:52:47]Write i2c OK [23:52:47]MH_I2C_Read... [23:52:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:47]Read from MH i2c: E2 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 62 00 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 62 00 14 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 35 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E0 02 00 00 5E 04 04 00 E0 02 00 00 57 04 04 00 E1 02 00 00 19 04 04 00 00 00 00 00 90 00 C1 [23:52:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 35 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E0 02 00 00 5E 04 04 00 E0 02 00 00 57 04 04 00 E1 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:47]wFMCommunicate OK [23:52:47]SAM_PROTO_GetFieldsCounters done [23:52:47]requested_item shift.num is exist - process it [23:52:47]requested_item shift.opened is exist - process it [23:52:47]req_shift_opened [23:52:47]FM_GetShiftState [23:52:47]SAM_PROTO_GetShiftState [23:52:47]wFMCommunicate request_size=4 [23:52:47]MH_SAM_APDU [23:52:47]CAPDU: 80 13 01 00 [23:52:47]Write to MH i2c: E2 08 00 15 12 80 13 01 00 00 00 00 00 A4 [23:52:47]Write i2c OK [23:52:47]MH_I2C_Read... [23:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:47]Read from MH i2c: E2 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 0E 00 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 0E 00 15 12 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 77 [23:52:47]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:52:47]wFMCommunicate OK [23:52:47]SAM_PROTO_GetShiftState done [23:52:47]FM_GetShiftState done [23:52:47]req_shift_opened done [23:52:47]requested_item shift.open_date is exist - process it [23:52:47]req_shift_open_date [23:52:47]req_shift_open_date done [23:52:47]produce_requested_data done [23:52:47]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57909,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:52:47]process_action_free close_receipt [23:52:47]json_value_free [23:52:47]json_value_free done [23:52:47]process_json_proto returns [23:52:47]Send response to host [23:52:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57909,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:52:47]free response buf [23:52:47]execute_script done [23:52:47]execute_script returns [23:52:47]free content buf [23:52:47]Sock 8.Close socket [23:52:47]Sock 8.Thread stoped [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:02]accept exits with 9 [23:53:02]New connection [23:53:02]New thread 3066592612 created [23:53:02]Thread 3066735972 joined [23:53:02]Waiting for new connection... [23:53:02] Sock 9.Parse request [23:53:02]Sock 9.Check first char [23:53:02]Sock 9.First char is OK [23:53:02]request: POST /json_proto HTTP/1.0 [23:53:02]Method: POST [23:53:02]URL: /json_proto [23:53:02]Method is POST - this is cgi request [23:53:02]url: /json_proto [23:53:02]query_string will be loaded in cgi processing [23:53:02]execute_cgi json_proto POST (null) [23:53:02]execute_cgi path=json_proto method=POST [23:53:02]POST find Content-Length [23:53:02]Host: 172.17.60.68:8080 [23:53:02]Content-Length: 677 [23:53:02]Content-Type: application/json [23:53:02] [23:53:02]POST finish read [23:53:02]Found Content-Length = 677 [23:53:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543254", "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" : 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:53:02]execute_script... [23:53:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543254", "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" : 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:53:02]POST & json_proto [23:53:02]process_json_proto [23:53:02]json parsed OK: [23:53:02]protocol is kg_v1.0 [23:53:02]action value=close_receipt [23:53:02]process_action close_receipt [23:53:02]cmd_close_receipt [23:53:02]MH_GetDate [23:53:02]Write to MH i2c: F0 00 00 16 12 17 [23:53:02]Write i2c OK [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: F0 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: F0 09 00 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: F0 09 00 16 12 00 DF 05 5D 66 8D A7 02 66 63 [23:53:02]GetLastDocTimeStamp 1717372364 [23:53:02]current date 1717372383 [23:53:02]FM_GetShiftState [23:53:02]SAM_PROTO_GetShiftState [23:53:02]wFMCommunicate request_size=4 [23:53:02]MH_SAM_APDU [23:53:02]CAPDU: 80 13 01 00 [23:53:02]Write to MH i2c: E2 08 00 17 12 80 13 01 00 00 00 00 00 A6 [23:53:02]Write i2c OK [23:53:02]MH_I2C_Read... [23:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:02]Read from MH i2c: E2 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 0E 00 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 0E 00 17 12 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 79 [23:53:02]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:53:02]wFMCommunicate OK [23:53:02]SAM_PROTO_GetShiftState done [23:53:02]FM_GetShiftState done [23:53:02]opened in 1717288520 [23:53:02]opened+sec_in_day 1717374920 [23:53:02]quantity*price = 50065 [23:53:02]sum+1 = 50067 [23:53:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 737 02.06.2024 23:53 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57910 ФПД: 48448150592817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235303&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57910&fm=48448150592817&tin=02508201610067®Number=0000000000151680&sum=50000 [23:53:03]StoreToDocumentArchive [23:53:03]shift 69 fd 57910 [23:53:03]save to /storage/0069/doc_00057910 [23:53:03]save last doc name /storage/0069/doc_00057910 to /storage/kkm_last_doc_name [23:53:03]save OK [23:53:03]Clear old archive folders... [23:53:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:53:03]tlvbuf is 0195E370 [23:53:03]SAM_PROTO_ClearQueue [23:53:03]wFMCommunicate request_size=4 [23:53:03]MH_SAM_APDU [23:53:03]CAPDU: 80 09 00 00 [23:53:03]Write to MH i2c: E2 08 00 24 12 80 09 00 00 00 00 00 00 A8 [23:53:03]Write i2c OK [23:53:03]MH_I2C_Read... [23:53:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:53:03]Read from MH i2c: E2 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 03 00 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 03 00 24 12 00 90 00 AA [23:53:03]RAPDU: 90 00 [23:53:03]wFMCommunicate OK [23:53:03]SAM_PROTO_ClearQueue done [23:53:03]KKMCreateOFDPacket [23:53:03]OFDProtocolAddRootSTLVToBuf [23:53:03]FM_MakeSignedData [23:53:03]FM_MakeSignedData [23:53:03]SAM_PROTO_SignData [23:53:03]wFMCommunicate request_size=4 [23:53:03]MH_SAM_APDU [23:53:03]CAPDU: 80 0D 01 02 [23:53:03]Write to MH i2c: E2 08 00 25 12 80 0D 01 02 00 00 00 00 B0 [23:53:03]Write i2c OK [23:53:03]MH_I2C_Read... [23:53:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:53:03]Read from MH i2c: E2 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 03 00 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 03 00 25 12 00 90 00 AB [23:53:03]RAPDU: 90 00 [23:53:03]wFMCommunicate OK [23:53:03]wFMCommunicate request_size=255 [23:53:03]MH_SAM_APDU [23:53:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E1 02 00 00 F4 03 04 00 DF 05 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 36 E2 00 00 35 04 06 00 2C [23:53:03]Write to MH i2c: E2 02 01 26 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E1 02 00 00 F4 03 04 00 DF 05 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 36 E2 00 00 35 04 06 00 2C 00 00 73 [23:53:03]Write i2c OK [23:53:03]MH_I2C_Read... [23:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:03]Read from MH i2c: E2 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 03 00 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 03 00 26 12 00 90 00 AC [23:53:03]RAPDU: 90 00 [23:53:03]wFMCommunicate OK [23:53:03]wFMCommunicate request_size=10 [23:53:03]MH_SAM_APDU [23:53:03]CAPDU: 80 0D 02 02 05 10 36 CE 5D 31 [23:53:03]Write to MH i2c: E2 0D 00 27 12 80 0D 02 02 05 00 10 36 CE 5D 31 00 00 5F [23:53:03]Write i2c OK [23:53:03]MH_I2C_Read... [23:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:03]Read from MH i2c: E2 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 03 00 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 03 00 27 12 00 90 00 AD [23:53:03]RAPDU: 90 00 [23:53:03]wFMCommunicate OK [23:53:03]wFMCommunicate request_size=4 [23:53:03]MH_SAM_APDU [23:53:03]CAPDU: 80 0D 03 02 [23:53:03]Write to MH i2c: E2 08 00 28 12 80 0D 03 02 00 00 00 00 B5 [23:53:03]Write i2c OK [23:53:03]MH_I2C_Read... [23:53:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:53:03]Read from MH i2c: E2 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 0B 00 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 0B 00 28 12 00 77 31 AE 75 E0 39 BD 25 90 00 7C [23:53:03]RAPDU: 77 31 AE 75 E0 39 BD 25 90 00 [23:53:03]wFMCommunicate OK [23:53:03]SAM_PROTO_SignData done [23:53:03]FM_MakeSignedData done [23:53:03]CreateOFDProtocolMessage [23:53:03]wFMCommunicate request_size=4 [23:53:03]MH_SAM_APDU [23:53:03]CAPDU: 80 11 00 00 [23:53:03]Write to MH i2c: E2 08 00 29 12 80 11 00 00 00 00 00 00 B5 [23:53:03]Write i2c OK [23:53:03]MH_I2C_Read... [23:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:03]Read from MH i2c: E2 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 17 00 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 17 00 29 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 08 [23:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:53:03]wFMCommunicate OK [23:53:03]CreateOFDProtocolMessage done [23:53:03]OFDSenderStorePacket 57910 [23:53:03]StoreOFDPacket docnum=57910 [23:53:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 6F CE 07 01 94 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E1 02 00 00 F4 03 04 00 DF 05 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 36 E2 00 00 35 04 06 00 2C 10 36 CE 5D 31 77 31 AE 75 E0 39 BD 25 [23:53:03]CheckFolder [23:53:03]dirname=/storage/ofd_packets [23:53:03]CheckFolder done [23:53:03]ProducePacketName [23:53:03]name=ofd_packets/00057910 [23:53:03]NVStorageSaveData ofd_packets/00057910 [23:53:03]File name is /storage/ofd_packets/00057910 [23:53:03]Write 301 bytes [23:53:03]NVStorageSaveData done [23:53:03]OFDSenderStorePacket done [23:53:03]KKMCreateOFDPacket done [23:53:03]NVStorageSaveData kkm_last_timestamp [23:53:03]File name is /storage/kkm_last_timestamp [23:53:03]Write 4 bytes [23:53:03]NVStorageSaveData done [23:53:03]ExternCall_PrintAddStr [23:53:03]wPrintStart [23:53:03]Write to MH i2c: 01 00 00 2A 12 3C [23:53:03]Write i2c OK [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: 01 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: 01 07 00 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: 01 07 00 2A 12 00 00 00 00 00 FF 0F 51 [23:53:03]RasterBufferAndPrint [23:53:03]line Счет N : (1)543254 [23:53:03]line ИНН: 02508201610067 [23:53:03]line Контрольно-Кассовый Чек [23:53:03]line ПРОДАЖА [23:53:03]line ТРК (МРК, ГНК) : 22 [23:53:03]line Товар: 2710124130 [23:53:03]line Аи-92-К-5 [23:53:03]line 7.540 * 66.40 [23:53:03]line = 500.66 [23:53:03]line НДС 12% НСП 1% [23:53:03]line > о реализуемом товаре [23:53:03]line ОКРУГЛЕНИЕ: -0.66 [23:53:03]line ИТОГО: 500.00 [23:53:03]line Внесено: 500.00 [23:53:03]line СДАЧА: 0.00 [23:53:03]line НСП 1% : 4.43 [23:53:03]line НДС 12% : 53.17 [23:53:03]line Наличными: 500.00 [23:53:03]line Безнал.: 0.00 [23:53:03]line Место: АЗС № 117 "Партнер Нефть" [23:53:03]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:53:03]line СНО: Общий режим [23:53:03]line Чек 737 02.06.2024 23:53 [23:53:03]line Смена: 69 ФФД: 1.0 [23:53:03]line ЗНМ: 0300000048 [23:53:03]line РНМ: 0000000000151680 [23:53:03]line Версия ККМ: v1.0 [23:53:03]line ФМ: 0000000000959414 [23:53:03]line ФД: 57910 [23:53:03]line ФПД: 48448150592817 [23:53:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235303&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57910&fm=48448150592817&tin=02508201610067®Number=0000000000151680&sum=50000 [23:53:04]OFD Sender: Processing packet 57910 [packets to send 50, broken 49] [23:53:04]ProducePacketName [23:53:04]name=ofd_packets/00057910 [23:53:04]OFD Sender: To server: pG, [23:53:04]CommunicateWithHost lk.salyk.kg:30040 [23:53:04]ConnectInit lk.salyk.kg [23:53:04]written 0, free lines is 4095 [23:53:04]Connected sock=10 [23:53:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 6F CE 07 01 94 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E1 02 00 00 F4 03 04 00 DF 05 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 36 E2 00 00 35 04 06 00 2C 10 36 CE 5D 31 77 31 AE 75 E0 39 BD 25 [23:53:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 69 C8 47 00 0A 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 36 E2 00 00 F4 03 04 00 AE B0 5C 66 B6 04 01 00 00 0A 78 C2 69 13 65 59 3D [23:53:04]CommunicateWithHost err = 0 [23:53:04]CheckOFDResponse [23:53:04]1017 (14) - 77093643461234 [23:53:04]1041 (16) - 0000000000959414 [23:53:04]1040 (4) - 57910 [23:53:04]1012 (4) - 02.06.2024 17:49 [23:53:04]1206 (1) - 0 [23:53:04]OFD Sender: Remove packet 57910 [23:53:04]ProducePacketName [23:53:04]name=ofd_packets/00057910 [23:53:04]NVStorageDeleteData [23:53:04]Write to MH i2c: 01 00 00 55 12 67 [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: 01 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: 01 07 00 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: 01 07 00 55 12 00 00 00 00 00 A5 0C 1F [23:53:04]RasterBufferAndPrint [23:53:04]line [23:53:04]line [23:53:04]line [23:53:04]line [23:53:04]line [23:53:04]written 0, free lines is 3242 [23:53:04]MH_Cut [23:53:04]Write to MH i2c: D1 01 00 5C 12 01 40 [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: D1 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: D1 01 00 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: D1 01 00 5C 12 00 3F [23:53:04]Write to MH i2c: 01 00 00 5D 12 6F [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:04]OFD Sender: No OFD packet to send [23:53:05]*** Cut start [23:53:05]*** Partial cut [23:53:05]*** CUTSNS_PIN = 1 [23:53:05]*** CUTSNS_PIN = 0 [23:53:05]*** Brake cut motor [23:53:06]Read from MH i2c: 01 [23:53:06]MH_I2C_Read... [23:53:06]*** Stop cut motor [23:53:06]*** Cut end [23:53:06]Read from MH i2c: 01 07 00 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: 01 07 00 5D 12 00 00 00 00 00 FF 0F 84 [23:53:06]process_action close_receipt done [23:53:06]requested_data is exist [23:53:06]produce_requested_data [23:53:06]requested_item fm.sn is exist - process it [23:53:06]wFMCommunicate request_size=4 [23:53:06]MH_SAM_APDU [23:53:06]CAPDU: 80 11 00 00 [23:53:06]Write to MH i2c: E2 08 00 5E 12 80 11 00 00 00 00 00 00 EA [23:53:06]Write i2c OK [23:53:06]MH_I2C_Read... [23:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:06]Read from MH i2c: E2 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 17 00 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 17 00 5E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 3D [23:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:53:06]wFMCommunicate OK [23:53:06]requested_item fd.num is exist - process it [23:53:06]SAM_PROTO_GetFieldsCounters [23:53:06]wFMCommunicate request_size=4 [23:53:06]MH_SAM_APDU [23:53:06]CAPDU: 80 13 00 00 [23:53:06]Write to MH i2c: E2 08 00 5F 12 80 13 00 00 00 00 00 00 ED [23:53:06]Write i2c OK [23:53:06]MH_I2C_Read... [23:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:06]Read from MH i2c: E2 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 62 00 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 62 00 5F 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 36 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E1 02 00 00 5E 04 04 00 E1 02 00 00 57 04 04 00 E2 02 00 00 19 04 04 00 00 00 00 00 90 00 10 [23:53:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 36 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E1 02 00 00 5E 04 04 00 E1 02 00 00 57 04 04 00 E2 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:06]wFMCommunicate OK [23:53:06]SAM_PROTO_GetFieldsCounters done [23:53:06]requested_item shift.num is exist - process it [23:53:06]requested_item shift.opened is exist - process it [23:53:06]req_shift_opened [23:53:06]FM_GetShiftState [23:53:06]SAM_PROTO_GetShiftState [23:53:06]wFMCommunicate request_size=4 [23:53:06]MH_SAM_APDU [23:53:06]CAPDU: 80 13 01 00 [23:53:06]Write to MH i2c: E2 08 00 60 12 80 13 01 00 00 00 00 00 EF [23:53:06]Write i2c OK [23:53:06]MH_I2C_Read... [23:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:06]Read from MH i2c: E2 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 0E 00 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 0E 00 60 12 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 C2 [23:53:06]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:53:06]wFMCommunicate OK [23:53:06]SAM_PROTO_GetShiftState done [23:53:06]FM_GetShiftState done [23:53:06]req_shift_opened done [23:53:06]requested_item shift.open_date is exist - process it [23:53:06]req_shift_open_date [23:53:06]req_shift_open_date done [23:53:06]produce_requested_data done [23:53:06]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57910,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:53:06]process_action_free close_receipt [23:53:06]json_value_free [23:53:06]json_value_free done [23:53:06]process_json_proto returns [23:53:06]Send response to host [23:53:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57910,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:53:06]free response buf [23:53:06]execute_script done [23:53:06]execute_script returns [23:53:06]free content buf [23:53:06]Sock 9.Close socket [23:53:06]Sock 9.Thread stoped [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:17]accept exits with 8 [23:53:17]New connection [23:53:17]New thread 3066735972 created [23:53:17]Thread 3066592612 joined [23:53:17]Waiting for new connection... [23:53:17] Sock 8.Parse request [23:53:17]Sock 8.Check first char [23:53:17]Sock 8.First char is OK [23:53:17]request: POST /json_proto HTTP/1.0 [23:53:17]Method: POST [23:53:17]URL: /json_proto [23:53:17]Method is POST - this is cgi request [23:53:17]url: /json_proto [23:53:17]query_string will be loaded in cgi processing [23:53:17]execute_cgi json_proto POST (null) [23:53:17]execute_cgi path=json_proto method=POST [23:53:17]POST find Content-Length [23:53:17]Host: 172.17.60.68:8080 [23:53:17]Content-Length: 677 [23:53:17]Content-Type: application/json [23:53:17] [23:53:17]POST finish read [23:53:17]Found Content-Length = 677 [23:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.780, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:17]execute_script... [23:53:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.780, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:17]POST & json_proto [23:53:17]process_json_proto [23:53:17]json parsed OK: [23:53:17]protocol is kg_v1.0 [23:53:17]action value=close_receipt [23:53:17]process_action close_receipt [23:53:17]cmd_close_receipt [23:53:17]MH_GetDate [23:53:17]Write to MH i2c: F0 00 00 61 12 62 [23:53:17]Write i2c OK [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: F0 [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: F0 09 00 [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: F0 09 00 61 12 00 EE 05 5D 66 8D A7 02 66 BD [23:53:17]GetLastDocTimeStamp 1717372383 [23:53:17]current date 1717372398 [23:53:17]FM_GetShiftState [23:53:17]SAM_PROTO_GetShiftState [23:53:17]wFMCommunicate request_size=4 [23:53:17]MH_SAM_APDU [23:53:17]CAPDU: 80 13 01 00 [23:53:17]Write to MH i2c: E2 08 00 62 12 80 13 01 00 00 00 00 00 F1 [23:53:17]Write i2c OK [23:53:17]MH_I2C_Read... [23:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:17]Read from MH i2c: E2 [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: E2 0E 00 [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: E2 0E 00 62 12 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 C4 [23:53:17]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:53:17]wFMCommunicate OK [23:53:17]SAM_PROTO_GetShiftState done [23:53:17]FM_GetShiftState done [23:53:17]opened in 1717288520 [23:53:17]opened+sec_in_day 1717374920 [23:53:17]quantity*price = 45019 [23:53:17]sum+1 = 45020 [23:53:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 738 02.06.2024 23:53 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57911 ФПД: 2962040827981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235318&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57911&fm=2962040827981&tin=02508201610067®Number=0000000000151680&sum=45000 [23:53:19]StoreToDocumentArchive [23:53:19]shift 69 fd 57911 [23:53:19]save to /storage/0069/doc_00057911 [23:53:19]save last doc name /storage/0069/doc_00057911 to /storage/kkm_last_doc_name [23:53:19]save OK [23:53:19]Clear old archive folders... [23:53:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:53:19]tlvbuf is 01B1D700 [23:53:19]SAM_PROTO_ClearQueue [23:53:19]wFMCommunicate request_size=4 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 09 00 00 [23:53:19]Write to MH i2c: E2 08 00 6F 12 80 09 00 00 00 00 00 00 F3 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 6F 12 00 90 00 F5 [23:53:19]RAPDU: 90 00 [23:53:19]wFMCommunicate OK [23:53:19]SAM_PROTO_ClearQueue done [23:53:19]KKMCreateOFDPacket [23:53:19]OFDProtocolAddRootSTLVToBuf [23:53:19]FM_MakeSignedData [23:53:19]FM_MakeSignedData [23:53:19]SAM_PROTO_SignData [23:53:19]wFMCommunicate request_size=4 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 0D 01 02 [23:53:19]Write to MH i2c: E2 08 00 70 12 80 0D 01 02 00 00 00 00 FB [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 70 12 00 90 00 F6 [23:53:19]RAPDU: 90 00 [23:53:19]wFMCommunicate OK [23:53:19]wFMCommunicate request_size=255 [23:53:19]MH_SAM_APDU [23:53:19]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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 02 00 00 F4 03 04 00 EE 05 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 37 E2 00 00 35 04 06 00 02 [23:53:19]Write to MH i2c: E2 02 01 71 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 02 00 00 F4 03 04 00 EE 05 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 37 E2 00 00 35 04 06 00 02 00 00 60 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 71 12 00 90 00 F7 [23:53:19]RAPDU: 90 00 [23:53:19]wFMCommunicate OK [23:53:19]wFMCommunicate request_size=10 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 0D 02 02 05 B1 A7 64 30 4D [23:53:19]Write to MH i2c: E2 0D 00 72 12 80 0D 02 02 05 00 B1 A7 64 30 4D 00 00 41 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 72 12 00 90 00 F8 [23:53:19]RAPDU: 90 00 [23:53:19]wFMCommunicate OK [23:53:19]wFMCommunicate request_size=4 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 0D 03 02 [23:53:19]Write to MH i2c: E2 08 00 73 12 80 0D 03 02 00 00 00 00 00 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 0B 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 0B 00 73 12 00 76 D8 F6 72 E4 86 89 DD 90 00 87 [23:53:19]RAPDU: 76 D8 F6 72 E4 86 89 DD 90 00 [23:53:19]wFMCommunicate OK [23:53:19]SAM_PROTO_SignData done [23:53:19]FM_MakeSignedData done [23:53:19]CreateOFDProtocolMessage [23:53:19]wFMCommunicate request_size=4 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 11 00 00 [23:53:19]Write to MH i2c: E2 08 00 74 12 80 11 00 00 00 00 00 00 00 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 17 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 17 00 74 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 53 [23:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:53:19]wFMCommunicate OK [23:53:19]CreateOFDProtocolMessage done [23:53:19]OFDSenderStorePacket 57911 [23:53:19]StoreOFDPacket docnum=57911 [23:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 26 9C 07 01 17 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 02 00 00 F4 03 04 00 EE 05 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 37 E2 00 00 35 04 06 00 02 B1 A7 64 30 4D 76 D8 F6 72 E4 86 89 DD [23:53:19]CheckFolder [23:53:19]dirname=/storage/ofd_packets [23:53:19]CheckFolder done [23:53:19]ProducePacketName [23:53:19]name=ofd_packets/00057911 [23:53:19]NVStorageSaveData ofd_packets/00057911 [23:53:19]File name is /storage/ofd_packets/00057911 [23:53:19]Write 301 bytes [23:53:19]NVStorageSaveData done [23:53:19]OFDSenderStorePacket done [23:53:19]KKMCreateOFDPacket done [23:53:19]NVStorageSaveData kkm_last_timestamp [23:53:19]File name is /storage/kkm_last_timestamp [23:53:19]Write 4 bytes [23:53:19]NVStorageSaveData done [23:53:19]ExternCall_PrintAddStr [23:53:19]wPrintStart [23:53:19]Write to MH i2c: 01 00 00 75 12 87 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: 01 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: 01 07 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: 01 07 00 75 12 00 00 00 00 00 FF 0F 9C [23:53:19]RasterBufferAndPrint [23:53:19]line Счет N : (1)543255 [23:53:19]line ИНН: 02508201610067 [23:53:19]line Контрольно-Кассовый Чек [23:53:19]line ПРОДАЖА [23:53:19]line ТРК (МРК, ГНК) : 42 [23:53:19]line Товар: 2710124130 [23:53:19]line Аи-92-К-5 [23:53:19]line 6.780 * 66.40 [23:53:19]line = 450.19 [23:53:19]line НДС 12% НСП 1% [23:53:19]line > о реализуемом товаре [23:53:19]line ОКРУГЛЕНИЕ: -0.19 [23:53:19]line ИТОГО: 450.00 [23:53:19]line Внесено: 450.00 [23:53:19]line СДАЧА: 0.00 [23:53:19]line НСП 1% : 3.98 [23:53:19]line НДС 12% : 47.81 [23:53:19]line Наличными: 450.00 [23:53:19]line Безнал.: 0.00 [23:53:19]line Место: АЗС № 117 "Партнер Нефть" [23:53:19]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:53:19]line СНО: Общий режим [23:53:19]line Чек 738 02.06.2024 23:53 [23:53:19]line Смена: 69 ФФД: 1.0 [23:53:19]line ЗНМ: 0300000048 [23:53:19]line РНМ: 0000000000151680 [23:53:19]line Версия ККМ: v1.0 [23:53:19]line ФМ: 0000000000959414 [23:53:19]line ФД: 57911 [23:53:19]line ФПД: 2962040827981 [23:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235318&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57911&fm=2962040827981&tin=02508201610067®Number=0000000000151680&sum=45000 [23:53:19]OFD Sender: Processing packet 57911 [packets to send 50, broken 49] [23:53:19]ProducePacketName [23:53:19]name=ofd_packets/00057911 [23:53:19]OFD Sender: To server: pG, [23:53:19]CommunicateWithHost lk.salyk.kg:30040 [23:53:19]ConnectInit lk.salyk.kg [23:53:19]written 0, free lines is 4095 [23:53:20]Connected sock=10 [23:53:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 26 9C 07 01 17 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 02 00 00 F4 03 04 00 EE 05 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 37 E2 00 00 35 04 06 00 02 B1 A7 64 30 4D 76 D8 F6 72 E4 86 89 DD [23:53:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 36 F2 47 00 60 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 37 E2 00 00 F4 03 04 00 BE B0 5C 66 B6 04 01 00 00 16 ED 87 39 AA 49 7D E9 [23:53:20]CommunicateWithHost err = 0 [23:53:20]CheckOFDResponse [23:53:20]1017 (14) - 77093643461234 [23:53:20]1041 (16) - 0000000000959414 [23:53:20]1040 (4) - 57911 [23:53:20]1012 (4) - 02.06.2024 17:49 [23:53:20]1206 (1) - 0 [23:53:20]OFD Sender: Remove packet 57911 [23:53:20]ProducePacketName [23:53:20]name=ofd_packets/00057911 [23:53:20]NVStorageDeleteData [23:53:20]Write to MH i2c: 01 00 00 A0 12 B2 [23:53:20]Write i2c OK [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: 01 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: 01 07 00 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: 01 07 00 A0 12 00 00 00 00 00 AD 0C 72 [23:53:20]RasterBufferAndPrint [23:53:20]line [23:53:20]line [23:53:20]line [23:53:20]line [23:53:20]line [23:53:20]written 0, free lines is 3249 [23:53:20]MH_Cut [23:53:20]Write to MH i2c: D1 01 00 A7 12 01 8B [23:53:20]Write i2c OK [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: D1 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: D1 01 00 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: D1 01 00 A7 12 00 8A [23:53:20]Write to MH i2c: 01 00 00 A8 12 BA [23:53:20]Write i2c OK [23:53:20]MH_I2C_Read... [23:53:20]OFD Sender: No OFD packet to send [23:53:21]*** Cut start [23:53:21]*** Partial cut [23:53:21]*** CUTSNS_PIN = 1 [23:53:21]*** CUTSNS_PIN = 0 [23:53:21]*** Brake cut motor [23:53:21]Read from MH i2c: 01 [23:53:21]MH_I2C_Read... [23:53:21]*** Stop cut motor [23:53:21]*** Cut end [23:53:21]Read from MH i2c: 01 07 00 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: 01 07 00 A8 12 00 00 00 00 00 FF 0F CF [23:53:21]process_action close_receipt done [23:53:21]requested_data is exist [23:53:21]produce_requested_data [23:53:21]requested_item fm.sn is exist - process it [23:53:21]wFMCommunicate request_size=4 [23:53:21]MH_SAM_APDU [23:53:21]CAPDU: 80 11 00 00 [23:53:21]Write to MH i2c: E2 08 00 A9 12 80 11 00 00 00 00 00 00 35 [23:53:21]Write i2c OK [23:53:21]MH_I2C_Read... [23:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:21]Read from MH i2c: E2 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 17 00 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 17 00 A9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 88 [23:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:53:21]wFMCommunicate OK [23:53:21]requested_item fd.num is exist - process it [23:53:21]SAM_PROTO_GetFieldsCounters [23:53:21]wFMCommunicate request_size=4 [23:53:21]MH_SAM_APDU [23:53:21]CAPDU: 80 13 00 00 [23:53:21]Write to MH i2c: E2 08 00 AA 12 80 13 00 00 00 00 00 00 38 [23:53:21]Write i2c OK [23:53:21]MH_I2C_Read... [23:53:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:22]Read from MH i2c: E2 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: E2 62 00 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: E2 62 00 AA 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 37 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E2 02 00 00 5E 04 04 00 E2 02 00 00 57 04 04 00 E3 02 00 00 19 04 04 00 00 00 00 00 90 00 5F [23:53:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 37 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E2 02 00 00 5E 04 04 00 E2 02 00 00 57 04 04 00 E3 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:22]wFMCommunicate OK [23:53:22]SAM_PROTO_GetFieldsCounters done [23:53:22]requested_item shift.num is exist - process it [23:53:22]requested_item shift.opened is exist - process it [23:53:22]req_shift_opened [23:53:22]FM_GetShiftState [23:53:22]SAM_PROTO_GetShiftState [23:53:22]wFMCommunicate request_size=4 [23:53:22]MH_SAM_APDU [23:53:22]CAPDU: 80 13 01 00 [23:53:22]Write to MH i2c: E2 08 00 AB 12 80 13 01 00 00 00 00 00 3A [23:53:22]Write i2c OK [23:53:22]MH_I2C_Read... [23:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:22]Read from MH i2c: E2 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: E2 0E 00 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: E2 0E 00 AB 12 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 0D [23:53:22]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:53:22]wFMCommunicate OK [23:53:22]SAM_PROTO_GetShiftState done [23:53:22]FM_GetShiftState done [23:53:22]req_shift_opened done [23:53:22]requested_item shift.open_date is exist - process it [23:53:22]req_shift_open_date [23:53:22]req_shift_open_date done [23:53:22]produce_requested_data done [23:53:22]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57911,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:53:22]process_action_free close_receipt [23:53:22]json_value_free [23:53:22]json_value_free done [23:53:22]process_json_proto returns [23:53:22]Send response to host [23:53:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57911,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:53:22]free response buf [23:53:22]execute_script done [23:53:22]execute_script returns [23:53:22]free content buf [23:53:22]Sock 8.Close socket [23:53:22]Sock 8.Thread stoped [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:28]accept exits with 9 [23:55:28]New connection [23:55:28]New thread 3066592612 created [23:55:28]Thread 3066735972 joined [23:55:28]Waiting for new connection... [23:55:28] Sock 9.Parse request [23:55:28]Sock 9.Check first char [23:55:28]Sock 9.First char is OK [23:55:28]request: POST /json_proto HTTP/1.0 [23:55:28]Method: POST [23:55:28]URL: /json_proto [23:55:28]Method is POST - this is cgi request [23:55:28]url: /json_proto [23:55:28]query_string will be loaded in cgi processing [23:55:28]execute_cgi json_proto POST (null) [23:55:28]execute_cgi path=json_proto method=POST [23:55:28]POST find Content-Length [23:55:28]Host: 172.17.60.68:8080 [23:55:28]Content-Length: 677 [23:55:28]Content-Type: application/json [23:55:28] [23:55:28]POST finish read [23:55:28]Found Content-Length = 677 [23:55:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543257", "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" : 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:55:28]execute_script... [23:55:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543257", "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" : 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:55:28]POST & json_proto [23:55:28]process_json_proto [23:55:28]json parsed OK: [23:55:28]protocol is kg_v1.0 [23:55:28]action value=close_receipt [23:55:28]process_action close_receipt [23:55:28]cmd_close_receipt [23:55:28]MH_GetDate [23:55:28]Write to MH i2c: F0 00 00 AC 12 AD [23:55:28]Write i2c OK [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: F0 [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: F0 09 00 [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: F0 09 00 AC 12 00 71 06 5D 66 8D A7 02 66 8C [23:55:28]GetLastDocTimeStamp 1717372398 [23:55:28]current date 1717372529 [23:55:28]FM_GetShiftState [23:55:28]SAM_PROTO_GetShiftState [23:55:28]wFMCommunicate request_size=4 [23:55:28]MH_SAM_APDU [23:55:28]CAPDU: 80 13 01 00 [23:55:28]Write to MH i2c: E2 08 00 AD 12 80 13 01 00 00 00 00 00 3C [23:55:28]Write i2c OK [23:55:28]MH_I2C_Read... [23:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:28]Read from MH i2c: E2 [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: E2 0E 00 [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: E2 0E 00 AD 12 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 0F [23:55:28]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:55:28]wFMCommunicate OK [23:55:28]SAM_PROTO_GetShiftState done [23:55:28]FM_GetShiftState done [23:55:28]opened in 1717288520 [23:55:28]opened+sec_in_day 1717374920 [23:55:28]quantity*price = 20052 [23:55:28]sum+1 = 20054 [23:55:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 739 02.06.2024 23:55 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57912 ФПД: 129784264372043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235529&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57912&fm=129784264372043&tin=02508201610067®Number=0000000000151680&sum=20000 [23:55:29]StoreToDocumentArchive [23:55:29]shift 69 fd 57912 [23:55:29]save to /storage/0069/doc_00057912 [23:55:29]save last doc name /storage/0069/doc_00057912 to /storage/kkm_last_doc_name [23:55:29]save OK [23:55:29]Clear old archive folders... [23:55:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:55:29]tlvbuf is 019E9B70 [23:55:29]SAM_PROTO_ClearQueue [23:55:29]wFMCommunicate request_size=4 [23:55:29]MH_SAM_APDU [23:55:29]CAPDU: 80 09 00 00 [23:55:29]Write to MH i2c: E2 08 00 BA 12 80 09 00 00 00 00 00 00 3E [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:55:29]Read from MH i2c: E2 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 03 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 03 00 BA 12 00 90 00 40 [23:55:29]RAPDU: 90 00 [23:55:29]wFMCommunicate OK [23:55:29]SAM_PROTO_ClearQueue done [23:55:29]KKMCreateOFDPacket [23:55:29]OFDProtocolAddRootSTLVToBuf [23:55:29]FM_MakeSignedData [23:55:29]FM_MakeSignedData [23:55:29]SAM_PROTO_SignData [23:55:29]wFMCommunicate request_size=4 [23:55:29]MH_SAM_APDU [23:55:29]CAPDU: 80 0D 01 02 [23:55:29]Write to MH i2c: E2 08 00 BB 12 80 0D 01 02 00 00 00 00 46 [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:55:29]Read from MH i2c: E2 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 03 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 03 00 BB 12 00 90 00 41 [23:55:29]RAPDU: 90 00 [23:55:29]wFMCommunicate OK [23:55:29]wFMCommunicate request_size=255 [23:55:29]MH_SAM_APDU [23:55: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 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 E3 02 00 00 F4 03 04 00 71 06 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 38 E2 00 00 35 04 06 00 76 [23:55:29]Write to MH i2c: E2 02 01 BC 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E3 02 00 00 F4 03 04 00 71 06 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 38 E2 00 00 35 04 06 00 76 00 00 A9 [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:29]Read from MH i2c: E2 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 03 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 03 00 BC 12 00 90 00 42 [23:55:29]RAPDU: 90 00 [23:55:29]wFMCommunicate OK [23:55:29]wFMCommunicate request_size=10 [23:55:29]MH_SAM_APDU [23:55:29]CAPDU: 80 0D 02 02 05 09 C0 F9 AF 4B [23:55:29]Write to MH i2c: E2 0D 00 BD 12 80 0D 02 02 05 00 09 C0 F9 AF 4B 00 00 0F [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:29]Read from MH i2c: E2 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 03 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 03 00 BD 12 00 90 00 43 [23:55:29]RAPDU: 90 00 [23:55:29]wFMCommunicate OK [23:55:29]wFMCommunicate request_size=4 [23:55:29]MH_SAM_APDU [23:55:29]CAPDU: 80 0D 03 02 [23:55:29]Write to MH i2c: E2 08 00 BE 12 80 0D 03 02 00 00 00 00 4B [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:55:29]Read from MH i2c: E2 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 0B 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 0B 00 BE 12 00 4B 85 05 67 B9 C3 55 ED 90 00 46 [23:55:29]RAPDU: 4B 85 05 67 B9 C3 55 ED 90 00 [23:55:29]wFMCommunicate OK [23:55:29]SAM_PROTO_SignData done [23:55:29]FM_MakeSignedData done [23:55:29]CreateOFDProtocolMessage [23:55:29]wFMCommunicate request_size=4 [23:55:29]MH_SAM_APDU [23:55:29]CAPDU: 80 11 00 00 [23:55:29]Write to MH i2c: E2 08 00 BF 12 80 11 00 00 00 00 00 00 4B [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:29]Read from MH i2c: E2 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 17 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 17 00 BF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 9E [23:55:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:55:29]wFMCommunicate OK [23:55:29]CreateOFDProtocolMessage done [23:55:29]OFDSenderStorePacket 57912 [23:55:29]StoreOFDPacket docnum=57912 [23:55:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 8E FE 07 01 7D 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E3 02 00 00 F4 03 04 00 71 06 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 38 E2 00 00 35 04 06 00 76 09 C0 F9 AF 4B 4B 85 05 67 B9 C3 55 ED [23:55:29]CheckFolder [23:55:29]dirname=/storage/ofd_packets [23:55:29]CheckFolder done [23:55:29]ProducePacketName [23:55:29]name=ofd_packets/00057912 [23:55:29]NVStorageSaveData ofd_packets/00057912 [23:55:29]File name is /storage/ofd_packets/00057912 [23:55:29]Write 301 bytes [23:55:29]NVStorageSaveData done [23:55:29]OFDSenderStorePacket done [23:55:29]KKMCreateOFDPacket done [23:55:29]NVStorageSaveData kkm_last_timestamp [23:55:29]File name is /storage/kkm_last_timestamp [23:55:29]Write 4 bytes [23:55:29]NVStorageSaveData done [23:55:29]ExternCall_PrintAddStr [23:55:29]wPrintStart [23:55:29]Write to MH i2c: 01 00 00 C0 12 D2 [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: 01 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: 01 07 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: 01 07 00 C0 12 00 00 00 00 00 FF 0F E7 [23:55:29]RasterBufferAndPrint [23:55:29]line Счет N : (1)543257 [23:55:29]line ИНН: 02508201610067 [23:55:29]line Контрольно-Кассовый Чек [23:55:29]line ПРОДАЖА [23:55:29]line ТРК (МРК, ГНК) : 12 [23:55:29]line Товар: 2710124130 [23:55:29]line Аи-92-К-5 [23:55:29]line 3.020 * 66.40 [23:55:29]line = 200.53 [23:55:29]line НДС 12% НСП 1% [23:55:29]line > о реализуемом товаре [23:55:29]line ОКРУГЛЕНИЕ: -0.53 [23:55:29]line ИТОГО: 200.00 [23:55:29]line Внесено: 200.00 [23:55:29]line СДАЧА: 0.00 [23:55:29]line НСП 1% : 1.77 [23:55:29]line НДС 12% : 21.29 [23:55:29]line Наличными: 200.00 [23:55:29]line Безнал.: 0.00 [23:55:29]line Место: АЗС № 117 "Партнер Нефть" [23:55:29]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:55:29]line СНО: Общий режим [23:55:29]line Чек 739 02.06.2024 23:55 [23:55:29]line Смена: 69 ФФД: 1.0 [23:55:29]line ЗНМ: 0300000048 [23:55:29]line РНМ: 0000000000151680 [23:55:29]line Версия ККМ: v1.0 [23:55:29]line ФМ: 0000000000959414 [23:55:29]line ФД: 57912 [23:55:29]line ФПД: 129784264372043 [23:55:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235529&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57912&fm=129784264372043&tin=02508201610067®Number=0000000000151680&sum=20000 [23:55:30]OFD Sender: Processing packet 57912 [packets to send 50, broken 49] [23:55:30]ProducePacketName [23:55:30]name=ofd_packets/00057912 [23:55:30]OFD Sender: To server: pG, [23:55:30]CommunicateWithHost lk.salyk.kg:30040 [23:55:30]ConnectInit lk.salyk.kg [23:55:30]written 0, free lines is 4095 [23:55:30]Connected sock=10 [23:55:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 8E FE 07 01 7D 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E3 02 00 00 F4 03 04 00 71 06 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 38 E2 00 00 35 04 06 00 76 09 C0 F9 AF 4B 4B 85 05 67 B9 C3 55 ED [23:55:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 CF 02 47 00 81 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 38 E2 00 00 F4 03 04 00 40 B1 5C 66 B6 04 01 00 00 36 86 B0 41 48 4A 9A DF [23:55:30]CommunicateWithHost err = 0 [23:55:30]CheckOFDResponse [23:55:30]1017 (14) - 77093643461234 [23:55:30]1041 (16) - 0000000000959414 [23:55:30]1040 (4) - 57912 [23:55:30]1012 (4) - 02.06.2024 17:52 [23:55:30]1206 (1) - 0 [23:55:30]OFD Sender: Remove packet 57912 [23:55:30]ProducePacketName [23:55:30]name=ofd_packets/00057912 [23:55:30]NVStorageDeleteData [23:55:30]Write to MH i2c: 01 00 00 EB 12 FD [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: 01 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: 01 07 00 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: 01 07 00 EB 12 00 00 00 00 00 B3 0C C3 [23:55:30]RasterBufferAndPrint [23:55:30]line [23:55:30]line [23:55:30]line [23:55:30]line [23:55:30]line [23:55:30]written 0, free lines is 3259 [23:55:30]MH_Cut [23:55:30]Write to MH i2c: D1 01 00 F2 12 01 D6 [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: D1 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: D1 01 00 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: D1 01 00 F2 12 00 D5 [23:55:30]Write to MH i2c: 01 00 00 F3 12 05 [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:30]OFD Sender: No OFD packet to send [23:55:31]*** Cut start [23:55:31]*** Partial cut [23:55:31]*** CUTSNS_PIN = 1 [23:55:31]*** CUTSNS_PIN = 0 [23:55:31]*** Brake cut motor [23:55:32]Read from MH i2c: 01 [23:55:32]MH_I2C_Read... [23:55:32]*** Stop cut motor [23:55:32]*** Cut end [23:55:32]Read from MH i2c: 01 07 00 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: 01 07 00 F3 12 00 00 00 00 00 FF 0F 1A [23:55:32]process_action close_receipt done [23:55:32]requested_data is exist [23:55:32]produce_requested_data [23:55:32]requested_item fm.sn is exist - process it [23:55:32]wFMCommunicate request_size=4 [23:55:32]MH_SAM_APDU [23:55:32]CAPDU: 80 11 00 00 [23:55:32]Write to MH i2c: E2 08 00 F4 12 80 11 00 00 00 00 00 00 80 [23:55:32]Write i2c OK [23:55:32]MH_I2C_Read... [23:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:32]Read from MH i2c: E2 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: E2 17 00 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: E2 17 00 F4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 D3 [23:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:55:32]wFMCommunicate OK [23:55:32]requested_item fd.num is exist - process it [23:55:32]SAM_PROTO_GetFieldsCounters [23:55:32]wFMCommunicate request_size=4 [23:55:32]MH_SAM_APDU [23:55:32]CAPDU: 80 13 00 00 [23:55:32]Write to MH i2c: E2 08 00 F5 12 80 13 00 00 00 00 00 00 83 [23:55:32]Write i2c OK [23:55:32]MH_I2C_Read... [23:55:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:32]Read from MH i2c: E2 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: E2 62 00 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: E2 62 00 F5 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 38 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E3 02 00 00 5E 04 04 00 E3 02 00 00 57 04 04 00 E4 02 00 00 19 04 04 00 00 00 00 00 90 00 AE [23:55:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 38 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E3 02 00 00 5E 04 04 00 E3 02 00 00 57 04 04 00 E4 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:32]wFMCommunicate OK [23:55:32]SAM_PROTO_GetFieldsCounters done [23:55:32]requested_item shift.num is exist - process it [23:55:32]requested_item shift.opened is exist - process it [23:55:32]req_shift_opened [23:55:32]FM_GetShiftState [23:55:32]SAM_PROTO_GetShiftState [23:55:32]wFMCommunicate request_size=4 [23:55:32]MH_SAM_APDU [23:55:32]CAPDU: 80 13 01 00 [23:55:32]Write to MH i2c: E2 08 00 F6 12 80 13 01 00 00 00 00 00 85 [23:55:32]Write i2c OK [23:55:32]MH_I2C_Read... [23:55:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:32]Read from MH i2c: E2 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: E2 0E 00 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: E2 0E 00 F6 12 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 58 [23:55:32]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:55:32]wFMCommunicate OK [23:55:32]SAM_PROTO_GetShiftState done [23:55:32]FM_GetShiftState done [23:55:32]req_shift_opened done [23:55:32]requested_item shift.open_date is exist - process it [23:55:32]req_shift_open_date [23:55:32]req_shift_open_date done [23:55:32]produce_requested_data done [23:55:32]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57912,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:55:32]process_action_free close_receipt [23:55:32]json_value_free [23:55:32]json_value_free done [23:55:32]process_json_proto returns [23:55:32]Send response to host [23:55:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57912,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:55:32]free response buf [23:55:32]execute_script done [23:55:32]execute_script returns [23:55:32]free content buf [23:55:32]Sock 9.Close socket [23:55:32]Sock 9.Thread stoped [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:31]accept exits with 8 [23:58:31]New connection [23:58:31]New thread 3066735972 created [23:58:31]Thread 3066592612 joined [23:58:31]Waiting for new connection... [23:58:31] Sock 8.Parse request [23:58:31]Sock 8.Check first char [23:58:31]Sock 8.First char is OK [23:58:31]request: POST /json_proto HTTP/1.0 [23:58:31]Method: POST [23:58:31]URL: /json_proto [23:58:31]Method is POST - this is cgi request [23:58:31]url: /json_proto [23:58:31]query_string will be loaded in cgi processing [23:58:31]execute_cgi json_proto POST (null) [23:58:31]execute_cgi path=json_proto method=POST [23:58:31]POST find Content-Length [23:58:31]Host: 172.17.60.68:8080 [23:58:31]Content-Length: 806 [23:58:31]Content-Type: application/json [23:58:31] [23:58:31]POST finish read [23:58:31]Found Content-Length = 806 [23:58:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 41.010, "sum" : 1431.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1431.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:31]execute_script... [23:58:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 41.010, "sum" : 1431.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1431.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:31]POST & json_proto [23:58:31]process_json_proto [23:58:31]json parsed OK: [23:58:31]protocol is kg_v1.0 [23:58:31]action value=close_receipt [23:58:31]process_action close_receipt [23:58:31]cmd_close_receipt [23:58:31]MH_GetDate [23:58:31]Write to MH i2c: F0 00 00 F7 12 F8 [23:58:31]Write i2c OK [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: F0 [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: F0 09 00 [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: F0 09 00 F7 12 00 28 07 5D 66 8D A7 02 66 8F [23:58:31]GetLastDocTimeStamp 1717372529 [23:58:31]current date 1717372712 [23:58:31]FM_GetShiftState [23:58:31]SAM_PROTO_GetShiftState [23:58:31]wFMCommunicate request_size=4 [23:58:31]MH_SAM_APDU [23:58:31]CAPDU: 80 13 01 00 [23:58:31]Write to MH i2c: E2 08 00 F8 12 80 13 01 00 00 00 00 00 87 [23:58:31]Write i2c OK [23:58:31]MH_I2C_Read... [23:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:31]Read from MH i2c: E2 [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: E2 0E 00 [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: E2 0E 00 F8 12 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 5A [23:58:31]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:58:31]wFMCommunicate OK [23:58:31]SAM_PROTO_GetShiftState done [23:58:31]FM_GetShiftState done [23:58:31]opened in 1717288520 [23:58:31]opened+sec_in_day 1717374920 [23:58:31]quantity*price = 143124 [23:58:31]sum+1 = 143126 [23:58:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1431.25 НСП 1% : 12.67 НДС 12% : 151.99 Наличными: 0.00 Безнал.: 1431.25 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 740 02.06.2024 23:58 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57913 ФПД: 116780690351396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235832&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57913&fm=116780690351396&tin=02508201610067®Number=0000000000151680&sum=143125 [23:58:32]StoreToDocumentArchive [23:58:32]shift 69 fd 57913 [23:58:32]save to /storage/0069/doc_00057913 [23:58:32]save last doc name /storage/0069/doc_00057913 to /storage/kkm_last_doc_name [23:58:32]save OK [23:58:32]Clear old archive folders... [23:58:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:58:32]tlvbuf is 019ABF00 [23:58:32]SAM_PROTO_ClearQueue [23:58:32]wFMCommunicate request_size=4 [23:58:32]MH_SAM_APDU [23:58:32]CAPDU: 80 09 00 00 [23:58:32]Write to MH i2c: E2 08 00 05 13 80 09 00 00 00 00 00 00 8A [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:58:32]Read from MH i2c: E2 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 03 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 03 00 05 13 00 90 00 8C [23:58:32]RAPDU: 90 00 [23:58:32]wFMCommunicate OK [23:58:32]SAM_PROTO_ClearQueue done [23:58:32]KKMCreateOFDPacket [23:58:32]OFDProtocolAddRootSTLVToBuf [23:58:32]FM_MakeSignedData [23:58:32]FM_MakeSignedData [23:58:32]SAM_PROTO_SignData [23:58:32]wFMCommunicate request_size=4 [23:58:32]MH_SAM_APDU [23:58:32]CAPDU: 80 0D 01 02 [23:58:32]Write to MH i2c: E2 08 00 06 13 80 0D 01 02 00 00 00 00 92 [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:58:32]Read from MH i2c: E2 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 03 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 03 00 06 13 00 90 00 8D [23:58:32]RAPDU: 90 00 [23:58:32]wFMCommunicate OK [23:58:32]wFMCommunicate request_size=255 [23:58:32]MH_SAM_APDU [23:58:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 A0 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 15 2F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 2F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 2F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 02 00 00 F4 03 04 00 28 07 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 39 E2 00 00 35 04 06 00 6A 36 [23:58:32]Write to MH i2c: E2 02 01 07 13 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 A0 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 15 2F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 2F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 2F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 02 00 00 F4 03 04 00 28 07 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 39 E2 00 00 35 04 06 00 6A 36 00 00 FB [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:32]Read from MH i2c: E2 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 03 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 03 00 07 13 00 90 00 8E [23:58:32]RAPDU: 90 00 [23:58:32]wFMCommunicate OK [23:58:32]wFMCommunicate request_size=9 [23:58:32]MH_SAM_APDU [23:58:32]CAPDU: 80 0D 02 02 04 1F 90 A5 24 [23:58:32]Write to MH i2c: E2 0C 00 08 13 80 0D 02 02 04 00 1F 90 A5 24 00 00 15 [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:32]Read from MH i2c: E2 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 03 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 03 00 08 13 00 90 00 8F [23:58:32]RAPDU: 90 00 [23:58:32]wFMCommunicate OK [23:58:32]wFMCommunicate request_size=4 [23:58:32]MH_SAM_APDU [23:58:32]CAPDU: 80 0D 03 02 [23:58:32]Write to MH i2c: E2 08 00 09 13 80 0D 03 02 00 00 00 00 97 [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:58:32]Read from MH i2c: E2 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 0B 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 0B 00 09 13 00 DB 80 11 40 4C 2A F8 FE 90 00 B0 [23:58:32]RAPDU: DB 80 11 40 4C 2A F8 FE 90 00 [23:58:32]wFMCommunicate OK [23:58:32]SAM_PROTO_SignData done [23:58:32]FM_MakeSignedData done [23:58:32]CreateOFDProtocolMessage [23:58:32]wFMCommunicate request_size=4 [23:58:32]MH_SAM_APDU [23:58:32]CAPDU: 80 11 00 00 [23:58:32]Write to MH i2c: E2 08 00 0A 13 80 11 00 00 00 00 00 00 97 [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:32]Read from MH i2c: E2 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 17 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 17 00 0A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 EA [23:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:58:32]wFMCommunicate OK [23:58:32]CreateOFDProtocolMessage done [23:58:32]OFDSenderStorePacket 57913 [23:58:32]StoreOFDPacket docnum=57913 [23:58:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 F0 50 06 01 E0 16 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 A0 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 15 2F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 2F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 2F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 02 00 00 F4 03 04 00 28 07 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 39 E2 00 00 35 04 06 00 6A 36 1F 90 A5 24 DB 80 11 40 4C 2A F8 FE [23:58:32]CheckFolder [23:58:32]dirname=/storage/ofd_packets [23:58:32]CheckFolder done [23:58:32]ProducePacketName [23:58:32]name=ofd_packets/00057913 [23:58:32]NVStorageSaveData ofd_packets/00057913 [23:58:32]File name is /storage/ofd_packets/00057913 [23:58:32]Write 300 bytes [23:58:32]NVStorageSaveData done [23:58:32]OFDSenderStorePacket done [23:58:32]KKMCreateOFDPacket done [23:58:32]NVStorageSaveData kkm_last_timestamp [23:58:32]File name is /storage/kkm_last_timestamp [23:58:32]Write 4 bytes [23:58:32]NVStorageSaveData done [23:58:32]ExternCall_PrintAddStr [23:58:32]wPrintStart [23:58:32]Write to MH i2c: 01 00 00 0B 13 1E [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: 01 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: 01 07 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: 01 07 00 0B 13 00 00 00 00 00 FF 0F 33 [23:58:32]RasterBufferAndPrint [23:58:32]line Счет N : (1)543256 [23:58:32]line ИНН: 02508201610067 [23:58:32]line Контрольно-Кассовый Чек [23:58:32]line ПРОДАЖА [23:58:32]line ТРК (МРК, ГНК) : 72 [23:58:32]line Товар: 2711190000 [23:58:32]line ГАЗ-К-5 [23:58:32]line 41.010 * 34.90 [23:58:32]line = 1431.25 [23:58:32]line НДС 12% НСП 1% [23:58:32]line > о реализуемом товаре [23:58:32]line ИТОГО: 1431.25 [23:58:32]line НСП 1% : 12.67 [23:58:32]line НДС 12% : 151.99 [23:58:32]line Наличными: 0.00 [23:58:32]line Безнал.: 1431.25 [23:58:32]line Место: АЗС № 117 "Партнер Нефть" [23:58:32]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:58:32]line СНО: Общий режим [23:58:32]line Чек 740 02.06.2024 23:58 [23:58:32]line Смена: 69 ФФД: 1.0 [23:58:32]line ЗНМ: 0300000048 [23:58:32]line РНМ: 0000000000151680 [23:58:32]line Версия ККМ: v1.0 [23:58:32]line Платежная система: O! деньги [23:58:32]line ФМ: 0000000000959414 [23:58:32]line ФД: 57913 [23:58:32]line ФПД: 116780690351396 [23:58:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235832&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57913&fm=116780690351396&tin=02508201610067®Number=0000000000151680&sum=143125 [23:58:33]OFD Sender: Processing packet 57913 [packets to send 50, broken 49] [23:58:33]ProducePacketName [23:58:33]name=ofd_packets/00057913 [23:58:33]OFD Sender: To server: pG, [23:58:33]CommunicateWithHost lk.salyk.kg:30040 [23:58:33]ConnectInit lk.salyk.kg [23:58:33]written 0, free lines is 4095 [23:58:33]Connected sock=10 [23:58:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 F0 50 06 01 E0 16 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 A0 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 15 2F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 2F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 2F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 02 00 00 F4 03 04 00 28 07 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 39 E2 00 00 35 04 06 00 6A 36 1F 90 A5 24 DB 80 11 40 4C 2A F8 FE [23:58:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 CC D3 47 00 87 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 39 E2 00 00 F4 03 04 00 F7 B1 5C 66 B6 04 01 00 00 3C 26 00 7F F2 3B B8 93 [23:58:33]CommunicateWithHost err = 0 [23:58:33]CheckOFDResponse [23:58:33]1017 (14) - 77093643461234 [23:58:33]1041 (16) - 0000000000959414 [23:58:33]1040 (4) - 57913 [23:58:33]1012 (4) - 02.06.2024 17:55 [23:58:33]1206 (1) - 0 [23:58:33]OFD Sender: Remove packet 57913 [23:58:33]ProducePacketName [23:58:33]name=ofd_packets/00057913 [23:58:33]NVStorageDeleteData [23:58:33]Write to MH i2c: 01 00 00 35 13 48 [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: 01 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: 01 07 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: 01 07 00 35 13 00 00 00 00 00 C8 0C 23 [23:58:33]RasterBufferAndPrint [23:58:33]line [23:58:33]line [23:58:33]line [23:58:33]line [23:58:33]line [23:58:33]written 0, free lines is 3277 [23:58:33]MH_Cut [23:58:33]Write to MH i2c: D1 01 00 3C 13 01 21 [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: D1 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: D1 01 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: D1 01 00 3C 13 00 20 [23:58:33]Write to MH i2c: 01 00 00 3D 13 50 [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:34]OFD Sender: No OFD packet to send [23:58:34]*** Cut start [23:58:34]*** Partial cut [23:58:34]*** CUTSNS_PIN = 1 [23:58:34]*** CUTSNS_PIN = 0 [23:58:34]*** Brake cut motor [23:58:35]Read from MH i2c: 01 [23:58:35]MH_I2C_Read... [23:58:35]*** Stop cut motor [23:58:35]*** Cut end [23:58:35]Read from MH i2c: 01 07 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: 01 07 00 3D 13 00 00 00 00 00 FF 0F 65 [23:58:35]process_action close_receipt done [23:58:35]requested_data is exist [23:58:35]produce_requested_data [23:58:35]requested_item fm.sn is exist - process it [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 11 00 00 [23:58:35]Write to MH i2c: E2 08 00 3E 13 80 11 00 00 00 00 00 00 CB [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 17 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 17 00 3E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 1E [23:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:58:35]wFMCommunicate OK [23:58:35]requested_item fd.num is exist - process it [23:58:35]SAM_PROTO_GetFieldsCounters [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 13 00 00 [23:58:35]Write to MH i2c: E2 08 00 3F 13 80 13 00 00 00 00 00 00 CE [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 62 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 62 00 3F 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 39 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E4 02 00 00 5E 04 04 00 E4 02 00 00 57 04 04 00 E5 02 00 00 19 04 04 00 00 00 00 00 90 00 FD [23:58:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 39 E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E4 02 00 00 5E 04 04 00 E4 02 00 00 57 04 04 00 E5 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:58:35]wFMCommunicate OK [23:58:35]SAM_PROTO_GetFieldsCounters done [23:58:35]requested_item shift.num is exist - process it [23:58:35]requested_item shift.opened is exist - process it [23:58:35]req_shift_opened [23:58:35]FM_GetShiftState [23:58:35]SAM_PROTO_GetShiftState [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 13 01 00 [23:58:35]Write to MH i2c: E2 08 00 40 13 80 13 01 00 00 00 00 00 D0 [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 0E 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 0E 00 40 13 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 A3 [23:58:35]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:58:35]wFMCommunicate OK [23:58:35]SAM_PROTO_GetShiftState done [23:58:35]FM_GetShiftState done [23:58:35]req_shift_opened done [23:58:35]requested_item shift.open_date is exist - process it [23:58:35]req_shift_open_date [23:58:35]req_shift_open_date done [23:58:35]produce_requested_data done [23:58:35]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57913,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:58:35]process_action_free close_receipt [23:58:35]json_value_free [23:58:35]json_value_free done [23:58:35]process_json_proto returns [23:58:35]Send response to host [23:58:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57913,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:58:35]free response buf [23:58:35]execute_script done [23:58:35]execute_script returns [23:58:35]free content buf [23:58:35]Sock 8.Close socket [23:58:35]Sock 8.Thread stoped [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:35]accept exits with 9 [23:59:35]New connection [23:59:35]New thread 3066592612 created [23:59:35]Thread 3066735972 joined [23:59:35]Waiting for new connection... [23:59:35] Sock 9.Parse request [23:59:35]Sock 9.Check first char [23:59:35]Sock 9.First char is OK [23:59:35]request: POST /json_proto HTTP/1.0 [23:59:35]Method: POST [23:59:35]URL: /json_proto [23:59:35]Method is POST - this is cgi request [23:59:35]url: /json_proto [23:59:35]query_string will be loaded in cgi processing [23:59:35]execute_cgi json_proto POST (null) [23:59:35]execute_cgi path=json_proto method=POST [23:59:35]POST find Content-Length [23:59:35]Host: 172.17.60.68:8080 [23:59:35]Content-Length: 978 [23:59:35]Content-Type: application/json [23:59:35] [23:59:35]POST finish read [23:59:35]Found Content-Length = 978 [23:59:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 27.630, "sum" : 2000.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 13.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:35]execute_script... [23:59: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)543258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 27.630, "sum" : 2000.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 13.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:35]POST & json_proto [23:59:35]process_json_proto [23:59:35]json parsed OK: [23:59:35]protocol is kg_v1.0 [23:59:35]action value=close_receipt [23:59:35]process_action close_receipt [23:59:35]cmd_close_receipt [23:59:35]MH_GetDate [23:59:35]Write to MH i2c: F0 00 00 41 13 43 [23:59:35]Write i2c OK [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: F0 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: F0 09 00 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: F0 09 00 41 13 00 68 07 5D 66 8D A7 02 66 1A [23:59:35]GetLastDocTimeStamp 1717372712 [23:59:35]current date 1717372776 [23:59:35]FM_GetShiftState [23:59:35]SAM_PROTO_GetShiftState [23:59:35]wFMCommunicate request_size=4 [23:59:35]MH_SAM_APDU [23:59:35]CAPDU: 80 13 01 00 [23:59:35]Write to MH i2c: E2 08 00 42 13 80 13 01 00 00 00 00 00 D2 [23:59:35]Write i2c OK [23:59:35]MH_I2C_Read... [23:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:35]Read from MH i2c: E2 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: E2 0E 00 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: E2 0E 00 42 13 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 A5 [23:59:35]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:59:35]wFMCommunicate OK [23:59:35]SAM_PROTO_GetShiftState done [23:59:35]FM_GetShiftState done [23:59:35]opened in 1717288520 [23:59:35]opened+sec_in_day 1717374920 [23:59:35]quantity*price = 200041 [23:59:35]sum+1 = 200042 [23:59:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 741 02.06.2024 23:59 Смена: 69 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Дисконтная программа ДТ номер 117 сэкономлено 13.82 сом ФМ: 0000000000959414 ФД: 57914 ФПД: 94736497791614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235936&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57914&fm=94736497791614&tin=02508201610067®Number=0000000000151680&sum=200000 [23:59:36]StoreToDocumentArchive [23:59:36]shift 69 fd 57914 [23:59:36]save to /storage/0069/doc_00057914 [23:59:36]save last doc name /storage/0069/doc_00057914 to /storage/kkm_last_doc_name [23:59:36]save OK [23:59:36]Clear old archive folders... [23:59:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:59:36]tlvbuf is 01A32FF0 [23:59:36]SAM_PROTO_ClearQueue [23:59:36]wFMCommunicate request_size=4 [23:59:36]MH_SAM_APDU [23:59:36]CAPDU: 80 09 00 00 [23:59:36]Write to MH i2c: E2 08 00 4F 13 80 09 00 00 00 00 00 00 D4 [23:59:36]Write i2c OK [23:59:36]MH_I2C_Read... [23:59:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:36]Read from MH i2c: E2 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 03 00 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 03 00 4F 13 00 90 00 D6 [23:59:36]RAPDU: 90 00 [23:59:36]wFMCommunicate OK [23:59:36]SAM_PROTO_ClearQueue done [23:59:36]KKMCreateOFDPacket [23:59:36]OFDProtocolAddRootSTLVToBuf [23:59:36]FM_MakeSignedData [23:59:36]FM_MakeSignedData [23:59:36]SAM_PROTO_SignData [23:59:36]wFMCommunicate request_size=4 [23:59:36]MH_SAM_APDU [23:59:36]CAPDU: 80 0D 01 02 [23:59:36]Write to MH i2c: E2 08 00 50 13 80 0D 01 02 00 00 00 00 DC [23:59:36]Write i2c OK [23:59:36]MH_I2C_Read... [23:59:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:36]Read from MH i2c: E2 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 03 00 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 03 00 50 13 00 90 00 D7 [23:59:36]RAPDU: 90 00 [23:59:36]wFMCommunicate OK [23:59:36]wFMCommunicate request_size=255 [23:59:36]MH_SAM_APDU [23:59:36]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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 02 00 00 F4 03 04 00 68 07 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3A E2 00 00 35 04 06 00 56 29 8F 4C [23:59:36]Write to MH i2c: E2 02 01 51 13 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 02 00 00 F4 03 04 00 68 07 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3A E2 00 00 35 04 06 00 56 29 8F 4C 00 00 1C [23:59:36]Write i2c OK [23:59:36]MH_I2C_Read... [23:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:36]Read from MH i2c: E2 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 03 00 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 03 00 51 13 00 90 00 D8 [23:59:36]RAPDU: 90 00 [23:59:36]wFMCommunicate OK [23:59:36]wFMCommunicate request_size=7 [23:59:36]MH_SAM_APDU [23:59:36]CAPDU: 80 0D 02 02 02 52 7E [23:59:36]Write to MH i2c: E2 0A 00 52 13 80 0D 02 02 02 00 52 7E 00 00 B3 [23:59:36]Write i2c OK [23:59:36]MH_I2C_Read... [23:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:36]Read from MH i2c: E2 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 03 00 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 03 00 52 13 00 90 00 D9 [23:59:36]RAPDU: 90 00 [23:59:36]wFMCommunicate OK [23:59:36]wFMCommunicate request_size=4 [23:59:36]MH_SAM_APDU [23:59:36]CAPDU: 80 0D 03 02 [23:59:36]Write to MH i2c: E2 08 00 53 13 80 0D 03 02 00 00 00 00 E1 [23:59:36]Write i2c OK [23:59:36]MH_I2C_Read... [23:59:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:36]Read from MH i2c: E2 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 0B 00 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 0B 00 53 13 00 6D 4B A9 CA 35 A7 4E A9 90 00 E0 [23:59:36]RAPDU: 6D 4B A9 CA 35 A7 4E A9 90 00 [23:59:36]wFMCommunicate OK [23:59:36]SAM_PROTO_SignData done [23:59:36]FM_MakeSignedData done [23:59:36]CreateOFDProtocolMessage [23:59:36]wFMCommunicate request_size=4 [23:59:36]MH_SAM_APDU [23:59:36]CAPDU: 80 11 00 00 [23:59:36]Write to MH i2c: E2 08 00 54 13 80 11 00 00 00 00 00 00 E1 [23:59:36]Write i2c OK [23:59:36]MH_I2C_Read... [23:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:36]Read from MH i2c: E2 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 17 00 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 17 00 54 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 34 [23:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:59:36]wFMCommunicate OK [23:59:36]CreateOFDProtocolMessage done [23:59:36]OFDSenderStorePacket 57914 [23:59:36]StoreOFDPacket docnum=57914 [23:59:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 73 39 04 01 11 E2 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 02 00 00 F4 03 04 00 68 07 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3A E2 00 00 35 04 06 00 56 29 8F 4C 52 7E 6D 4B A9 CA 35 A7 4E A9 [23:59:36]CheckFolder [23:59:36]dirname=/storage/ofd_packets [23:59:36]CheckFolder done [23:59:36]ProducePacketName [23:59:36]name=ofd_packets/00057914 [23:59:36]NVStorageSaveData ofd_packets/00057914 [23:59:36]File name is /storage/ofd_packets/00057914 [23:59:36]Write 298 bytes [23:59:36]NVStorageSaveData done [23:59:36]OFDSenderStorePacket done [23:59:36]KKMCreateOFDPacket done [23:59:36]NVStorageSaveData kkm_last_timestamp [23:59:36]File name is /storage/kkm_last_timestamp [23:59:36]Write 4 bytes [23:59:36]NVStorageSaveData done [23:59:36]ExternCall_PrintAddStr [23:59:36]wPrintStart [23:59:36]Write to MH i2c: 01 00 00 55 13 68 [23:59:36]Write i2c OK [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: 01 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: 01 07 00 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: 01 07 00 55 13 00 00 00 00 00 FF 0F 7D [23:59:36]RasterBufferAndPrint [23:59:36]line Счет N : (1)543258 [23:59:36]line ИНН: 02508201610067 [23:59:36]line Контрольно-Кассовый Чек [23:59:36]line ПРОДАЖА [23:59:36]line ТРК (МРК, ГНК) : 21 [23:59:36]line Товар: 2710194210 [23:59:36]line ДТ-К-5 [23:59:36]line 27.630 * 72.40 [23:59:36]line = 2000.41 [23:59:36]line НДС 12% НСП 1% [23:59:36]line > о реализуемом товаре [23:59:36]line ОКРУГЛЕНИЕ: -0.41 [23:59:36]line ИТОГО: 2000.00 [23:59:36]line Внесено: 2000.00 [23:59:36]line СДАЧА: 0.00 [23:59:36]line НСП 1% : 17.70 [23:59:36]line НДС 12% : 212.43 [23:59:36]line Наличными: 2000.00 [23:59:36]line Безнал.: 0.00 [23:59:36]line Место: АЗС № 117 "Партнер Нефть" [23:59:36]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [23:59:36]line СНО: Общий режим [23:59:36]line Чек 741 02.06.2024 23:59 [23:59:36]line Смена: 69 ФФД: 1.0 [23:59:36]line ЗНМ: 0300000048 [23:59:36]line РНМ: 0000000000151680 [23:59:36]line Версия ККМ: v1.0 [23:59:36]line [23:59:36]line Дисконтная программа [23:59:36]line ДТ [23:59:36]line номер 117 [23:59:36]line сэкономлено 13.82 сом [23:59:36]line ФМ: 0000000000959414 [23:59:36]line ФД: 57914 [23:59:37]line ФПД: 94736497791614 [23:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235936&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57914&fm=94736497791614&tin=02508201610067®Number=0000000000151680&sum=200000 [23:59:37]OFD Sender: Processing packet 57914 [packets to send 50, broken 49] [23:59:37]ProducePacketName [23:59:37]name=ofd_packets/00057914 [23:59:37]OFD Sender: To server: pG, [23:59:37]CommunicateWithHost lk.salyk.kg:30040 [23:59:37]ConnectInit lk.salyk.kg [23:59:37]written 0, free lines is 4095 [23:59:37]Connected sock=10 [23:59:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 73 39 04 01 11 E2 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 02 00 00 F4 03 04 00 68 07 5D 66 0E 04 04 00 45 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3A E2 00 00 35 04 06 00 56 29 8F 4C 52 7E 6D 4B A9 CA 35 A7 4E A9 [23:59:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 E1 8F 47 00 16 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3A E2 00 00 F4 03 04 00 37 B2 5C 66 B6 04 01 00 00 71 32 2A 64 78 EB ED 94 [23:59:37]CommunicateWithHost err = 0 [23:59:37]CheckOFDResponse [23:59:37]1017 (14) - 77093643461234 [23:59:37]1041 (16) - 0000000000959414 [23:59:37]1040 (4) - 57914 [23:59:37]1012 (4) - 02.06.2024 17:56 [23:59:37]1206 (1) - 0 [23:59:37]OFD Sender: Remove packet 57914 [23:59:37]ProducePacketName [23:59:37]name=ofd_packets/00057914 [23:59:37]NVStorageDeleteData [23:59:37]Write to MH i2c: 01 00 00 85 13 98 [23:59:37]Write i2c OK [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: 01 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: 01 07 00 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: 01 07 00 85 13 00 00 00 00 00 42 0C ED [23:59:37]RasterBufferAndPrint [23:59:37]line [23:59:37]line [23:59:37]line [23:59:37]line [23:59:37]line [23:59:37]written 0, free lines is 3143 [23:59:37]MH_Cut [23:59:37]Write to MH i2c: D1 01 00 8C 13 01 71 [23:59:37]Write i2c OK [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: D1 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: D1 01 00 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: D1 01 00 8C 13 00 70 [23:59:37]Write to MH i2c: 01 00 00 8D 13 A0 [23:59:37]Write i2c OK [23:59:37]MH_I2C_Read... [23:59:38]OFD Sender: No OFD packet to send [23:59:38]*** Cut start [23:59:38]*** Partial cut [23:59:38]*** CUTSNS_PIN = 1 [23:59:38]*** CUTSNS_PIN = 0 [23:59:39]*** Brake cut motor [23:59:39]Read from MH i2c: 01 [23:59:39]MH_I2C_Read... [23:59:39]*** Stop cut motor [23:59:39]*** Cut end [23:59:39]Read from MH i2c: 01 07 00 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: 01 07 00 8D 13 00 00 00 00 00 FF 0F B5 [23:59:39]process_action close_receipt done [23:59:39]requested_data is exist [23:59:39]produce_requested_data [23:59:39]requested_item fm.sn is exist - process it [23:59:39]wFMCommunicate request_size=4 [23:59:39]MH_SAM_APDU [23:59:39]CAPDU: 80 11 00 00 [23:59:39]Write to MH i2c: E2 08 00 8E 13 80 11 00 00 00 00 00 00 1B [23:59:39]Write i2c OK [23:59:39]MH_I2C_Read... [23:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:39]Read from MH i2c: E2 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: E2 17 00 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: E2 17 00 8E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 6E [23:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [23:59:39]wFMCommunicate OK [23:59:39]requested_item fd.num is exist - process it [23:59:39]SAM_PROTO_GetFieldsCounters [23:59:39]wFMCommunicate request_size=4 [23:59:39]MH_SAM_APDU [23:59:39]CAPDU: 80 13 00 00 [23:59:39]Write to MH i2c: E2 08 00 8F 13 80 13 00 00 00 00 00 00 1E [23:59:39]Write i2c OK [23:59:39]MH_I2C_Read... [23:59:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:39]Read from MH i2c: E2 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: E2 62 00 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: E2 62 00 8F 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E5 02 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E6 02 00 00 19 04 04 00 00 00 00 00 90 00 51 [23:59:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E5 02 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E6 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:39]wFMCommunicate OK [23:59:39]SAM_PROTO_GetFieldsCounters done [23:59:39]requested_item shift.num is exist - process it [23:59:39]requested_item shift.opened is exist - process it [23:59:39]req_shift_opened [23:59:39]FM_GetShiftState [23:59:39]SAM_PROTO_GetShiftState [23:59:39]wFMCommunicate request_size=4 [23:59:39]MH_SAM_APDU [23:59:39]CAPDU: 80 13 01 00 [23:59:39]Write to MH i2c: E2 08 00 90 13 80 13 01 00 00 00 00 00 20 [23:59:39]Write i2c OK [23:59:39]MH_I2C_Read... [23:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:39]Read from MH i2c: E2 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: E2 0E 00 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: E2 0E 00 90 13 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 F3 [23:59:39]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [23:59:39]wFMCommunicate OK [23:59:39]SAM_PROTO_GetShiftState done [23:59:39]FM_GetShiftState done [23:59:39]req_shift_opened done [23:59:39]requested_item shift.open_date is exist - process it [23:59:39]req_shift_open_date [23:59:39]req_shift_open_date done [23:59:39]produce_requested_data done [23:59:39]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57914,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [23:59:39]process_action_free close_receipt [23:59:39]json_value_free [23:59:39]json_value_free done [23:59:39]process_json_proto returns [23:59:39]Send response to host [23:59:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57914,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [23:59:39]free response buf [23:59:39]execute_script done [23:59:39]execute_script returns [23:59:39]free content buf [23:59:39]Sock 9.Close socket [23:59:39]Sock 9.Thread stoped [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:48]accept exits with 8 [00:00:48]New connection [00:00:48]New thread 3066735972 created [00:00:48]Thread 3066592612 joined [00:00:48]Waiting for new connection... [00:00:48] Sock 8.Parse request [00:00:48]Sock 8.Check first char [00:00:48]Sock 8.First char is OK [00:00:48]request: POST /json_proto HTTP/1.0 [00:00:48]Method: POST [00:00:48]URL: /json_proto [00:00:48]Method is POST - this is cgi request [00:00:48]url: /json_proto [00:00:48]query_string will be loaded in cgi processing [00:00:48]execute_cgi json_proto POST (null) [00:00:48]execute_cgi path=json_proto method=POST [00:00:48]POST find Content-Length [00:00:48]Host: 172.17.60.68:8080 [00:00:48]Content-Length: 215 [00:00:48]Content-Type: application/json [00:00:48] [00:00:48]POST finish read [00:00:48]Found Content-Length = 215 [00:00:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:48]execute_script... [00:00:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:48]POST & json_proto [00:00:48]process_json_proto [00:00:48]json parsed OK: [00:00:48]protocol is kg_v1.0 [00:00:48]action value=get_value [00:00:48]process_action get_value [00:00:48]cmd_get_value [00:00:48]process_action get_value done [00:00:48]requested_data is exist [00:00:48]produce_requested_data [00:00:48]requested_item kkm.sn is exist - process it [00:00:48]requested_item kkm.ver is exist - process it [00:00:48]requested_item fm.sn is exist - process it [00:00:48]wFMCommunicate request_size=4 [00:00:48]MH_SAM_APDU [00:00:48]CAPDU: 80 11 00 00 [00:00:48]Write to MH i2c: E2 08 00 91 13 80 11 00 00 00 00 00 00 1E [00:00:48]Write i2c OK [00:00:48]MH_I2C_Read... [00:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:48]Read from MH i2c: E2 [00:00:48]MH_I2C_Read... [00:00:48]Read from MH i2c: E2 17 00 [00:00:48]MH_I2C_Read... [00:00:48]Read from MH i2c: E2 17 00 91 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 71 [00:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:00:48]wFMCommunicate OK [00:00:48]requested_item fd.num is exist - process it [00:00:48]SAM_PROTO_GetFieldsCounters [00:00:48]wFMCommunicate request_size=4 [00:00:48]MH_SAM_APDU [00:00:48]CAPDU: 80 13 00 00 [00:00:48]Write to MH i2c: E2 08 00 92 13 80 13 00 00 00 00 00 00 21 [00:00:48]Write i2c OK [00:00:48]MH_I2C_Read... [00:00:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:48]Read from MH i2c: E2 [00:00:48]MH_I2C_Read... [00:00:48]Read from MH i2c: E2 62 00 [00:00:48]MH_I2C_Read... [00:00:48]Read from MH i2c: E2 62 00 92 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E5 02 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E6 02 00 00 19 04 04 00 00 00 00 00 90 00 54 [00:00:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E5 02 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E6 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:48]wFMCommunicate OK [00:00:48]SAM_PROTO_GetFieldsCounters done [00:00:48]requested_item shift.num is exist - process it [00:00:48]requested_item shift.opened is exist - process it [00:00:48]req_shift_opened [00:00:48]FM_GetShiftState [00:00:48]SAM_PROTO_GetShiftState [00:00:48]wFMCommunicate request_size=4 [00:00:48]MH_SAM_APDU [00:00:48]CAPDU: 80 13 01 00 [00:00:48]Write to MH i2c: E2 08 00 93 13 80 13 01 00 00 00 00 00 23 [00:00:48]Write i2c OK [00:00:48]MH_I2C_Read... [00:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:48]Read from MH i2c: E2 [00:00:48]MH_I2C_Read... [00:00:48]Read from MH i2c: E2 0E 00 [00:00:48]MH_I2C_Read... [00:00:48]Read from MH i2c: E2 0E 00 93 13 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 F6 [00:00:48]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [00:00:48]wFMCommunicate OK [00:00:48]SAM_PROTO_GetShiftState done [00:00:48]FM_GetShiftState done [00:00:48]req_shift_opened done [00:00:48]requested_item shift.open_date is exist - process it [00:00:48]req_shift_open_date [00:00:48]req_shift_open_date done [00:00:48]produce_requested_data done [00:00:48]produce_requested_data return {"kkm.sn":"0300000048","kkm.ver":"v1.0","fm.sn":"0000000000959414","fd.num":57914,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [00:00:48]process_action_free get_value [00:00:48]json_value_free [00:00:48]json_value_free done [00:00:48]process_json_proto returns [00:00:48]Send response to host [00:00:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000048","kkm.ver":"v1.0","fm.sn":"0000000000959414","fd.num":57914,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [00:00:48]free response buf [00:00:48]execute_script done [00:00:48]execute_script returns [00:00:48]free content buf [00:00:48]Sock 8.Close socket [00:00:48]Sock 8.Thread stoped [00:00:48]accept exits with 10 [00:00:48]New connection [00:00:48]New thread 3066592612 created [00:00:48]Thread 3066735972 joined [00:00:48]Waiting for new connection... [00:00:48] Sock 10.Parse request [00:00:48]Sock 10.Check first char [00:00:48]Sock 10.First char is OK [00:00:48]request: POST /json_proto HTTP/1.0 [00:00:48]Method: POST [00:00:48]URL: /json_proto [00:00:48]Method is POST - this is cgi request [00:00:48]url: /json_proto [00:00:48]query_string will be loaded in cgi processing [00:00:48]execute_cgi json_proto POST (null) [00:00:48]execute_cgi path=json_proto method=POST [00:00:48]POST find Content-Length [00:00:48]Host: 172.17.60.68:8080 [00:00:48]Content-Length: 331 [00:00:48]Content-Type: application/json [00:00:48] [00:00:48]POST finish read [00:00:48]Found Content-Length = 331 [00:00:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:48]execute_script... [00:00:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:48]POST & json_proto [00:00:48]process_json_proto [00:00:48]json parsed OK: [00:00:48]protocol is kg_v1.0 [00:00:48]action value=get_value [00:00:48]process_action get_value [00:00:48]cmd_get_value [00:00:48]process_action get_value done [00:00:48]requested_data is exist [00:00:48]produce_requested_data [00:00:48]requested_item fm.sale.total is exist - process it [00:00:48]SAM_PROTO_GetFMData [00:00:48]wFMCommunicate request_size=4 [00:00:48]MH_SAM_APDU [00:00:48]CAPDU: 80 13 03 00 [00:00:48]Write to MH i2c: E2 08 00 94 13 80 13 03 00 00 00 00 00 26 [00:00:48]Write i2c OK [00:00:48]MH_I2C_Read... [00:00:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:49]Read from MH i2c: E2 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 FD 00 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 FD 00 94 13 00 C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 EC [00:00:49]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 [00:00:49]wFMCommunicate OK [00:00:49]wFMCommunicate request_size=4 [00:00:49]MH_SAM_APDU [00:00:49]CAPDU: 80 17 00 00 [00:00:49]Write to MH i2c: E2 08 00 95 13 80 17 00 00 00 00 00 00 28 [00:00:49]Write i2c OK [00:00:49]MH_I2C_Read... [00:00:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:49]Read from MH i2c: E2 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 FD 00 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 FD 00 95 13 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5F [00:00:49]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:49]wFMCommunicate OK [00:00:49]wFMCommunicate request_size=4 [00:00:49]MH_SAM_APDU [00:00:49]CAPDU: 80 17 00 00 [00:00:49]Write to MH i2c: E2 08 00 96 13 80 17 00 00 00 00 00 00 29 [00:00:49]Write i2c OK [00:00:49]MH_I2C_Read... [00:00:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:49]Read from MH i2c: E2 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 FD 00 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 FD 00 96 13 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3B [00:00:49]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:49]wFMCommunicate OK [00:00:49]wFMCommunicate request_size=4 [00:00:49]MH_SAM_APDU [00:00:49]CAPDU: 80 17 00 00 [00:00:49]Write to MH i2c: E2 08 00 97 13 80 17 00 00 00 00 00 00 2A [00:00:49]Write i2c OK [00:00:49]MH_I2C_Read... [00:00:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:50]Read from MH i2c: E2 [00:00:50]MH_I2C_Read... [00:00:50]Read from MH i2c: E2 FD 00 [00:00:50]MH_I2C_Read... [00:00:50]Read from MH i2c: E2 FD 00 97 13 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B6 [00:00:50]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:50]wFMCommunicate OK [00:00:50]wFMCommunicate request_size=4 [00:00:50]MH_SAM_APDU [00:00:50]CAPDU: 80 17 00 00 [00:00:50]Write to MH i2c: E2 08 00 98 13 80 17 00 00 00 00 00 00 2B [00:00:50]Write i2c OK [00:00:50]MH_I2C_Read... [00:00:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:00:50]Read from MH i2c: E2 [00:00:50]MH_I2C_Read... [00:00:50]Read from MH i2c: E2 E2 00 [00:00:50]MH_I2C_Read... [00:00:50]Read from MH i2c: E2 E2 00 98 13 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 09 [00:00:50]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:50]wFMCommunicate OK [00:00:50]SAM_PROTO_GetFMData done [00:00:50]requested_item fm.sale_refund.total is exist - process it [00:00:50]requested_item fm.buy.total is exist - process it [00:00:50]requested_item shift.sale.total is exist - process it [00:00:50]SAM_PROTO_GetShiftData [00:00:50]wFMCommunicate request_size=4 [00:00:50]MH_SAM_APDU [00:00:50]CAPDU: 80 13 02 00 [00:00:50]Write to MH i2c: E2 08 00 99 13 80 13 02 00 00 00 00 00 2A [00:00:50]Write i2c OK [00:00:50]MH_I2C_Read... [00:00:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:50]Read from MH i2c: E2 [00:00:50]MH_I2C_Read... [00:00:50]Read from MH i2c: E2 FD 00 [00:00:50]MH_I2C_Read... [00:00:50]Read from MH i2c: E2 FD 00 99 13 00 BC 04 AA 04 B8 04 6E 04 04 00 E5 02 00 00 69 04 9F 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 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 0C 50 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 05 F1 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 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 8E [00:00:50]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 E5 02 00 00 69 04 9F 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 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 0C 50 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 05 F1 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 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:00:50]wFMCommunicate OK [00:00:50]wFMCommunicate request_size=4 [00:00:50]MH_SAM_APDU [00:00:50]CAPDU: 80 17 00 00 [00:00:50]Write to MH i2c: E2 08 00 9A 13 80 17 00 00 00 00 00 00 2D [00:00:50]Write i2c OK [00:00:50]MH_I2C_Read... [00:00:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:51]Read from MH i2c: E2 [00:00:51]MH_I2C_Read... [00:00:51]Read from MH i2c: E2 FD 00 [00:00:51]MH_I2C_Read... [00:00:51]Read from MH i2c: E2 FD 00 9A 13 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 43 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [00:00:51]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 43 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:51]wFMCommunicate OK [00:00:51]wFMCommunicate request_size=4 [00:00:51]MH_SAM_APDU [00:00:51]CAPDU: 80 17 00 00 [00:00:51]Write to MH i2c: E2 08 00 9B 13 80 17 00 00 00 00 00 00 2E [00:00:51]Write i2c OK [00:00:51]MH_I2C_Read... [00:00:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:51]Read from MH i2c: E2 [00:00:51]MH_I2C_Read... [00:00:51]Read from MH i2c: E2 FD 00 [00:00:51]MH_I2C_Read... [00:00:51]Read from MH i2c: E2 FD 00 9B 13 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [00:00:51]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:00:51]wFMCommunicate OK [00:00:51]wFMCommunicate request_size=4 [00:00:51]MH_SAM_APDU [00:00:51]CAPDU: 80 17 00 00 [00:00:51]Write to MH i2c: E2 08 00 9C 13 80 17 00 00 00 00 00 00 2F [00:00:51]Write i2c OK [00:00:51]MH_I2C_Read... [00:00:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:51]Read from MH i2c: E2 [00:00:51]MH_I2C_Read... [00:00:51]Read from MH i2c: E2 FD 00 [00:00:51]MH_I2C_Read... [00:00:51]Read from MH i2c: E2 FD 00 9C 13 00 03 00 00 EF 03 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 90 00 B0 [00:00:51]RAPDU: 03 00 00 EF 03 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 90 00 [00:00:51]wFMCommunicate OK [00:00:51]wFMCommunicate request_size=4 [00:00:51]MH_SAM_APDU [00:00:51]CAPDU: 80 17 00 00 [00:00:51]Write to MH i2c: E2 08 00 9D 13 80 17 00 00 00 00 00 00 30 [00:00:51]Write i2c OK [00:00:51]MH_I2C_Read... [00:00:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:00:52]Read from MH i2c: E2 [00:00:52]MH_I2C_Read... [00:00:52]Read from MH i2c: E2 D9 00 [00:00:52]MH_I2C_Read... [00:00:52]Read from MH i2c: E2 D9 00 9D 13 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F [00:00:52]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:52]wFMCommunicate OK [00:00:52]SAM_PROTO_GetShiftData done [00:00:52]requested_item shift.sale.total_cash is exist - process it [00:00:52]requested_item shift.sale_refund.total is exist - process it [00:00:52]requested_item shift.sale_refund.total_cash is exist - process it [00:00:52]requested_item shift.buy.total is exist - process it [00:00:52]requested_item shift.buy.total_cash is exist - process it [00:00:52]produce_requested_data done [00:00:52]produce_requested_data return {"fm.sale.total":53016243.51,"fm.sale_refund.total":697985.00,"fm.buy.total":0.00,"shift.sale.total":662058.09,"shift.sale.total_cash":479888.00,"shift.sale_refund.total":2100.00,"shift.sale_refund.total_cash":2100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:00:52]process_action_free get_value [00:00:52]json_value_free [00:00:52]json_value_free done [00:00:52]process_json_proto returns [00:00:52]Send response to host [00:00:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":53016243.51,"fm.sale_refund.total":697985.00,"fm.buy.total":0.00,"shift.sale.total":662058.09,"shift.sale.total_cash":479888.00,"shift.sale_refund.total":2100.00,"shift.sale_refund.total_cash":2100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:00:52]free response buf [00:00:52]execute_script done [00:00:52]execute_script returns [00:00:52]free content buf [00:00:52]Sock 10.Close socket [00:00:52]Sock 10.Thread stoped [00:00:52]accept exits with 8 [00:00:52]New connection [00:00:52]New thread 3066735972 created [00:00:52]Thread 3066592612 joined [00:00:52]Waiting for new connection... [00:00:52] Sock 8.Parse request [00:00:52]Sock 8.Check first char [00:00:52]Sock 8.First char is OK [00:00:52]request: POST /json_proto HTTP/1.0 [00:00:52]Method: POST [00:00:52]URL: /json_proto [00:00:52]Method is POST - this is cgi request [00:00:52]url: /json_proto [00:00:52]query_string will be loaded in cgi processing [00:00:52]execute_cgi json_proto POST (null) [00:00:52]execute_cgi path=json_proto method=POST [00:00:52]POST find Content-Length [00:00:52]Host: 172.17.60.68:8080 [00:00:52]Content-Length: 331 [00:00:52]Content-Type: application/json [00:00:52] [00:00:52]POST finish read [00:00:52]Found Content-Length = 331 [00:00:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:52]execute_script... [00:00:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:52]POST & json_proto [00:00:52]process_json_proto [00:00:52]json parsed OK: [00:00:52]protocol is kg_v1.0 [00:00:52]action value=get_value [00:00:52]process_action get_value [00:00:52]cmd_get_value [00:00:52]process_action get_value done [00:00:52]requested_data is exist [00:00:52]produce_requested_data [00:00:52]requested_item fm.sale.total is exist - process it [00:00:52]SAM_PROTO_GetFMData [00:00:52]wFMCommunicate request_size=4 [00:00:52]MH_SAM_APDU [00:00:52]CAPDU: 80 13 03 00 [00:00:52]Write to MH i2c: E2 08 00 9E 13 80 13 03 00 00 00 00 00 30 [00:00:52]Write i2c OK [00:00:52]MH_I2C_Read... [00:00:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:52]Read from MH i2c: E2 [00:00:52]MH_I2C_Read... [00:00:52]Read from MH i2c: E2 FD 00 [00:00:52]MH_I2C_Read... [00:00:52]Read from MH i2c: E2 FD 00 9E 13 00 C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 F6 [00:00:52]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 [00:00:52]wFMCommunicate OK [00:00:52]wFMCommunicate request_size=4 [00:00:52]MH_SAM_APDU [00:00:52]CAPDU: 80 17 00 00 [00:00:52]Write to MH i2c: E2 08 00 9F 13 80 17 00 00 00 00 00 00 32 [00:00:52]Write i2c OK [00:00:52]MH_I2C_Read... [00:00:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:53]Read from MH i2c: E2 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 FD 00 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 FD 00 9F 13 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 69 [00:00:53]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:53]wFMCommunicate OK [00:00:53]wFMCommunicate request_size=4 [00:00:53]MH_SAM_APDU [00:00:53]CAPDU: 80 17 00 00 [00:00:53]Write to MH i2c: E2 08 00 A0 13 80 17 00 00 00 00 00 00 33 [00:00:53]Write i2c OK [00:00:53]MH_I2C_Read... [00:00:53]OFD Sender: No OFD packet to send [00:00:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:53]Read from MH i2c: E2 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 FD 00 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 FD 00 A0 13 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 45 [00:00:53]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:53]wFMCommunicate OK [00:00:53]wFMCommunicate request_size=4 [00:00:53]MH_SAM_APDU [00:00:53]CAPDU: 80 17 00 00 [00:00:53]Write to MH i2c: E2 08 00 A1 13 80 17 00 00 00 00 00 00 34 [00:00:53]Write i2c OK [00:00:53]MH_I2C_Read... [00:00:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:53]Read from MH i2c: E2 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 FD 00 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 FD 00 A1 13 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C0 [00:00:53]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:53]wFMCommunicate OK [00:00:53]wFMCommunicate request_size=4 [00:00:53]MH_SAM_APDU [00:00:53]CAPDU: 80 17 00 00 [00:00:53]Write to MH i2c: E2 08 00 A2 13 80 17 00 00 00 00 00 00 35 [00:00:53]Write i2c OK [00:00:53]MH_I2C_Read... [00:00:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:00:54]Read from MH i2c: E2 [00:00:54]MH_I2C_Read... [00:00:54]Read from MH i2c: E2 E2 00 [00:00:54]MH_I2C_Read... [00:00:54]Read from MH i2c: E2 E2 00 A2 13 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 13 [00:00:54]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:54]wFMCommunicate OK [00:00:54]SAM_PROTO_GetFMData done [00:00:54]requested_item fm.sale_refund.total is exist - process it [00:00:54]requested_item fm.buy.total is exist - process it [00:00:54]requested_item shift.sale.total is exist - process it [00:00:54]SAM_PROTO_GetShiftData [00:00:54]wFMCommunicate request_size=4 [00:00:54]MH_SAM_APDU [00:00:54]CAPDU: 80 13 02 00 [00:00:54]Write to MH i2c: E2 08 00 A3 13 80 13 02 00 00 00 00 00 34 [00:00:54]Write i2c OK [00:00:54]MH_I2C_Read... [00:00:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:54]Read from MH i2c: E2 [00:00:54]MH_I2C_Read... [00:00:54]Read from MH i2c: E2 FD 00 [00:00:54]MH_I2C_Read... [00:00:54]Read from MH i2c: E2 FD 00 A3 13 00 BC 04 AA 04 B8 04 6E 04 04 00 E5 02 00 00 69 04 9F 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 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 0C 50 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 05 F1 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 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 98 [00:00:54]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 E5 02 00 00 69 04 9F 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 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 0C 50 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 05 F1 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 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:00:54]wFMCommunicate OK [00:00:54]wFMCommunicate request_size=4 [00:00:54]MH_SAM_APDU [00:00:54]CAPDU: 80 17 00 00 [00:00:54]Write to MH i2c: E2 08 00 A4 13 80 17 00 00 00 00 00 00 37 [00:00:54]Write i2c OK [00:00:54]MH_I2C_Read... [00:00:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:55]Read from MH i2c: E2 [00:00:55]MH_I2C_Read... [00:00:55]Read from MH i2c: E2 FD 00 [00:00:55]MH_I2C_Read... [00:00:55]Read from MH i2c: E2 FD 00 A4 13 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 43 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2B [00:00:55]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 43 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:55]wFMCommunicate OK [00:00:55]wFMCommunicate request_size=4 [00:00:55]MH_SAM_APDU [00:00:55]CAPDU: 80 17 00 00 [00:00:55]Write to MH i2c: E2 08 00 A5 13 80 17 00 00 00 00 00 00 38 [00:00:55]Write i2c OK [00:00:55]MH_I2C_Read... [00:00:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:55]Read from MH i2c: E2 [00:00:55]MH_I2C_Read... [00:00:55]Read from MH i2c: E2 FD 00 [00:00:55]MH_I2C_Read... [00:00:55]Read from MH i2c: E2 FD 00 A5 13 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [00:00:55]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:00:55]wFMCommunicate OK [00:00:55]wFMCommunicate request_size=4 [00:00:55]MH_SAM_APDU [00:00:55]CAPDU: 80 17 00 00 [00:00:55]Write to MH i2c: E2 08 00 A6 13 80 17 00 00 00 00 00 00 39 [00:00:55]Write i2c OK [00:00:55]MH_I2C_Read... [00:00:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:56]Read from MH i2c: E2 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 FD 00 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 FD 00 A6 13 00 03 00 00 EF 03 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 90 00 BA [00:00:56]RAPDU: 03 00 00 EF 03 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 90 00 [00:00:56]wFMCommunicate OK [00:00:56]wFMCommunicate request_size=4 [00:00:56]MH_SAM_APDU [00:00:56]CAPDU: 80 17 00 00 [00:00:56]Write to MH i2c: E2 08 00 A7 13 80 17 00 00 00 00 00 00 3A [00:00:56]Write i2c OK [00:00:56]MH_I2C_Read... [00:00:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:00:56]Read from MH i2c: E2 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 D9 00 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 D9 00 A7 13 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 19 [00:00:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:56]wFMCommunicate OK [00:00:56]SAM_PROTO_GetShiftData done [00:00:56]requested_item shift.sale.total_cash is exist - process it [00:00:56]requested_item shift.sale_refund.total is exist - process it [00:00:56]requested_item shift.sale_refund.total_cash is exist - process it [00:00:56]requested_item shift.buy.total is exist - process it [00:00:56]requested_item shift.buy.total_cash is exist - process it [00:00:56]produce_requested_data done [00:00:56]produce_requested_data return {"fm.sale.total":53016243.51,"fm.sale_refund.total":697985.00,"fm.buy.total":0.00,"shift.sale.total":662058.09,"shift.sale.total_cash":479888.00,"shift.sale_refund.total":2100.00,"shift.sale_refund.total_cash":2100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:00:56]process_action_free get_value [00:00:56]json_value_free [00:00:56]json_value_free done [00:00:56]process_json_proto returns [00:00:56]Send response to host [00:00:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":53016243.51,"fm.sale_refund.total":697985.00,"fm.buy.total":0.00,"shift.sale.total":662058.09,"shift.sale.total_cash":479888.00,"shift.sale_refund.total":2100.00,"shift.sale_refund.total_cash":2100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:00:56]free response buf [00:00:56]execute_script done [00:00:56]execute_script returns [00:00:56]free content buf [00:00:56]Sock 8.Close socket [00:00:56]Sock 8.Thread stoped [00:00:56]accept exits with 9 [00:00:56]New connection [00:00:56]New thread 3066592612 created [00:00:56]Thread 3066735972 joined [00:00:56]Waiting for new connection... [00:00:56] Sock 9.Parse request [00:00:56]Sock 9.Check first char [00:00:56]Sock 9.First char is OK [00:00:56]request: POST /json_proto HTTP/1.0 [00:00:56]Method: POST [00:00:56]URL: /json_proto [00:00:56]Method is POST - this is cgi request [00:00:56]url: /json_proto [00:00:56]query_string will be loaded in cgi processing [00:00:56]execute_cgi json_proto POST (null) [00:00:56]execute_cgi path=json_proto method=POST [00:00:56]POST find Content-Length [00:00:56]Host: 172.17.60.68:8080 [00:00:56]Content-Length: 280 [00:00:56]Content-Type: application/json [00:00:56] [00:00:56]POST finish read [00:00:56]Found Content-Length = 280 [00:00:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:56]execute_script... [00:00:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:56]POST & json_proto [00:00:56]process_json_proto [00:00:56]json parsed OK: [00:00:56]protocol is kg_v1.0 [00:00:56]action value=x_report [00:00:56]process_action x_report [00:00:56]cmd_x_report [00:00:56]MH_GetDate [00:00:56]Write to MH i2c: F0 00 00 A8 13 AA [00:00:56]Write i2c OK [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: F0 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: F0 09 00 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: F0 09 00 A8 13 00 B9 07 5D 66 8D A7 02 66 D2 [00:00:56]GetLastDocTimeStamp 1717372776 [00:00:56]current date 1717372857 [00:00:56]FM_GetShiftState [00:00:56]SAM_PROTO_GetShiftState [00:00:56]wFMCommunicate request_size=4 [00:00:56]MH_SAM_APDU [00:00:56]CAPDU: 80 13 01 00 [00:00:56]Write to MH i2c: E2 08 00 A9 13 80 13 01 00 00 00 00 00 39 [00:00:56]Write i2c OK [00:00:56]MH_I2C_Read... [00:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:56]Read from MH i2c: E2 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 0E 00 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 0E 00 A9 13 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 0C [00:00:56]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [00:00:56]wFMCommunicate OK [00:00:56]SAM_PROTO_GetShiftState done [00:00:56]FM_GetShiftState done [00:00:56]KKMCreateXReportDocument [00:00:56]Load OK [00:00:56]Malloc new data [00:00:56]MH_GetDate [00:00:56]Write to MH i2c: F0 00 00 AA 13 AC [00:00:56]Write i2c OK [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: F0 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: F0 09 00 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: F0 09 00 AA 13 00 B9 07 5D 66 8D A7 02 66 D4 [00:00:56]Malloc new data [00:00:56]Malloc new data [00:00:56]wFMCommunicate request_size=4 [00:00:56]MH_SAM_APDU [00:00:56]CAPDU: 80 11 00 00 [00:00:56]Write to MH i2c: E2 08 00 AB 13 80 11 00 00 00 00 00 00 38 [00:00:56]Write i2c OK [00:00:56]MH_I2C_Read... [00:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:56]Read from MH i2c: E2 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 17 00 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 17 00 AB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 8B [00:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:00:56]wFMCommunicate OK [00:00:56]SAM_PROTO_GetFieldsCounters [00:00:56]wFMCommunicate request_size=4 [00:00:56]MH_SAM_APDU [00:00:56]CAPDU: 80 13 00 00 [00:00:56]Write to MH i2c: E2 08 00 AC 13 80 13 00 00 00 00 00 00 3B [00:00:56]Write i2c OK [00:00:56]MH_I2C_Read... [00:00:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:56]Read from MH i2c: E2 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 62 00 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 62 00 AC 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E5 02 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E6 02 00 00 19 04 04 00 00 00 00 00 90 00 6E [00:00:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E5 02 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E6 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:57]wFMCommunicate OK [00:00:57]SAM_PROTO_GetFieldsCounters done [00:00:57]Malloc new data [00:00:57]Malloc new data [00:00:57]Malloc new data [00:00:57]KKMCreateXReportDocument OK [00:00:57]KKMSetXReportData OK [00:00:57]KKMPrepareXReportFMData [00:00:57]SAM_PROTO_GetShiftData [00:00:57]wFMCommunicate request_size=4 [00:00:57]MH_SAM_APDU [00:00:57]CAPDU: 80 13 02 00 [00:00:57]Write to MH i2c: E2 08 00 AD 13 80 13 02 00 00 00 00 00 3E [00:00:57]Write i2c OK [00:00:57]MH_I2C_Read... [00:00:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:57]Read from MH i2c: E2 [00:00:57]MH_I2C_Read... [00:00:57]Read from MH i2c: E2 FD 00 [00:00:57]MH_I2C_Read... [00:00:57]Read from MH i2c: E2 FD 00 AD 13 00 BC 04 AA 04 B8 04 6E 04 04 00 E5 02 00 00 69 04 9F 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 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 0C 50 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 05 F1 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 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 A2 [00:00:57]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 E5 02 00 00 69 04 9F 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 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 0C 50 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 05 F1 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 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:00:57]wFMCommunicate OK [00:00:57]wFMCommunicate request_size=4 [00:00:57]MH_SAM_APDU [00:00:57]CAPDU: 80 17 00 00 [00:00:57]Write to MH i2c: E2 08 00 AE 13 80 17 00 00 00 00 00 00 41 [00:00:57]Write i2c OK [00:00:57]MH_I2C_Read... [00:00:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:57]Read from MH i2c: E2 [00:00:57]MH_I2C_Read... [00:00:57]Read from MH i2c: E2 FD 00 [00:00:57]MH_I2C_Read... [00:00:57]Read from MH i2c: E2 FD 00 AE 13 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 43 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [00:00:58]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 43 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:58]wFMCommunicate OK [00:00:58]wFMCommunicate request_size=4 [00:00:58]MH_SAM_APDU [00:00:58]CAPDU: 80 17 00 00 [00:00:58]Write to MH i2c: E2 08 00 AF 13 80 17 00 00 00 00 00 00 42 [00:00:58]Write i2c OK [00:00:58]MH_I2C_Read... [00:00:58]OFD Sender: No OFD packet to send [00:00:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:58]Read from MH i2c: E2 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 FD 00 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 FD 00 AF 13 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [00:00:58]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:00:58]wFMCommunicate OK [00:00:58]wFMCommunicate request_size=4 [00:00:58]MH_SAM_APDU [00:00:58]CAPDU: 80 17 00 00 [00:00:58]Write to MH i2c: E2 08 00 B0 13 80 17 00 00 00 00 00 00 43 [00:00:58]Write i2c OK [00:00:58]MH_I2C_Read... [00:00:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:58]Read from MH i2c: E2 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 FD 00 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 FD 00 B0 13 00 03 00 00 EF 03 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 90 00 C4 [00:00:59]RAPDU: 03 00 00 EF 03 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 90 00 [00:00:59]wFMCommunicate OK [00:00:59]wFMCommunicate request_size=4 [00:00:59]MH_SAM_APDU [00:00:59]CAPDU: 80 17 00 00 [00:00:59]Write to MH i2c: E2 08 00 B1 13 80 17 00 00 00 00 00 00 44 [00:00:59]Write i2c OK [00:00:59]MH_I2C_Read... [00:00:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:00:59]Read from MH i2c: E2 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 D9 00 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 D9 00 B1 13 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 23 [00:00:59]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:59]wFMCommunicate OK [00:00:59]SAM_PROTO_GetShiftData done [00:00:59]1194 (1208) - счетчики итогов смены [00:00:59] 1134 (4) - 741 - количество чеков со всеми признаками расчетов [00:00:59] 1129 (159) - счетчики операций «приход» [00:00:59] 1135 (4) - 740 - количество чеков по признаку расчетов [00:00:59] 1201 (4) - 662058.09 - общая итоговая сумма в чеках [00:00:59] 1136 (4) - 479888.00 - итоговая сумма в чеках наличными [00:00:59] 1138 (4) - 182170.09 - итоговая сумма в чеках безналичными [00:00:59] 1024 (123) - суммы налогов [00:00:59] 1006 (9) - суммы НДС [00:00:59] 1010 (1) - 0% - код ставки НДС [00:00:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:59] 1006 (12) - суммы НДС [00:00:59] 1010 (1) - 12% - код ставки НДС [00:00:59] 1011 (3) - 70328.44 - сумма НДС по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 0% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (12) - суммы НСП [00:00:59] 1014 (1) - 1% - код ставки НСП [00:00:59] 1015 (3) - 5859.89 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 2% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 3% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 5% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 0,50% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 1,50% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1130 (151) - счетчики операций «возврат прихода» [00:00:59] 1135 (4) - 1 - количество чеков по признаку расчетов [00:00:59] 1201 (3) - 2100.00 - общая итоговая сумма в чеках [00:00:59] 1136 (3) - 2100.00 - итоговая сумма в чеках наличными [00:00:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:59] 1024 (121) - суммы налогов [00:00:59] 1006 (9) - суммы НДС [00:00:59] 1010 (1) - 0% - код ставки НДС [00:00:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:59] 1006 (11) - суммы НДС [00:00:59] 1010 (1) - 12% - код ставки НДС [00:00:59] 1011 (2) - 223.03 - сумма НДС по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 0% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (11) - суммы НСП [00:00:59] 1014 (1) - 1% - код ставки НСП [00:00:59] 1015 (2) - 18.59 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 2% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 3% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 5% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 0,50% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 1,50% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1131 (141) - счетчики операций «расход» [00:00:59] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:59] 1024 (117) - суммы налогов [00:00:59] 1006 (9) - суммы НДС [00:00:59] 1010 (1) - 0% - код ставки НДС [00:00:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:59] 1006 (9) - суммы НДС [00:00:59] 1010 (1) - 12% - код ставки НДС [00:00:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 0% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 1% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 2% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 3% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 5% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 0,50% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 1,50% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1132 (141) - счетчики операций «возврат расхода» [00:00:59] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:59] 1024 (117) - суммы налогов [00:00:59] 1006 (9) - суммы НДС [00:00:59] 1010 (1) - 0% - код ставки НДС [00:00:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:59] 1006 (9) - суммы НДС [00:00:59] 1010 (1) - 12% - код ставки НДС [00:00:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 0% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 1% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 2% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 3% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 5% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 0,50% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1007 (9) - суммы НСП [00:00:59] 1014 (1) - 1,50% - код ставки НСП [00:00:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:59] 1133 (588) - - счетчики коррекции - не используются [00:00:59]SetTLVBufToDocument [00:00:59]Processing tag 1194 (04AA) [00:00:59]Load OK [00:00:59]SetTLVBufToDocument [00:00:59]Processing tag 1134 (046E) [00:00:59]Malloc new data [00:00:59]Processing tag 1129 (0469) [00:00:59]Load OK [00:00:59]SetTLVBufToDocument [00:00:59]Processing tag 1135 (046F) [00:00:59]Malloc new data [00:00:59]Processing tag 1201 (04B1) [00:00:59]Malloc new data [00:00:59]Processing tag 1136 (0470) [00:00:59]Malloc new data [00:01:00]Processing tag 1138 (0472) [00:01:00]Malloc new data [00:01:00]Processing tag 1024 (0400) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1006 (03EE) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1010 (03F2) [00:01:00]Malloc new data [00:01:00]Processing tag 1011 (03F3) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1006 (03EE) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1010 (03F2) [00:01:00]Malloc new data [00:01:00]Processing tag 1011 (03F3) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]SetTLVBufToDocument err=0 [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1130 (046A) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1135 (046F) [00:01:00]Malloc new data [00:01:00]Processing tag 1201 (04B1) [00:01:00]Malloc new data [00:01:00]Processing tag 1136 (0470) [00:01:00]Malloc new data [00:01:00]Processing tag 1138 (0472) [00:01:00]Malloc new data [00:01:00]Processing tag 1024 (0400) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1006 (03EE) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1010 (03F2) [00:01:00]Malloc new data [00:01:00]Processing tag 1011 (03F3) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1006 (03EE) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1010 (03F2) [00:01:00]Malloc new data [00:01:00]Processing tag 1011 (03F3) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]SetTLVBufToDocument err=0 [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1131 (046B) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1135 (046F) [00:01:00]Malloc new data [00:01:00]Processing tag 1201 (04B1) [00:01:00]Malloc new data [00:01:00]Processing tag 1136 (0470) [00:01:00]Malloc new data [00:01:00]Processing tag 1138 (0472) [00:01:00]Malloc new data [00:01:00]Processing tag 1024 (0400) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1006 (03EE) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1010 (03F2) [00:01:00]Malloc new data [00:01:00]Processing tag 1011 (03F3) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1006 (03EE) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1010 (03F2) [00:01:00]Malloc new data [00:01:00]Processing tag 1011 (03F3) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]SetTLVBufToDocument err=0 [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1132 (046C) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1135 (046F) [00:01:00]Malloc new data [00:01:00]Processing tag 1201 (04B1) [00:01:00]Malloc new data [00:01:00]Processing tag 1136 (0470) [00:01:00]Malloc new data [00:01:00]Processing tag 1138 (0472) [00:01:00]Malloc new data [00:01:00]Processing tag 1024 (0400) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1006 (03EE) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1010 (03F2) [00:01:00]Malloc new data [00:01:00]Processing tag 1011 (03F3) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1006 (03EE) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1010 (03F2) [00:01:00]Malloc new data [00:01:00]Processing tag 1011 (03F3) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1007 (03EF) [00:01:00]Load OK [00:01:00]SetTLVBufToDocument [00:01:00]Processing tag 1014 (03F6) [00:01:00]Malloc new data [00:01:00]Processing tag 1015 (03F7) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]SetTLVBufToDocument err=0 [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Processing tag 1133 (046D) [00:01:00]Malloc new data [00:01:00]SetTLVBufToDocument err=0 [00:01:00]SetTLVBufToDocument err=0 [00:01:00]Malloc new data [00:01:00]SAM_PROTO_GetFMData [00:01:00]wFMCommunicate request_size=4 [00:01:00]MH_SAM_APDU [00:01:00]CAPDU: 80 13 03 00 [00:01:00]Write to MH i2c: E2 08 00 B2 13 80 13 03 00 00 00 00 00 44 [00:01:00]Write i2c OK [00:01:00]MH_I2C_Read... [00:01:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:01]Read from MH i2c: E2 [00:01:01]MH_I2C_Read... [00:01:01]Read from MH i2c: E2 FD 00 [00:01:01]MH_I2C_Read... [00:01:01]Read from MH i2c: E2 FD 00 B2 13 00 C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 0A [00:01:01]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 [00:01:01]wFMCommunicate OK [00:01:01]wFMCommunicate request_size=4 [00:01:01]MH_SAM_APDU [00:01:01]CAPDU: 80 17 00 00 [00:01:01]Write to MH i2c: E2 08 00 B3 13 80 17 00 00 00 00 00 00 46 [00:01:01]Write i2c OK [00:01:01]MH_I2C_Read... [00:01:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:01]Read from MH i2c: E2 [00:01:01]MH_I2C_Read... [00:01:01]Read from MH i2c: E2 FD 00 [00:01:01]MH_I2C_Read... [00:01:01]Read from MH i2c: E2 FD 00 B3 13 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7D [00:01:01]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:01]wFMCommunicate OK [00:01:01]wFMCommunicate request_size=4 [00:01:01]MH_SAM_APDU [00:01:01]CAPDU: 80 17 00 00 [00:01:01]Write to MH i2c: E2 08 00 B4 13 80 17 00 00 00 00 00 00 47 [00:01:01]Write i2c OK [00:01:01]MH_I2C_Read... [00:01:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:02]Read from MH i2c: E2 [00:01:02]MH_I2C_Read... [00:01:02]Read from MH i2c: E2 FD 00 [00:01:02]MH_I2C_Read... [00:01:02]Read from MH i2c: E2 FD 00 B4 13 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 59 [00:01:02]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:02]wFMCommunicate OK [00:01:02]wFMCommunicate request_size=4 [00:01:02]MH_SAM_APDU [00:01:02]CAPDU: 80 17 00 00 [00:01:02]Write to MH i2c: E2 08 00 B5 13 80 17 00 00 00 00 00 00 48 [00:01:02]Write i2c OK [00:01:02]MH_I2C_Read... [00:01:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:02]Read from MH i2c: E2 [00:01:02]MH_I2C_Read... [00:01:02]Read from MH i2c: E2 FD 00 [00:01:02]MH_I2C_Read... [00:01:02]Read from MH i2c: E2 FD 00 B5 13 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [00:01:02]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:03]wFMCommunicate OK [00:01:03]wFMCommunicate request_size=4 [00:01:03]MH_SAM_APDU [00:01:03]CAPDU: 80 17 00 00 [00:01:03]Write to MH i2c: E2 08 00 B6 13 80 17 00 00 00 00 00 00 49 [00:01:03]Write i2c OK [00:01:03]MH_I2C_Read... [00:01:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:01:03]Read from MH i2c: E2 [00:01:03]MH_I2C_Read... [00:01:03]Read from MH i2c: E2 E2 00 [00:01:03]MH_I2C_Read... [00:01:03]Read from MH i2c: E2 E2 00 B6 13 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 27 [00:01:03]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 OFD Sender: No OFD packet to send [00:01:03]00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:03]wFMCommunicate OK [00:01:03]SAM_PROTO_GetFMData done [00:01:03]FM_GetFMData:85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 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 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:04]oper:6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:04]total:1F 5E 00 3C 01 [00:01:04]Malloc new data [00:01:04]oper:6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 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 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:04]total:64 0A 29 04 [00:01:04]Malloc new data [00:01:04]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:01:04]total: [00:01:04]Malloc new data [00:01:04]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:01:04]total: [00:01:04]Malloc new data [00:01:04]KKMPrepareXReportFMData err=0 [00:01:04]Х отчет ИНН: 02508201610067 Кассир: Койгельдиева Р. 03.06.2024 00:00 Смена: 10 РНМ: 0000000000151680 ЗНМ: 0300000048 СНО: Общий режим Всего чеков: 741 ИТОГИ ПРИХОД Чеков: 740 Общий итог: 662058.09 Итого наличными: 479888.00 Итого безнал.: 182170.09 НДС 0% : 0.00 НДС 12% : 70328.44 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 5859.89 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 2100.00 Итого наличными: 2100.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 223.03 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 18.59 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 477788.00 НС Приход: 53016243.51 НС Возвр.Прихода: 697985.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000959414 [00:01:04]StoreToDocumentArchive [00:01:04]MH_GetDate [00:01:04]Write to MH i2c: F0 00 00 B7 13 B9 [00:01:04]Write i2c OK [00:01:04]MH_I2C_Read... [00:01:04]Read from MH i2c: F0 [00:01:04]MH_I2C_Read... [00:01:04]Read from MH i2c: F0 09 00 [00:01:04]MH_I2C_Read... [00:01:04]Read from MH i2c: F0 09 00 B7 13 00 C1 07 5D 66 8D A7 02 66 E9 [00:01:04]shift 10 fd 1717372865 [00:01:04]Create dir for shift 0010 [00:01:04]save to /storage/0010/doc_1717372865 [00:01:04]save last doc name /storage/0010/doc_1717372865 to /storage/kkm_last_doc_name [00:01:04]save OK [00:01:04]Clear old archive folders... [00:01:04]NVStorageSaveData kkm_last_timestamp [00:01:04]File name is /storage/kkm_last_timestamp [00:01:04]Write 4 bytes [00:01:04]NVStorageSaveData done [00:01:04]ExternCall_PrintAddStr [00:01:04]wPrintStart [00:01:04]Write to MH i2c: 01 00 00 B8 13 CB [00:01:04]Write i2c OK [00:01:04]MH_I2C_Read... [00:01:04]Read from MH i2c: 01 [00:01:04]MH_I2C_Read... [00:01:04]Read from MH i2c: 01 07 00 [00:01:04]MH_I2C_Read... [00:01:04]Read from MH i2c: 01 07 00 B8 13 00 00 00 00 00 FF 0F E0 [00:01:04]RasterBufferAndPrint [00:01:04]line Х отчет [00:01:04]line ИНН: 02508201610067 [00:01:04]line Кассир: Койгельдиева Р. [00:01:04]line 03.06.2024 00:00 [00:01:04]line Смена: 10 [00:01:04]line РНМ: 0000000000151680 [00:01:04]line ЗНМ: 0300000048 [00:01:04]line СНО: Общий режим [00:01:04]line Всего чеков: 741 [00:01:04]line ИТОГИ ПРИХОД [00:01:04]line Чеков: 740 [00:01:04]line Общий итог: 662058.09 [00:01:04]line Итого наличными: 479888.00 [00:01:04]line Итого безнал.: 182170.09 [00:01:04]line НДС 0% : 0.00 [00:01:04]line НДС 12% : 70328.44 [00:01:04]line НСП 0% : 0.00 [00:01:04]line НСП 1,50% : 0.00 [00:01:04]line НСП 0,50% : 0.00 [00:01:04]line НСП 5% : 0.00 [00:01:04]line НСП 3% : 0.00 [00:01:04]line НСП 2% : 0.00 [00:01:04]line НСП 1% : 5859.89 [00:01:04]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:01:04]line Чеков: 1 [00:01:04]line Общий итог: 2100.00 [00:01:04]line Итого наличными: 2100.00 [00:01:04]line Итого безнал.: 0.00 [00:01:04]line НДС 0% : 0.00 [00:01:04]line НДС 12% : 223.03 [00:01:04]line НСП 0% : 0.00 [00:01:04]line НСП 1,50% : 0.00 [00:01:04]line НСП 0,50% : 0.00 [00:01:04]line НСП 5% : 0.00 [00:01:04]line НСП 3% : 0.00 [00:01:04]line НСП 2% : 0.00 [00:01:04]line НСП 1% : 18.59 [00:01:04]line ИТОГИ РАСХОД [00:01:04]line Чеков: 0 [00:01:04]line Общий итог: 0.00 [00:01:04]line Итого наличными: 0.00 [00:01:04]line Итого безнал.: 0.00 [00:01:04]line НДС 0% : 0.00 [00:01:04]line НДС 12% : 0.00 [00:01:04]line НСП 0% : 0.00 [00:01:04]line НСП 1,50% : 0.00 [00:01:04]line НСП 0,50% : 0.00 [00:01:04]line НСП 5% : 0.00 [00:01:04]line НСП 3% : 0.00 [00:01:04]line НСП 2% : 0.00 [00:01:04]line НСП 1% : 0.00 [00:01:04]line ИТОГИ ВОЗВРАТ РАСХОДА [00:01:04]line Чеков: 0 [00:01:04]line Общий итог: 0.00 [00:01:04]line Итого наличными: 0.00 [00:01:04]line Итого безнал.: 0.00 [00:01:04]line НДС 0% : 0.00 [00:01:04]line НДС 12% : 0.00 [00:01:04]line НСП 0% : 0.00 [00:01:04]line НСП 1,50% : 0.00 [00:01:04]line НСП 0,50% : 0.00 [00:01:04]line НСП 5% : 0.00 [00:01:04]line НСП 3% : 0.00 [00:01:04]line НСП 2% : 0.00 [00:01:04]line НСП 1% : 0.00 [00:01:04]line Сумма внесений: 0.00 [00:01:04]line Сумма выплат: 0.00 [00:01:04]line Нал. в кассе: 477788.00 [00:01:04]line НС Приход: 53016243.51 [00:01:04]line НС Возвр.Прихода: 697985.00 [00:01:04]line НС Расход: 0.00 [00:01:04]line НС Возвр.Расхода: 0.00 [00:01:04]line ФМ: 0000000000959414 [00:01:04]written 0, free lines is 4095 [00:01:05]Write to MH i2c: 01 00 00 03 14 17 [00:01:05]Write i2c OK [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: 01 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: 01 07 00 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: 01 07 00 03 14 00 00 00 00 00 69 0A 91 [00:01:05]RasterBufferAndPrint [00:01:05]line [00:01:05]line [00:01:05]line [00:01:05]line [00:01:05]line [00:01:05]written 0, free lines is 2692 [00:01:05]MH_Cut [00:01:05]Write to MH i2c: D1 01 00 0A 14 01 F0 [00:01:05]Write i2c OK [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: D1 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: D1 01 00 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: D1 01 00 0A 14 00 EF [00:01:05]Write to MH i2c: 01 00 00 0B 14 1F [00:01:05]Write i2c OK [00:01:05]MH_I2C_Read... [00:01:06]*** Cut start [00:01:06]*** Partial cut [00:01:06]*** CUTSNS_PIN = 1 [00:01:07]*** CUTSNS_PIN = 0 [00:01:07]*** Brake cut motor [00:01:07]Read from MH i2c: 01 [00:01:07]MH_I2C_Read... [00:01:07]*** Stop cut motor [00:01:07]*** Cut end [00:01:07]Read from MH i2c: 01 07 00 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: 01 07 00 0B 14 00 00 00 00 00 FF 0F 34 [00:01:07]process_action x_report done [00:01:07]requested_data is exist [00:01:07]produce_requested_data [00:01:07]requested_item fd.num is exist - process it [00:01:07]SAM_PROTO_GetFieldsCounters [00:01:07]wFMCommunicate request_size=4 [00:01:07]MH_SAM_APDU [00:01:07]CAPDU: 80 13 00 00 [00:01:07]Write to MH i2c: E2 08 00 0C 14 80 13 00 00 00 00 00 00 9C [00:01:07]Write i2c OK [00:01:07]MH_I2C_Read... [00:01:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:07]Read from MH i2c: E2 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 62 00 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 62 00 0C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E5 02 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E6 02 00 00 19 04 04 00 00 00 00 00 90 00 CF [00:01:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E5 02 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E6 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:07]wFMCommunicate OK [00:01:07]SAM_PROTO_GetFieldsCounters done [00:01:07]requested_item shift.num is exist - process it [00:01:07]requested_item shift.opened is exist - process it [00:01:07]req_shift_opened [00:01:07]FM_GetShiftState [00:01:07]SAM_PROTO_GetShiftState [00:01:07]wFMCommunicate request_size=4 [00:01:07]MH_SAM_APDU [00:01:07]CAPDU: 80 13 01 00 [00:01:07]Write to MH i2c: E2 08 00 0D 14 80 13 01 00 00 00 00 00 9E [00:01:07]Write i2c OK [00:01:07]MH_I2C_Read... [00:01:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:07]Read from MH i2c: E2 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 0E 00 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 0E 00 0D 14 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 71 [00:01:07]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [00:01:08]wFMCommunicate OK [00:01:08]SAM_PROTO_GetShiftState done [00:01:08]FM_GetShiftState done [00:01:08]req_shift_opened done [00:01:08]requested_item shift.open_date is exist - process it [00:01:08]req_shift_open_date [00:01:08]req_shift_open_date done [00:01:08]produce_requested_data done [00:01:08]produce_requested_data return {"fd.num":57914,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [00:01:08]process_action_free x_report [00:01:08]json_value_free [00:01:08]json_value_free done [00:01:08]process_json_proto returns [00:01:08]Send response to host [00:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":57914,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [00:01:08]free response buf [00:01:08]execute_script done [00:01:08]execute_script returns [00:01:08]free content buf [00:01:08]Sock 9.Close socket [00:01:08]Sock 9.Thread stoped [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:36]accept exits with 8 [00:01:36]New connection [00:01:36]New thread 3066735972 created [00:01:36]Thread 3066592612 joined [00:01:36]Waiting for new connection... [00:01:36] Sock 8.Parse request [00:01:36]Sock 8.Check first char [00:01:36]Sock 8.First char is OK [00:01:36]request: POST /json_proto HTTP/1.0 [00:01:36]Method: POST [00:01:36]URL: /json_proto [00:01:36]Method is POST - this is cgi request [00:01:36]url: /json_proto [00:01:36]query_string will be loaded in cgi processing [00:01:36]execute_cgi json_proto POST (null) [00:01:36]execute_cgi path=json_proto method=POST [00:01:36]POST find Content-Length [00:01:36]Host: 172.17.60.68:8080 [00:01:36]Content-Length: 215 [00:01:36]Content-Type: application/json [00:01:36] [00:01:36]POST finish read [00:01:36]Found Content-Length = 215 [00:01:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:36]execute_script... [00:01:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:36]POST & json_proto [00:01:36]process_json_proto [00:01:36]json parsed OK: [00:01:36]protocol is kg_v1.0 [00:01:36]action value=get_value [00:01:36]process_action get_value [00:01:36]cmd_get_value [00:01:36]process_action get_value done [00:01:36]requested_data is exist [00:01:36]produce_requested_data [00:01:36]requested_item kkm.sn is exist - process it [00:01:36]requested_item kkm.ver is exist - process it [00:01:36]requested_item fm.sn is exist - process it [00:01:36]wFMCommunicate request_size=4 [00:01:36]MH_SAM_APDU [00:01:36]CAPDU: 80 11 00 00 [00:01:36]Write to MH i2c: E2 08 00 0E 14 80 11 00 00 00 00 00 00 9C [00:01:36]Write i2c OK [00:01:36]MH_I2C_Read... [00:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:36]Read from MH i2c: E2 [00:01:36]MH_I2C_Read... [00:01:36]Read from MH i2c: E2 17 00 [00:01:36]MH_I2C_Read... [00:01:36]Read from MH i2c: E2 17 00 0E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 EF [00:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:01:36]wFMCommunicate OK [00:01:36]requested_item fd.num is exist - process it [00:01:36]SAM_PROTO_GetFieldsCounters [00:01:36]wFMCommunicate request_size=4 [00:01:36]MH_SAM_APDU [00:01:36]CAPDU: 80 13 00 00 [00:01:36]Write to MH i2c: E2 08 00 0F 14 80 13 00 00 00 00 00 00 9F [00:01:36]Write i2c OK [00:01:36]MH_I2C_Read... [00:01:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:36]Read from MH i2c: E2 [00:01:36]MH_I2C_Read... [00:01:36]Read from MH i2c: E2 62 00 [00:01:36]MH_I2C_Read... [00:01:36]Read from MH i2c: E2 62 00 0F 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E5 02 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E6 02 00 00 19 04 04 00 00 00 00 00 90 00 D2 [00:01:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3A E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E5 02 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E6 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:36]wFMCommunicate OK [00:01:36]SAM_PROTO_GetFieldsCounters done [00:01:36]requested_item shift.num is exist - process it [00:01:36]requested_item shift.opened is exist - process it [00:01:36]req_shift_opened [00:01:36]FM_GetShiftState [00:01:36]SAM_PROTO_GetShiftState [00:01:36]wFMCommunicate request_size=4 [00:01:36]MH_SAM_APDU [00:01:36]CAPDU: 80 13 01 00 [00:01:36]Write to MH i2c: E2 08 00 10 14 80 13 01 00 00 00 00 00 A1 [00:01:36]Write i2c OK [00:01:36]MH_I2C_Read... [00:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:37]Read from MH i2c: E2 [00:01:37]MH_I2C_Read... [00:01:37]Read from MH i2c: E2 0E 00 [00:01:37]MH_I2C_Read... [00:01:37]Read from MH i2c: E2 0E 00 10 14 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 74 [00:01:37]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [00:01:37]wFMCommunicate OK [00:01:37]SAM_PROTO_GetShiftState done [00:01:37]FM_GetShiftState done [00:01:37]req_shift_opened done [00:01:37]requested_item shift.open_date is exist - process it [00:01:37]req_shift_open_date [00:01:37]req_shift_open_date done [00:01:37]produce_requested_data done [00:01:37]produce_requested_data return {"kkm.sn":"0300000048","kkm.ver":"v1.0","fm.sn":"0000000000959414","fd.num":57914,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520} [00:01:37]process_action_free get_value [00:01:37]json_value_free [00:01:37]json_value_free done [00:01:37]process_json_proto returns [00:01:37]Send response to host [00:01:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000048","kkm.ver":"v1.0","fm.sn":"0000000000959414","fd.num":57914,"shift.num":69,"shift.opened":1,"shift.open_date":1717288520}}} [00:01:37]free response buf [00:01:37]execute_script done [00:01:37]execute_script returns [00:01:37]free content buf [00:01:37]Sock 8.Close socket [00:01:37]Sock 8.Thread stoped [00:01:37]accept exits with 9 [00:01:37]New connection [00:01:37]New thread 3066592612 created [00:01:37]Thread 3066735972 joined [00:01:37]Waiting for new connection... [00:01:37] Sock 9.Parse request [00:01:37]Sock 9.Check first char [00:01:37]Sock 9.First char is OK [00:01:37]request: POST /json_proto HTTP/1.0 [00:01:37]Method: POST [00:01:37]URL: /json_proto [00:01:37]Method is POST - this is cgi request [00:01:37]url: /json_proto [00:01:37]query_string will be loaded in cgi processing [00:01:37]execute_cgi json_proto POST (null) [00:01:37]execute_cgi path=json_proto method=POST [00:01:37]POST find Content-Length [00:01:37]Host: 172.17.60.68:8080 [00:01:37]Content-Length: 331 [00:01:37]Content-Type: application/json [00:01:37] [00:01:37]POST finish read [00:01:37]Found Content-Length = 331 [00:01:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:37]execute_script... [00:01:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:37]POST & json_proto [00:01:37]process_json_proto [00:01:37]json parsed OK: [00:01:37]protocol is kg_v1.0 [00:01:37]action value=get_value [00:01:37]process_action get_value [00:01:37]cmd_get_value [00:01:37]process_action get_value done [00:01:37]requested_data is exist [00:01:37]produce_requested_data [00:01:37]requested_item fm.sale.total is exist - process it [00:01:37]SAM_PROTO_GetFMData [00:01:37]wFMCommunicate request_size=4 [00:01:37]MH_SAM_APDU [00:01:37]CAPDU: 80 13 03 00 [00:01:37]Write to MH i2c: E2 08 00 11 14 80 13 03 00 00 00 00 00 A4 [00:01:37]Write i2c OK [00:01:37]MH_I2C_Read... [00:01:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:37]Read from MH i2c: E2 [00:01:37]MH_I2C_Read... [00:01:37]Read from MH i2c: E2 FD 00 [00:01:37]MH_I2C_Read... [00:01:37]Read from MH i2c: E2 FD 00 11 14 00 C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 6A [00:01:37]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 [00:01:37]wFMCommunicate OK [00:01:37]wFMCommunicate request_size=4 [00:01:37]MH_SAM_APDU [00:01:37]CAPDU: 80 17 00 00 [00:01:37]Write to MH i2c: E2 08 00 12 14 80 17 00 00 00 00 00 00 A6 [00:01:37]Write i2c OK [00:01:37]MH_I2C_Read... [00:01:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:37]Read from MH i2c: E2 [00:01:37]MH_I2C_Read... [00:01:37]Read from MH i2c: E2 FD 00 [00:01:37]MH_I2C_Read... [00:01:37]Read from MH i2c: E2 FD 00 12 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DD [00:01:37]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:37]wFMCommunicate OK [00:01:37]wFMCommunicate request_size=4 [00:01:37]MH_SAM_APDU [00:01:37]CAPDU: 80 17 00 00 [00:01:37]Write to MH i2c: E2 08 00 13 14 80 17 00 00 00 00 00 00 A7 [00:01:37]Write i2c OK [00:01:37]MH_I2C_Read... [00:01:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:38]Read from MH i2c: E2 [00:01:38]MH_I2C_Read... [00:01:38]Read from MH i2c: E2 FD 00 [00:01:38]MH_I2C_Read... [00:01:38]Read from MH i2c: E2 FD 00 13 14 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B9 [00:01:38]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:38]wFMCommunicate OK [00:01:38]wFMCommunicate request_size=4 [00:01:38]MH_SAM_APDU [00:01:38]CAPDU: 80 17 00 00 [00:01:38]Write to MH i2c: E2 08 00 14 14 80 17 00 00 00 00 00 00 A8 [00:01:38]Write i2c OK [00:01:38]MH_I2C_Read... [00:01:38]OFD Sender: No OFD packet to send [00:01:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:38]Read from MH i2c: E2 [00:01:38]MH_I2C_Read... [00:01:38]Read from MH i2c: E2 FD 00 [00:01:38]MH_I2C_Read... [00:01:38]Read from MH i2c: E2 FD 00 14 14 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 34 [00:01:38]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:38]wFMCommunicate OK [00:01:38]wFMCommunicate request_size=4 [00:01:38]MH_SAM_APDU [00:01:38]CAPDU: 80 17 00 00 [00:01:38]Write to MH i2c: E2 08 00 15 14 80 17 00 00 00 00 00 00 A9 [00:01:38]Write i2c OK [00:01:38]MH_I2C_Read... [00:01:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:01:38]Read from MH i2c: E2 [00:01:38]MH_I2C_Read... [00:01:38]Read from MH i2c: E2 E2 00 [00:01:38]MH_I2C_Read... [00:01:38]Read from MH i2c: E2 E2 00 15 14 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 87 [00:01:39]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:39]wFMCommunicate OK [00:01:39]SAM_PROTO_GetFMData done [00:01:39]requested_item fm.sale_refund.total is exist - process it [00:01:39]requested_item fm.buy.total is exist - process it [00:01:39]requested_item shift.sale.total is exist - process it [00:01:39]SAM_PROTO_GetShiftData [00:01:39]wFMCommunicate request_size=4 [00:01:39]MH_SAM_APDU [00:01:39]CAPDU: 80 13 02 00 [00:01:39]Write to MH i2c: E2 08 00 16 14 80 13 02 00 00 00 00 00 A8 [00:01:39]Write i2c OK [00:01:39]MH_I2C_Read... [00:01:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:01:39]Read from MH i2c: E2 [00:01:39]MH_I2C_Read... [00:01:39]Read from MH i2c: E2 FD 00 [00:01:39]MH_I2C_Read... [00:01:39]Read from MH i2c: E2 FD 00 16 14 00 BC 04 AA 04 B8 04 6E 04 04 00 E5 02 00 00 69 04 9F 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 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 0C 50 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 05 F1 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 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 0C [00:01:39]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 E5 02 00 00 69 04 9F 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 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 0C 50 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 05 F1 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 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:01:39]wFMCommunicate OK [00:01:39]wFMCommunicate request_size=4 [00:01:39]MH_SAM_APDU [00:01:39]CAPDU: 80 17 00 00 [00:01:39]Write to MH i2c: E2 08 00 17 14 80 17 00 00 00 00 00 00 AB [00:01:39]Write i2c OK [00:01:39]MH_I2C_Read... [00:01:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:39]Read from MH i2c: E2 [00:01:39]MH_I2C_Read... [00:01:39]Read from MH i2c: E2 FD 00 [00:01:39]MH_I2C_Read... [00:01:39]Read from MH i2c: E2 FD 00 17 14 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 43 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9F [00:01:40]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 43 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:40]wFMCommunicate OK [00:01:40]wFMCommunicate request_size=4 [00:01:40]MH_SAM_APDU [00:01:40]CAPDU: 80 17 00 00 [00:01:40]Write to MH i2c: E2 08 00 18 14 80 17 00 00 00 00 00 00 AC [00:01:40]Write i2c OK [00:01:40]MH_I2C_Read... [00:01:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:40]Read from MH i2c: E2 [00:01:40]MH_I2C_Read... [00:01:40]Read from MH i2c: E2 FD 00 [00:01:40]MH_I2C_Read... [00:01:40]Read from MH i2c: E2 FD 00 18 14 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D5 [00:01:40]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:01:40]wFMCommunicate OK [00:01:40]wFMCommunicate request_size=4 [00:01:40]MH_SAM_APDU [00:01:40]CAPDU: 80 17 00 00 [00:01:40]Write to MH i2c: E2 08 00 19 14 80 17 00 00 00 00 00 00 AD [00:01:40]Write i2c OK [00:01:40]MH_I2C_Read... [00:01:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:40]Read from MH i2c: E2 [00:01:40]MH_I2C_Read... [00:01:40]Read from MH i2c: E2 FD 00 [00:01:40]MH_I2C_Read... [00:01:40]Read from MH i2c: E2 FD 00 19 14 00 03 00 00 EF 03 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 90 00 2E [00:01:40]RAPDU: 03 00 00 EF 03 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 90 00 [00:01:41]wFMCommunicate OK [00:01:41]wFMCommunicate request_size=4 [00:01:41]MH_SAM_APDU [00:01:41]CAPDU: 80 17 00 00 [00:01:41]Write to MH i2c: E2 08 00 1A 14 80 17 00 00 00 00 00 00 AE [00:01:41]Write i2c OK [00:01:41]MH_I2C_Read... [00:01:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:01:41]Read from MH i2c: E2 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 D9 00 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 D9 00 1A 14 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [00:01:41]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:41]wFMCommunicate OK [00:01:41]SAM_PROTO_GetShiftData done [00:01:41]requested_item shift.sale.total_cash is exist - process it [00:01:41]requested_item shift.sale_refund.total is exist - process it [00:01:41]requested_item shift.sale_refund.total_cash is exist - process it [00:01:41]requested_item shift.buy.total is exist - process it [00:01:41]requested_item shift.buy.total_cash is exist - process it [00:01:41]produce_requested_data done [00:01:41]produce_requested_data return {"fm.sale.total":53016243.51,"fm.sale_refund.total":697985.00,"fm.buy.total":0.00,"shift.sale.total":662058.09,"shift.sale.total_cash":479888.00,"shift.sale_refund.total":2100.00,"shift.sale_refund.total_cash":2100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:01:41]process_action_free get_value [00:01:41]json_value_free [00:01:41]json_value_free done [00:01:41]process_json_proto returns [00:01:41]Send response to host [00:01:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":53016243.51,"fm.sale_refund.total":697985.00,"fm.buy.total":0.00,"shift.sale.total":662058.09,"shift.sale.total_cash":479888.00,"shift.sale_refund.total":2100.00,"shift.sale_refund.total_cash":2100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:01:41]free response buf [00:01:41]execute_script done [00:01:41]execute_script returns [00:01:41]free content buf [00:01:41]Sock 9.Close socket [00:01:41]Sock 9.Thread stoped [00:01:41]accept exits with 8 [00:01:41]New connection [00:01:41]New thread 3066735972 created [00:01:41]Thread 3066592612 joined [00:01:41]Waiting for new connection... [00:01:41] Sock 8.Parse request [00:01:41]Sock 8.Check first char [00:01:41]Sock 8.First char is OK [00:01:41]request: POST /json_proto HTTP/1.0 [00:01:41]Method: POST [00:01:41]URL: /json_proto [00:01:41]Method is POST - this is cgi request [00:01:41]url: /json_proto [00:01:41]query_string will be loaded in cgi processing [00:01:41]execute_cgi json_proto POST (null) [00:01:41]execute_cgi path=json_proto method=POST [00:01:41]POST find Content-Length [00:01:41]Host: 172.17.60.68:8080 [00:01:41]Content-Length: 331 [00:01:41]Content-Type: application/json [00:01:41] [00:01:41]POST finish read [00:01:41]Found Content-Length = 331 [00:01: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:01:41]execute_script... [00:01: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:01:41]POST & json_proto [00:01:41]process_json_proto [00:01:41]json parsed OK: [00:01:41]protocol is kg_v1.0 [00:01:41]action value=get_value [00:01:41]process_action get_value [00:01:41]cmd_get_value [00:01:41]process_action get_value done [00:01:41]requested_data is exist [00:01:41]produce_requested_data [00:01:41]requested_item fm.sale.total is exist - process it [00:01:41]SAM_PROTO_GetFMData [00:01:41]wFMCommunicate request_size=4 [00:01:41]MH_SAM_APDU [00:01:41]CAPDU: 80 13 03 00 [00:01:41]Write to MH i2c: E2 08 00 1B 14 80 13 03 00 00 00 00 00 AE [00:01:41]Write i2c OK [00:01:41]MH_I2C_Read... [00:01:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:42]Read from MH i2c: E2 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: E2 FD 00 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: E2 FD 00 1B 14 00 C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 74 [00:01:42]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 [00:01:42]wFMCommunicate OK [00:01:42]wFMCommunicate request_size=4 [00:01:42]MH_SAM_APDU [00:01:42]CAPDU: 80 17 00 00 [00:01:42]Write to MH i2c: E2 08 00 1C 14 80 17 00 00 00 00 00 00 B0 [00:01:42]Write i2c OK [00:01:42]MH_I2C_Read... [00:01:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:42]Read from MH i2c: E2 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: E2 FD 00 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: E2 FD 00 1C 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E7 [00:01:42]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:42]wFMCommunicate OK [00:01:42]wFMCommunicate request_size=4 [00:01:42]MH_SAM_APDU [00:01:42]CAPDU: 80 17 00 00 [00:01:42]Write to MH i2c: E2 08 00 1D 14 80 17 00 00 00 00 00 00 B1 [00:01:42]Write i2c OK [00:01:42]MH_I2C_Read... [00:01:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:42]Read from MH i2c: E2 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: E2 FD 00 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: E2 FD 00 1D 14 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [00:01:43]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:43]wFMCommunicate OK [00:01:43]wFMCommunicate request_size=4 [00:01:43]MH_SAM_APDU [00:01:43]CAPDU: 80 17 00 00 [00:01:43]Write to MH i2c: E2 08 00 1E 14 80 17 00 00 00 00 00 00 B2 [00:01:43]Write i2c OK [00:01:43]MH_I2C_Read... [00:01:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:43]Read from MH i2c: E2 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 FD 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 FD 00 1E 14 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3E [00:01:43]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:43]wFMCommunicate OK [00:01:43]wFMCommunicate request_size=4 [00:01:43]MH_SAM_APDU [00:01:43]CAPDU: 80 17 00 00 [00:01:43]Write to MH i2c: E2 08 00 1F 14 80 17 00 00 00 00 00 00 B3 [00:01:43]Write i2c OK [00:01:43]MH_I2C_Read... [00:01:43]OFD Sender: No OFD packet to send [00:01:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:01:43]Read from MH i2c: E2 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 E2 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 E2 00 1F 14 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 [00:01:43]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:44]wFMCommunicate OK [00:01:44]SAM_PROTO_GetFMData done [00:01:44]requested_item fm.sale_refund.total is exist - process it [00:01:44]requested_item fm.buy.total is exist - process it [00:01:44]requested_item shift.sale.total is exist - process it [00:01:44]SAM_PROTO_GetShiftData [00:01:44]wFMCommunicate request_size=4 [00:01:44]MH_SAM_APDU [00:01:44]CAPDU: 80 13 02 00 [00:01:44]Write to MH i2c: E2 08 00 20 14 80 13 02 00 00 00 00 00 B2 [00:01:44]Write i2c OK [00:01:44]MH_I2C_Read... [00:01:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:01:44]Read from MH i2c: E2 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 FD 00 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 FD 00 20 14 00 BC 04 AA 04 B8 04 6E 04 04 00 E5 02 00 00 69 04 9F 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 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 0C 50 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 05 F1 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 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 16 [00:01:44]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 E5 02 00 00 69 04 9F 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 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 0C 50 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 05 F1 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 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:01:44]wFMCommunicate OK [00:01:44]wFMCommunicate request_size=4 [00:01:44]MH_SAM_APDU [00:01:44]CAPDU: 80 17 00 00 [00:01:44]Write to MH i2c: E2 08 00 21 14 80 17 00 00 00 00 00 00 B5 [00:01:44]Write i2c OK [00:01:44]MH_I2C_Read... [00:01:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:44]Read from MH i2c: E2 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 FD 00 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 FD 00 21 14 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 43 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A9 [00:01:45]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 43 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:45]wFMCommunicate OK [00:01:45]wFMCommunicate request_size=4 [00:01:45]MH_SAM_APDU [00:01:45]CAPDU: 80 17 00 00 [00:01:45]Write to MH i2c: E2 08 00 22 14 80 17 00 00 00 00 00 00 B6 [00:01:45]Write i2c OK [00:01:45]MH_I2C_Read... [00:01:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:45]Read from MH i2c: E2 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 FD 00 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 FD 00 22 14 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DF [00:01:45]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:01:45]wFMCommunicate OK [00:01:45]wFMCommunicate request_size=4 [00:01:45]MH_SAM_APDU [00:01:45]CAPDU: 80 17 00 00 [00:01:45]Write to MH i2c: E2 08 00 23 14 80 17 00 00 00 00 00 00 B7 [00:01:45]Write i2c OK [00:01:45]MH_I2C_Read... [00:01:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:45]Read from MH i2c: E2 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 FD 00 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 FD 00 23 14 00 03 00 00 EF 03 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 90 00 38 [00:01:46]RAPDU: 03 00 00 EF 03 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 90 00 [00:01:46]wFMCommunicate OK [00:01:46]wFMCommunicate request_size=4 [00:01:46]MH_SAM_APDU [00:01:46]CAPDU: 80 17 00 00 [00:01:46]Write to MH i2c: E2 08 00 24 14 80 17 00 00 00 00 00 00 B8 [00:01:46]Write i2c OK [00:01:46]MH_I2C_Read... [00:01:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:01:46]Read from MH i2c: E2 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 D9 00 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 D9 00 24 14 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 [00:01:46]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:46]wFMCommunicate OK [00:01:46]SAM_PROTO_GetShiftData done [00:01:46]requested_item shift.sale.total_cash is exist - process it [00:01:46]requested_item shift.sale_refund.total is exist - process it [00:01:46]requested_item shift.sale_refund.total_cash is exist - process it [00:01:46]requested_item shift.buy.total is exist - process it [00:01:46]requested_item shift.buy.total_cash is exist - process it [00:01:46]produce_requested_data done [00:01:46]produce_requested_data return {"fm.sale.total":53016243.51,"fm.sale_refund.total":697985.00,"fm.buy.total":0.00,"shift.sale.total":662058.09,"shift.sale.total_cash":479888.00,"shift.sale_refund.total":2100.00,"shift.sale_refund.total_cash":2100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:01:46]process_action_free get_value [00:01:46]json_value_free [00:01:46]json_value_free done [00:01:46]process_json_proto returns [00:01:46]Send response to host [00:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":53016243.51,"fm.sale_refund.total":697985.00,"fm.buy.total":0.00,"shift.sale.total":662058.09,"shift.sale.total_cash":479888.00,"shift.sale_refund.total":2100.00,"shift.sale_refund.total_cash":2100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:01:46]free response buf [00:01:46]execute_script done [00:01:46]execute_script returns [00:01:46]free content buf [00:01:46]Sock 8.Close socket [00:01:46]Sock 8.Thread stoped [00:01:46]accept exits with 9 [00:01:46]New connection [00:01:46]New thread 3066592612 created [00:01:46]Thread 3066735972 joined [00:01:46]Waiting for new connection... [00:01:46] Sock 9.Parse request [00:01:46]Sock 9.Check first char [00:01:46]Sock 9.First char is OK [00:01:46]request: POST /json_proto HTTP/1.0 [00:01:46]Method: POST [00:01:46]URL: /json_proto [00:01:46]Method is POST - this is cgi request [00:01:46]url: /json_proto [00:01:46]query_string will be loaded in cgi processing [00:01:46]execute_cgi json_proto POST (null) [00:01:46]execute_cgi path=json_proto method=POST [00:01:46]POST find Content-Length [00:01:46]Host: 172.17.60.68:8080 [00:01:46]Content-Length: 283 [00:01:46]Content-Type: application/json [00:01:46] [00:01:46]POST finish read [00:01:46]Found Content-Length = 283 [00:01:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:46]execute_script... [00:01:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u043E\u0439\u0433\u0435\u043B\u044C\u0434\u0438\u0435\u0432\u0430 \u0420." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:46]POST & json_proto [00:01:46]process_json_proto [00:01:46]json parsed OK: [00:01:46]protocol is kg_v1.0 [00:01:46]action value=close_shift [00:01:46]process_action close_shift [00:01:46]cmd_close_shift [00:01:46]MH_GetDate [00:01:46]Write to MH i2c: F0 00 00 25 14 28 [00:01:46]Write i2c OK [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: F0 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: F0 09 00 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: F0 09 00 25 14 00 EB 07 5D 66 8D A7 02 66 82 [00:01:46]GetLastDocTimeStamp 1717372857 [00:01:46]current date 1717372907 [00:01:46]FM_GetShiftState [00:01:46]SAM_PROTO_GetShiftState [00:01:46]wFMCommunicate request_size=4 [00:01:46]MH_SAM_APDU [00:01:46]CAPDU: 80 13 01 00 [00:01:46]Write to MH i2c: E2 08 00 26 14 80 13 01 00 00 00 00 00 B7 [00:01:46]Write i2c OK [00:01:46]MH_I2C_Read... [00:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:46]Read from MH i2c: E2 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 0E 00 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 0E 00 26 14 00 09 00 01 48 BE 5B 66 00 00 00 00 90 00 8A [00:01:46]RAPDU: 09 00 01 48 BE 5B 66 00 00 00 00 90 00 [00:01:46]wFMCommunicate OK [00:01:46]SAM_PROTO_GetShiftState done [00:01:46]FM_GetShiftState done [00:01:46]KKMCreateCloseShiftDocument [00:01:46]Load OK [00:01:46]Malloc new data [00:01:46]MH_GetDate [00:01:46]Write to MH i2c: F0 00 00 27 14 2A [00:01:46]Write i2c OK [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: F0 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: F0 09 00 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: F0 09 00 27 14 00 EB 07 5D 66 8D A7 02 66 84 [00:01:46]Malloc new data [00:01:46]Malloc new data [00:01:46]Malloc new data [00:01:46]Malloc new data [00:01:46]KKMCreateCloseShiftDocument OK [00:01:46]KKMSetCloseShiftData OK [00:01:46]ProcessDocumentItem done err = 0, tmpTLVsize=78 [00:01:46]tlvbuf is 01ADBC20 [00:01:46]KKMLoadAndSignCloseShiftData [00:01:46]SAM_PROTO_ProcessDocument [00:01:46]wFMCommunicate request_size=9 [00:01:46]MH_SAM_APDU [00:01:46]CAPDU: 80 15 01 00 04 05 00 4E 00 [00:01:46]Write to MH i2c: E2 0C 00 28 14 80 15 01 00 04 00 05 00 4E 00 00 00 16 [00:01:46]Write i2c OK [00:01:46]MH_I2C_Read... [00:01:46]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:01:46]Read from MH i2c: E2 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 03 00 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 03 00 28 14 00 90 00 B0 [00:01:46]RAPDU: 90 00 [00:01:46]wFMCommunicate OK [00:01:46]wFMCommunicate request_size=23 [00:01:46]MH_SAM_APDU [00:01:46]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:01:46]Write to MH i2c: E2 1A 00 29 14 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 B2 [00:01:46]Write i2c OK [00:01:46]MH_I2C_Read... [00:01:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:47]Read from MH i2c: E2 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 03 00 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 03 00 29 14 00 90 00 B1 [00:01:47]RAPDU: 90 00 [00:01:47]wFMCommunicate OK [00:01:47]wFMCommunicate request_size=37 [00:01:47]MH_SAM_APDU [00:01:47]CAPDU: 80 15 02 00 20 FD 03 1C 00 D0 9A D0 BE D0 B9 D0 B3 D0 B5 D0 BB D1 8C D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 A0 2E [00:01:47]Write to MH i2c: E2 28 00 2A 14 80 15 02 00 20 00 FD 03 1C 00 D0 9A D0 BE D0 B9 D0 B3 D0 B5 D0 BB D1 8C D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 A0 2E 00 00 DC [00:01:47]Write i2c OK [00:01:47]MH_I2C_Read... [00:01:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:47]Read from MH i2c: E2 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 03 00 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 03 00 2A 14 00 90 00 B2 [00:01:47]RAPDU: 90 00 [00:01:47]wFMCommunicate OK [00:01:47]wFMCommunicate request_size=13 [00:01:47]MH_SAM_APDU [00:01:47]CAPDU: 80 15 02 00 08 F4 03 04 00 EB 07 5D 66 [00:01:47]Write to MH i2c: E2 10 00 2B 14 80 15 02 00 08 00 F4 03 04 00 EB 07 5D 66 00 00 7F [00:01:47]Write i2c OK [00:01:47]MH_I2C_Read... [00:01:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:47]Read from MH i2c: E2 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 03 00 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 03 00 2B 14 00 90 00 B3 [00:01:47]RAPDU: 90 00 [00:01:47]wFMCommunicate OK [00:01:47]wFMCommunicate request_size=25 [00:01:47]MH_SAM_APDU [00:01:47]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 [00:01:47]Write to MH i2c: E2 1C 00 2C 14 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 00 00 1E [00:01:47]Write i2c OK [00:01:47]MH_I2C_Read... [00:01:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:47]Read from MH i2c: E2 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 03 00 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 03 00 2C 14 00 90 00 B4 [00:01:47]RAPDU: 90 00 [00:01:47]wFMCommunicate OK [00:01:47]wFMCommunicate request_size=4 [00:01:47]MH_SAM_APDU [00:01:47]CAPDU: 80 15 03 00 [00:01:47]Write to MH i2c: E2 08 00 2D 14 80 15 03 00 00 00 00 00 C2 [00:01:47]Write i2c OK [00:01:47]MH_I2C_Read... [00:01:47]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:01:47]Read from MH i2c: E2 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 FD 00 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 FD 00 2D 14 00 FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3B E2 00 00 0E 04 04 00 45 00 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E7 02 00 00 AA 04 B8 04 6E 04 04 00 E5 02 00 00 69 04 9F 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 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 0C 50 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 05 F1 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 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 90 00 E1 [00:01:48]RAPDU: FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3B E2 00 00 0E 04 04 00 45 00 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E7 02 00 00 AA 04 B8 04 6E 04 04 00 E5 02 00 00 69 04 9F 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 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 0C 50 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 05 F1 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 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 90 00 [00:01:48]wFMCommunicate OK [00:01:48]SAM_PROTO_ProcessDocument answer len = 1279 [00:01:48]SAM_PROTO_ProcessDocument remain to read = 1031 [00:01:48]wFMCommunicate request_size=4 [00:01:48]MH_SAM_APDU [00:01:48]CAPDU: 80 17 00 00 [00:01:48]Write to MH i2c: E2 08 00 2E 14 80 17 00 00 00 00 00 00 C2 [00:01:48]Write i2c OK [00:01:48]MH_I2C_Read... [00:01:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:48]Read from MH i2c: E2 [00:01:48]MH_I2C_Read... [00:01:48]Read from MH i2c: E2 FD 00 [00:01:48]MH_I2C_Read... [00:01:48]Read from MH i2c: E2 FD 00 2E 14 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 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 43 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 66 [00:01:48]RAPDU: 50 34 03 70 04 03 00 50 34 03 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 1F 57 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 43 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:48]wFMCommunicate OK [00:01:48]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:01:48]SAM_PROTO_ProcessDocument remain to read = 781 [00:01:48]wFMCommunicate request_size=4 [00:01:48]MH_SAM_APDU [00:01:48]CAPDU: 80 17 00 00 [00:01:48]Write to MH i2c: E2 08 00 2F 14 80 17 00 00 00 00 00 00 C3 [00:01:48]OFD Sender: No OFD packet to send [00:01:48]Write i2c OK [00:01:48]MH_I2C_Read... [00:01:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:48]Read from MH i2c: E2 [00:01:48]MH_I2C_Read... [00:01:48]Read from MH i2c: E2 FD 00 [00:01:48]MH_I2C_Read... [00:01:48]Read from MH i2c: E2 FD 00 2F 14 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 29 [00:01:49]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:01:49]wFMCommunicate OK [00:01:49]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:01:49]SAM_PROTO_ProcessDocument remain to read = 531 [00:01:49]wFMCommunicate request_size=4 [00:01:49]MH_SAM_APDU [00:01:49]CAPDU: 80 17 00 00 [00:01:49]Write to MH i2c: E2 08 00 30 14 80 17 00 00 00 00 00 00 C4 [00:01:49]Write i2c OK [00:01:49]MH_I2C_Read... [00:01:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:49]Read from MH i2c: E2 [00:01:49]MH_I2C_Read... [00:01:49]Read from MH i2c: E2 FD 00 [00:01:49]MH_I2C_Read... [00:01:49]Read from MH i2c: E2 FD 00 30 14 00 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [00:01:49]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:49]wFMCommunicate OK [00:01:49]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:01:49]SAM_PROTO_ProcessDocument remain to read = 281 [00:01:49]wFMCommunicate request_size=4 [00:01:49]MH_SAM_APDU [00:01:49]CAPDU: 80 17 00 00 [00:01:49]Write to MH i2c: E2 08 00 31 14 80 17 00 00 00 00 00 00 C5 [00:01:49]Write i2c OK [00:01:49]MH_I2C_Read... [00:01:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:50]Read from MH i2c: E2 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 FD 00 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 FD 00 31 14 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 71 [00:01:50]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:01:50]wFMCommunicate OK [00:01:50]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:01:50]SAM_PROTO_ProcessDocument remain to read = 31 [00:01:50]wFMCommunicate request_size=4 [00:01:50]MH_SAM_APDU [00:01:50]CAPDU: 80 17 00 00 [00:01:50]Write to MH i2c: E2 08 00 32 14 80 17 00 00 00 00 00 00 C6 [00:01:50]Write i2c OK [00:01:50]MH_I2C_Read... [00:01:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [00:01:50]Read from MH i2c: E2 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 22 00 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 22 00 32 14 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 8B 54 65 18 3A 68 90 00 0E [00:01:50]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 8B 54 65 18 3A 68 90 00 [00:01:50]wFMCommunicate OK [00:01:50]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [00:01:50]SAM_PROTO_ProcessDocument done [00:01:50]1209 (1) - 1.0 - номер версии ФФД [00:01:50]1041 (16) - 0000000000959414 - номер ФМ [00:01:50]1040 (4) - 57915 - номер ФД [00:01:50]1038 (4) - 69 - номер смены [00:01:50]1118 (4) - 741 - количество кассовых чеков за смену [00:01:50]1111 (4) - 743 - общее количество ФД за смену [00:01:50]1194 (1208) - счетчики итогов смены [00:01:50] 1134 (4) - 741 - количество чеков со всеми признаками расчетов [00:01:50] 1129 (159) - счетчики операций «приход» [00:01:50] 1135 (4) - 740 - количество чеков по признаку расчетов [00:01:50] 1201 (4) - 662058.09 - общая итоговая сумма в чеках [00:01:50] 1136 (4) - 479888.00 - итоговая сумма в чеках наличными [00:01:50] 1138 (4) - 182170.09 - итоговая сумма в чеках безналичными [00:01:50] 1024 (123) - суммы налогов [00:01:50] 1006 (9) - суммы НДС [00:01:50] 1010 (1) - 0% - код ставки НДС [00:01:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:50] 1006 (12) - суммы НДС [00:01:50] 1010 (1) - 12% - код ставки НДС [00:01:50] 1011 (3) - 70328.44 - сумма НДС по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 0% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (12) - суммы НСП [00:01:50] 1014 (1) - 1% - код ставки НСП [00:01:50] 1015 (3) - 5859.89 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 2% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 3% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 5% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 0,50% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 1,50% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1130 (151) - счетчики операций «возврат прихода» [00:01:50] 1135 (4) - 1 - количество чеков по признаку расчетов [00:01:50] 1201 (3) - 2100.00 - общая итоговая сумма в чеках [00:01:50] 1136 (3) - 2100.00 - итоговая сумма в чеках наличными [00:01:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:01:50] 1024 (121) - суммы налогов [00:01:50] 1006 (9) - суммы НДС [00:01:50] 1010 (1) - 0% - код ставки НДС [00:01:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:50] 1006 (11) - суммы НДС [00:01:50] 1010 (1) - 12% - код ставки НДС [00:01:50] 1011 (2) - 223.03 - сумма НДС по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 0% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (11) - суммы НСП [00:01:50] 1014 (1) - 1% - код ставки НСП [00:01:50] 1015 (2) - 18.59 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 2% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 3% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 5% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 0,50% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 1,50% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1131 (141) - счетчики операций «расход» [00:01:50] 1135 (4) - 0 - количество чеков по признаку расчетов [00:01:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:01:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:01:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:01:50] 1024 (117) - суммы налогов [00:01:50] 1006 (9) - суммы НДС [00:01:50] 1010 (1) - 0% - код ставки НДС [00:01:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:50] 1006 (9) - суммы НДС [00:01:50] 1010 (1) - 12% - код ставки НДС [00:01:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 0% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 1% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 2% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 3% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 5% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 0,50% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 1,50% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1132 (141) - счетчики операций «возврат расхода» [00:01:50] 1135 (4) - 0 - количество чеков по признаку расчетов [00:01:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:01:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:01:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:01:50] 1024 (117) - суммы налогов [00:01:50] 1006 (9) - суммы НДС [00:01:50] 1010 (1) - 0% - код ставки НДС [00:01:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:50] 1006 (9) - суммы НДС [00:01:50] 1010 (1) - 12% - код ставки НДС [00:01:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 0% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 1% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 2% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 3% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 5% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 0,50% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1007 (9) - суммы НСП [00:01:50] 1014 (1) - 1,50% - код ставки НСП [00:01:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:50] 1133 (588) - - счетчики коррекции - не используются [00:01:50]1077 (6) - 153194589600360 - ФПД [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1209 (04B9) [00:01:50]Malloc new data [00:01:50]Processing tag 1041 (0411) [00:01:50]Processing tag 1040 (0410) [00:01:50]Malloc new data [00:01:50]Processing tag 1038 (040E) [00:01:50]Malloc new data [00:01:50]Processing tag 1118 (045E) [00:01:50]Malloc new data [00:01:50]Processing tag 1111 (0457) [00:01:50]Malloc new data [00:01:50]Processing tag 1194 (04AA) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1134 (046E) [00:01:50]Malloc new data [00:01:50]Processing tag 1129 (0469) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1135 (046F) [00:01:50]Malloc new data [00:01:50]Processing tag 1201 (04B1) [00:01:50]Malloc new data [00:01:50]Processing tag 1136 (0470) [00:01:50]Malloc new data [00:01:50]Processing tag 1138 (0472) [00:01:50]Malloc new data [00:01:50]Processing tag 1024 (0400) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1006 (03EE) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1010 (03F2) [00:01:50]Malloc new data [00:01:50]Processing tag 1011 (03F3) [00:01:50]Malloc new data [00:01:50]SetTLVBufToDocument err=0 [00:01:50]Processing tag 1006 (03EE) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1010 (03F2) [00:01:50]Malloc new data [00:01:50]Processing tag 1011 (03F3) [00:01:50]Malloc new data [00:01:50]SetTLVBufToDocument err=0 [00:01:50]Processing tag 1007 (03EF) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1014 (03F6) [00:01:50]Malloc new data [00:01:50]Processing tag 1015 (03F7) [00:01:50]Malloc new data [00:01:50]SetTLVBufToDocument err=0 [00:01:50]Processing tag 1007 (03EF) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1014 (03F6) [00:01:50]Malloc new data [00:01:50]Processing tag 1015 (03F7) [00:01:50]Malloc new data [00:01:50]SetTLVBufToDocument err=0 [00:01:50]Processing tag 1007 (03EF) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1014 (03F6) [00:01:50]Malloc new data [00:01:50]Processing tag 1015 (03F7) [00:01:50]Malloc new data [00:01:50]SetTLVBufToDocument err=0 [00:01:50]Processing tag 1007 (03EF) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1014 (03F6) [00:01:50]Malloc new data [00:01:50]Processing tag 1015 (03F7) [00:01:50]Malloc new data [00:01:50]SetTLVBufToDocument err=0 [00:01:50]Processing tag 1007 (03EF) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1014 (03F6) [00:01:50]Malloc new data [00:01:50]Processing tag 1015 (03F7) [00:01:50]Malloc new data [00:01:50]SetTLVBufToDocument err=0 [00:01:50]Processing tag 1007 (03EF) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1014 (03F6) [00:01:50]Malloc new data [00:01:50]Processing tag 1015 (03F7) [00:01:50]Malloc new data [00:01:50]SetTLVBufToDocument err=0 [00:01:50]Processing tag 1007 (03EF) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1014 (03F6) [00:01:50]Malloc new data [00:01:50]Processing tag 1015 (03F7) [00:01:50]Malloc new data [00:01:50]SetTLVBufToDocument err=0 [00:01:50]SetTLVBufToDocument err=0 [00:01:50]SetTLVBufToDocument err=0 [00:01:50]Processing tag 1130 (046A) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1135 (046F) [00:01:50]Malloc new data [00:01:50]Processing tag 1201 (04B1) [00:01:50]Malloc new data [00:01:50]Processing tag 1136 (0470) [00:01:50]Malloc new data [00:01:50]Processing tag 1138 (0472) [00:01:50]Malloc new data [00:01:50]Processing tag 1024 (0400) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1006 (03EE) [00:01:50]Load OK [00:01:50]SetTLVBufToDocument [00:01:50]Processing tag 1010 (03F2) [00:01:50]Malloc new data [00:01:50]Processing tag 1011 (03F3) [00:01:50]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1006 (03EE) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1010 (03F2) [00:01:51]Malloc new data [00:01:51]Processing tag 1011 (03F3) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]SetTLVBufToDocument err=0 [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1131 (046B) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1135 (046F) [00:01:51]Malloc new data [00:01:51]Processing tag 1201 (04B1) [00:01:51]Malloc new data [00:01:51]Processing tag 1136 (0470) [00:01:51]Malloc new data [00:01:51]Processing tag 1138 (0472) [00:01:51]Malloc new data [00:01:51]Processing tag 1024 (0400) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1006 (03EE) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1010 (03F2) [00:01:51]Malloc new data [00:01:51]Processing tag 1011 (03F3) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1006 (03EE) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1010 (03F2) [00:01:51]Malloc new data [00:01:51]Processing tag 1011 (03F3) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]SetTLVBufToDocument err=0 [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1132 (046C) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1135 (046F) [00:01:51]Malloc new data [00:01:51]Processing tag 1201 (04B1) [00:01:51]Malloc new data [00:01:51]Processing tag 1136 (0470) [00:01:51]Malloc new data [00:01:51]Processing tag 1138 (0472) [00:01:51]Malloc new data [00:01:51]Processing tag 1024 (0400) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1006 (03EE) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1010 (03F2) [00:01:51]Malloc new data [00:01:51]Processing tag 1011 (03F3) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1006 (03EE) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1010 (03F2) [00:01:51]Malloc new data [00:01:51]Processing tag 1011 (03F3) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1007 (03EF) [00:01:51]Load OK [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1014 (03F6) [00:01:51]Malloc new data [00:01:51]Processing tag 1015 (03F7) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]SetTLVBufToDocument err=0 [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1133 (046D) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Processing tag 1077 (0435) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]Malloc new data [00:01:51]SAM_PROTO_GetFMData [00:01:51]wFMCommunicate request_size=4 [00:01:51]MH_SAM_APDU [00:01:51]CAPDU: 80 13 03 00 [00:01:51]Write to MH i2c: E2 08 00 33 14 80 13 03 00 00 00 00 00 C6 [00:01:51]Write i2c OK [00:01:51]MH_I2C_Read... [00:01:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:51]Read from MH i2c: E2 [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: E2 FD 00 [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: E2 FD 00 33 14 00 C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 8C [00:01:52]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 [00:01:52]wFMCommunicate OK [00:01:52]wFMCommunicate request_size=4 [00:01:52]MH_SAM_APDU [00:01:52]CAPDU: 80 17 00 00 [00:01:52]Write to MH i2c: E2 08 00 34 14 80 17 00 00 00 00 00 00 C8 [00:01:52]Write i2c OK [00:01:52]MH_I2C_Read... [00:01:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:52]Read from MH i2c: E2 [00:01:52]MH_I2C_Read... [00:01:52]Read from MH i2c: E2 FD 00 [00:01:52]MH_I2C_Read... [00:01:52]Read from MH i2c: E2 FD 00 34 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FF [00:01:52]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:52]wFMCommunicate OK [00:01:52]wFMCommunicate request_size=4 [00:01:52]MH_SAM_APDU [00:01:52]CAPDU: 80 17 00 00 [00:01:52]Write to MH i2c: E2 08 00 35 14 80 17 00 00 00 00 00 00 C9 [00:01:52]Write i2c OK [00:01:52]MH_I2C_Read... [00:01:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:53]Read from MH i2c: E2 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 FD 00 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 FD 00 35 14 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DB [00:01:53]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:53]wFMCommunicate OK [00:01:53]wFMCommunicate request_size=4 [00:01:53]MH_SAM_APDU [00:01:53]CAPDU: 80 17 00 00 [00:01:53]Write to MH i2c: E2 08 00 36 14 80 17 00 00 00 00 00 00 CA [00:01:53]Write i2c OK [00:01:53]MH_I2C_Read... [00:01:53]OFD Sender: No OFD packet to send [00:01:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:53]Read from MH i2c: E2 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 FD 00 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 FD 00 36 14 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 56 [00:01:54]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:54]wFMCommunicate OK [00:01:54]wFMCommunicate request_size=4 [00:01:54]MH_SAM_APDU [00:01:54]CAPDU: 80 17 00 00 [00:01:54]Write to MH i2c: E2 08 00 37 14 80 17 00 00 00 00 00 00 CB [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:01:54]Read from MH i2c: E2 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 E2 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 E2 00 37 14 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A9 [00:01:54]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:54]wFMCommunicate OK [00:01:54]SAM_PROTO_GetFMData done [00:01:54]Malloc new data [00:01:54]Malloc new data [00:01:54]Malloc new data [00:01:54]Malloc new data [00:01:54]KKMLoadAndSignCloseShiftData err=0 [00:01:54]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Койгельдиева Р. 03.06.2024 00:01 Смена: 69 РНМ: 0000000000151680 ЗНМ: 0300000048 СНО: Общий режим Чеков за смену: 741 ФД за смену: 743 Всего чеков: 741 ИТОГИ ПРИХОД Чеков: 740 Общий итог: 662058.09 Итого наличными: 479888.00 Итого безнал.: 182170.09 НДС 0% : 0.00 НДС 12% : 70328.44 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 5859.89 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 2100.00 Итого наличными: 2100.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 223.03 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 18.59 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 477788.00 НС Приход: 53016243.51 НС Возвр.Прихода: 697985.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 57915 ФМ: 0000000000959414 ФПД: 153194589600360 [00:01:54]StoreToDocumentArchive [00:01:54]shift 69 fd 57915 [00:01:54]save to /storage/0069/doc_00057915 [00:01:54]save last doc name /storage/0069/doc_00057915 to /storage/kkm_last_doc_name [00:01:54]save OK [00:01:54]Clear old archive folders... [00:01:54]Remove dir /storage/0010 [00:01:54]opendir ok [00:01:54]file . [00:01:54]file .. [00:01:54]file doc_1717372865 [00:01:54]remove file /storage/0010/doc_1717372865 [00:01:54]remove dir /storage/0010 [00:01:54]NVStorageSaveData kkm_registers [00:01:54]File name is /storage/kkm_registers [00:01:54]Write 24 bytes [00:01:54]NVStorageSaveData done [00:01:54]NVStorageSaveData kkm_registers [00:01:54]File name is /storage/kkm_registers [00:01:54]Write 24 bytes [00:01:54]NVStorageSaveData done [00:01:54]ProcessDocumentItem done err = 0, tmpTLVsize=1396 [00:01:54]tlvbuf is 01B47310 [00:01:54]SAM_PROTO_ClearQueue [00:01:54]wFMCommunicate request_size=4 [00:01:54]MH_SAM_APDU [00:01:54]CAPDU: 80 09 00 00 [00:01:54]Write to MH i2c: E2 08 00 38 14 80 09 00 00 00 00 00 00 BE [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:54]Read from MH i2c: E2 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 03 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 03 00 38 14 00 90 00 C0 [00:01:54]RAPDU: 90 00 [00:01:54]wFMCommunicate OK [00:01:54]SAM_PROTO_ClearQueue done [00:01:54]KKMCreateOFDPacket [00:01:54]OFDProtocolAddRootSTLVToBuf [00:01:54]FM_MakeSignedData [00:01:54]FM_MakeSignedData [00:01:54]SAM_PROTO_SignData [00:01:54]wFMCommunicate request_size=4 [00:01:54]MH_SAM_APDU [00:01:54]CAPDU: 80 0D 01 02 [00:01:54]Write to MH i2c: E2 08 00 39 14 80 0D 01 02 00 00 00 00 C6 [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:54]Read from MH i2c: E2 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 03 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 03 00 39 14 00 90 00 C1 [00:01:55]RAPDU: 90 00 [00:01:55]wFMCommunicate OK [00:01:55]wFMCommunicate request_size=255 [00:01:55]MH_SAM_APDU [00:01:55]CAPDU: 80 0D 02 02 FA 05 00 74 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 1C 00 D0 9A D0 BE D0 B9 D0 B3 D0 B5 D0 BB D1 8C D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 A0 2E F4 03 04 00 EB 07 5D 66 0E 04 04 00 45 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 5E 04 04 00 E5 02 00 00 57 04 04 00 E7 02 00 00 AA 04 DF 04 6E 04 04 00 E5 02 00 00 69 04 A6 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 01 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 0C 50 6B 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 [00:01:55]Write to MH i2c: E2 02 01 3A 14 80 0D 02 02 FA 00 05 00 74 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 1C 00 D0 9A D0 BE D0 B9 D0 B3 D0 B5 D0 BB D1 8C D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 A0 2E F4 03 04 00 EB 07 5D 66 0E 04 04 00 45 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 5E 04 04 00 E5 02 00 00 57 04 04 00 E7 02 00 00 AA 04 DF 04 6E 04 04 00 E5 02 00 00 69 04 A6 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 01 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 0C 50 6B 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 00 00 A7 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:55]Read from MH i2c: E2 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 03 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 03 00 3A 14 00 90 00 C2 [00:01:55]RAPDU: 90 00 [00:01:55]wFMCommunicate OK [00:01:55]wFMCommunicate request_size=255 [00:01:55]MH_SAM_APDU [00:01:55]CAPDU: 80 0D 02 02 FA 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 05 F1 08 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 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 43 07 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:01:55]Write to MH i2c: E2 02 01 3B 14 80 0D 02 02 FA 00 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 05 F1 08 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 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 43 07 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 00 33 [00:01:56]Write i2c OK [00:01:56]MH_I2C_Read... [00:01:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:56]Read from MH i2c: E2 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 03 00 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 03 00 3B 14 00 90 00 C3 [00:01:56]RAPDU: 90 00 [00:01:56]wFMCommunicate OK [00:01:56]wFMCommunicate request_size=255 [00:01:56]MH_SAM_APDU [00:01:56]CAPDU: 80 0D 02 02 FA 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 [00:01:56]Write to MH i2c: E2 02 01 3C 14 80 0D 02 02 FA 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 00 00 86 [00:01:56]Write i2c OK [00:01:56]MH_I2C_Read... [00:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:57]Read from MH i2c: E2 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 03 00 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 03 00 3C 14 00 90 00 C4 [00:01:57]RAPDU: 90 00 [00:01:57]wFMCommunicate OK [00:01:57]wFMCommunicate request_size=255 [00:01:57]MH_SAM_APDU [00:01:57]CAPDU: 80 0D 02 02 FA 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 [00:01:57]Write to MH i2c: E2 02 01 3D 14 80 0D 02 02 FA 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 00 00 92 [00:01:57]Write i2c OK [00:01:57]MH_I2C_Read... [00:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:57]Read from MH i2c: E2 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 03 00 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 03 00 3D 14 00 90 00 C5 [00:01:57]RAPDU: 90 00 [00:01:57]wFMCommunicate OK [00:01:57]wFMCommunicate request_size=255 [00:01:57]MH_SAM_APDU [00:01:57]CAPDU: 80 0D 02 02 FA 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:01:57]Write to MH i2c: E2 02 01 3E 14 80 0D 02 02 FA 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 00 00 5E [00:01:58]Write i2c OK [00:01:58]MH_I2C_Read... [00:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:58]Read from MH i2c: E2 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 03 00 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 03 00 3E 14 00 90 00 C6 [00:01:58]RAPDU: 90 00 [00:01:58]wFMCommunicate OK [00:01:58]wFMCommunicate request_size=155 [00:01:58]MH_SAM_APDU [00:01:58]CAPDU: 80 0D 02 02 96 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3B E2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 35 04 06 00 8B 54 65 18 3A 68 [00:01:58]Write to MH i2c: E2 9E 00 3F 14 80 0D 02 02 96 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 3B E2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 35 04 06 00 8B 54 65 18 3A 68 00 00 2F [00:01:58]Write i2c OK [00:01:58]MH_I2C_Read... [00:01:58]OFD Sender: No OFD packet to send [00:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:58]Read from MH i2c: E2 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 03 00 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 03 00 3F 14 00 90 00 C7 [00:01:58]RAPDU: 90 00 [00:01:58]wFMCommunicate OK [00:01:58]wFMCommunicate request_size=4 [00:01:58]MH_SAM_APDU [00:01:58]CAPDU: 80 0D 03 02 [00:01:58]Write to MH i2c: E2 08 00 40 14 80 0D 03 02 00 00 00 00 CF [00:01:58]Write i2c OK [00:01:58]MH_I2C_Read... [00:01:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:58]Read from MH i2c: E2 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 0B 00 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 0B 00 40 14 00 92 62 9B B0 55 02 5E 44 90 00 08 [00:01:58]RAPDU: 92 62 9B B0 55 02 5E 44 90 00 [00:01:58]wFMCommunicate OK [00:01:58]SAM_PROTO_SignData done [00:01:58]FM_MakeSignedData done [00:01:58]CreateOFDProtocolMessage [00:01:58]wFMCommunicate request_size=4 [00:01:58]MH_SAM_APDU [00:01:58]CAPDU: 80 11 00 00 [00:01:58]Write to MH i2c: E2 08 00 41 14 80 11 00 00 00 00 00 00 CF [00:01:58]Write i2c OK [00:01:58]MH_I2C_Read... [00:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:59]Read from MH i2c: E2 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 17 00 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 17 00 41 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 22 [00:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:01:59]wFMCommunicate OK [00:01:59]CreateOFDProtocolMessage done [00:01:59]OFDSenderStorePacket 57915 [00:01:59]StoreOFDPacket docnum=57915 [00:01:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 88 05 00 00 2B 50 80 05 EE 80 5A 05 01 00 05 00 74 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 1C 00 D0 9A D0 BE D0 B9 D0 B3 D0 B5 D0 BB D1 8C D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 A0 2E F4 03 04 00 EB 07 5D 66 0E 04 04 00 45 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 5E 04 04 00 E5 02 00 00 57 04 04 00 E7 02 00 00 AA 04 DF 04 6E 04 04 00 E5 02 00 00 69 04 A6 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 01 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 0C 50 6B 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 05 F1 08 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 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 43 07 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 3B E2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 35 04 06 00 8B 54 65 18 3A 68 92 62 9B B0 55 02 5E 44 [00:01:59]CheckFolder [00:01:59]dirname=/storage/ofd_packets [00:01:59]CheckFolder done [00:01:59]ProducePacketName [00:01:59]name=ofd_packets/00057915 [00:01:59]NVStorageSaveData ofd_packets/00057915 [00:01:59]File name is /storage/ofd_packets/00057915 [00:01:59]Write 1446 bytes [00:01:59]NVStorageSaveData done [00:01:59]OFDSenderStorePacket done [00:01:59]KKMCreateOFDPacket done [00:01:59]NVStorageSaveData kkm_last_timestamp [00:01:59]File name is /storage/kkm_last_timestamp [00:01:59]Write 4 bytes [00:01:59]NVStorageSaveData done [00:01:59]ExternCall_PrintAddStr [00:01:59]wPrintStart [00:01:59]Write to MH i2c: 01 00 00 42 14 56 [00:01:59]Write i2c OK [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: 01 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: 01 07 00 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: 01 07 00 42 14 00 00 00 00 00 FF 0F 6B [00:01:59]RasterBufferAndPrint [00:01:59]line Отчет о закрытии смены [00:01:59]line ФФД: 1.0 [00:01:59]line ИНН: 02508201610067 [00:01:59]line Кассир: Койгельдиева Р. [00:01:59]line 03.06.2024 00:01 [00:01:59]line Смена: 69 [00:01:59]line РНМ: 0000000000151680 [00:01:59]line ЗНМ: 0300000048 [00:01:59]line СНО: Общий режим [00:01:59]line Чеков за смену: 741 [00:01:59]line ФД за смену: 743 [00:01:59]line Всего чеков: 741 [00:01:59]line ИТОГИ ПРИХОД [00:01:59]line Чеков: 740 [00:01:59]line Общий итог: 662058.09 [00:01:59]line Итого наличными: 479888.00 [00:01:59]line Итого безнал.: 182170.09 [00:01:59]line НДС 0% : 0.00 [00:01:59]line НДС 12% : 70328.44 [00:01:59]line НСП 0% : 0.00 [00:01:59]line НСП 1,50% : 0.00 [00:01:59]line НСП 0,50% : 0.00 [00:01:59]line НСП 5% : 0.00 [00:01:59]line НСП 3% : 0.00 [00:01:59]line НСП 2% : 0.00 [00:01:59]line НСП 1% : 5859.89 [00:01:59]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:01:59]line Чеков: 1 [00:01:59]line Общий итог: 2100.00 [00:01:59]line Итого наличными: 2100.00 [00:01:59]line Итого безнал.: 0.00 [00:01:59]line НДС 0% : 0.00 [00:01:59]line НДС 12% : 223.03 [00:01:59]line НСП 0% : 0.00 [00:01:59]line НСП 1,50% : 0.00 [00:01:59]line НСП 0,50% : 0.00 [00:01:59]line НСП 5% : 0.00 [00:01:59]line НСП 3% : 0.00 [00:01:59]line НСП 2% : 0.00 [00:01:59]line НСП 1% : 18.59 [00:01:59]line ИТОГИ РАСХОД [00:01:59]line Чеков: 0 [00:01:59]line Общий итог: 0.00 [00:01:59]line Итого наличными: 0.00 [00:01:59]line Итого безнал.: 0.00 [00:01:59]line НДС 0% : 0.00 [00:01:59]line НДС 12% : 0.00 [00:01:59]line НСП 0% : 0.00 [00:01:59]line НСП 1,50% : 0.00 [00:01:59]line НСП 0,50% : 0.00 [00:01:59]line НСП 5% : 0.00 [00:01:59]line НСП 3% : 0.00 [00:01:59]line НСП 2% : 0.00 [00:01:59]line НСП 1% : 0.00 [00:01:59]line ИТОГИ ВОЗВРАТ РАСХОДА [00:01:59]line Чеков: 0 [00:01:59]line Общий итог: 0.00 [00:01:59]line Итого наличными: 0.00 [00:01:59]line Итого безнал.: 0.00 [00:01:59]line НДС 0% : 0.00 [00:01:59]line НДС 12% : 0.00 [00:01:59]line НСП 0% : 0.00 [00:01:59]line НСП 1,50% : 0.00 [00:01:59]line НСП 0,50% : 0.00 [00:01:59]line НСП 5% : 0.00 [00:01:59]line НСП 3% : 0.00 [00:01:59]line НСП 2% : 0.00 [00:01:59]line НСП 1% : 0.00 [00:01:59]line Сумма внесений: 0.00 [00:01:59]line Сумма выплат: 0.00 [00:01:59]line Нал. в кассе: 477788.00 [00:01:59]line НС Приход: 53016243.51 [00:01:59]line НС Возвр.Прихода: 697985.00 [00:01:59]line НС Расход: 0.00 [00:01:59]line НС Возвр.Расхода: 0.00 [00:01:59]line ФД: 57915 [00:01:59]line ФМ: 0000000000959414 [00:01:59]line ФПД: 153194589600360 [00:01:59]OFD Sender: Processing packet 57915 [packets to send 50, broken 49] [00:01:59]ProducePacketName [00:01:59]name=ofd_packets/00057915 [00:01:59]OFD Sender: To server: pG, [00:01:59]CommunicateWithHost lk.salyk.kg:30040 [00:01:59]ConnectInit lk.salyk.kg [00:01:59]written 0, free lines is 4095 [00:01:59]Connected sock=10 [00:01:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 88 05 00 00 2B 50 80 05 EE 80 5A 05 01 00 05 00 74 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 1C 00 D0 9A D0 BE D0 B9 D0 B3 D0 B5 D0 BB D1 8C D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 A0 2E F4 03 04 00 EB 07 5D 66 0E 04 04 00 45 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 5E 04 04 00 E5 02 00 00 57 04 04 00 E7 02 00 00 AA 04 DF 04 6E 04 04 00 E5 02 00 00 69 04 A6 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 01 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 0C 50 6B 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 05 F1 08 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 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 43 07 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 Write to MH i2c: 00 01 00 00 F7 00 03 92 00 14 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 A6 00 [00:02:00]EF Write i2c OK [00:02:00]03 MH_I2C_Read... [00:02:00]09 Read from MH i2c: 00 01 F6 [00:02:00]03 MH_I2C_Read... [00:02:00]01 00 02 F7 03 00 00 EF 03 Read from MH i2c: 09 01 07 00 00 F6 [00:02:00]03 MH_I2C_Read... [00:02:00]01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 Read from MH i2c: 00 01 04 07 F7 00 03 92 00 14 00 00 EF 00 03 00 09 00 00 00 F6 C3 03 0B 01 7B 00 [00:02:00]05 RasterBufferAndPrint [00:02:00]F7 line [00:02:00]03 line [00:02:00]00 line [00:02:00]00 line [00:02:00]EF line [00:02:00]03 09 written 0, free lines is 3140 [00:02:00]00 F6 03 01 00 06 F7 03 00 00 D0 04 MH_Cut [00:02:00]8D Write to MH i2c: 00 D1 6F 01 04 00 04 99 00 14 00 00 00 00 B1 04 00 00 70 04 00 00 72 01 04 7F 00 [00:02:00]00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 Write i2c OK [00:02:00]09 MH_I2C_Read... [00:02:00]00 Read from MH i2c: F2 D1 03 [00:02:00]01 MH_I2C_Read... [00:02:00]00 01 F3 03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 D1 01 01 00 00 00 [00:02:00]F7 MH_I2C_Read... [00:02:00]03 00 00 EF 03 09 00 F6 03 01 00 01 F7 Read from MH i2c: 03 D1 00 01 00 00 EF 99 03 14 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 00 7E F6 [00:02:00]03 Write to MH i2c: 01 01 00 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 00 04 9A F7 14 03 AE 00 [00:02:00]00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF Write i2c OK [00:02:00]03 MH_I2C_Read... [00:02:00]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 3B E2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 35 04 06 00 8B 54 65 18 3A 68 92 62 9B B0 55 02 5E 44 [00:02:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 82 D9 47 00 53 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 *** Cut start [00:02:01]39 34 *** Partial cut [00:02:01]31 34 10 04 04 00 3B E2 00 00 F4 03 04 00 C7 B2 5C 66 B6 04 01 00 00 CC *** CUTSNS_PIN = 1 [00:02:01]C1 FA *** CUTSNS_PIN = 0 [00:02:01]C4 FF 17 06 97 [00:02:01]CommunicateWithHost err = 0 [00:02:01]CheckOFDResponse [00:02:01]1017 (14) - 77093643461234 [00:02:01]1041 (16) - 0000000000959414 [00:02:01]1040 (4) - 57915 [00:02:01]1012 (4) - 02.06.2024 17:58 [00:02:01]1206 (1) - 0 [00:02:01]OFD Sender: Remove packet 57915 [00:02:01]ProducePacketName [00:02:01]name=ofd_packets/00057915 [00:02:01]NVStorageDeleteData [00:02:01]*** Brake cut motor [00:02:02]Read from MH i2c: 01 [00:02:02]MH_I2C_Read... [00:02:02]*** Stop cut motor [00:02:02]*** Cut end [00:02:02]Read from MH i2c: 01 07 00 [00:02:02]MH_I2C_Read... [00:02:02]Read from MH i2c: 01 07 00 9A 14 00 00 00 00 00 FF 0F C3 [00:02:02]process_action close_shift done [00:02:02]requested_data is exist [00:02:02]produce_requested_data [00:02:02]requested_item fd.num is exist - process it [00:02:02]SAM_PROTO_GetFieldsCounters [00:02:02]wFMCommunicate request_size=4 [00:02:02]MH_SAM_APDU [00:02:02]CAPDU: 80 13 00 00 [00:02:02]Write to MH i2c: E2 08 00 9B 14 80 13 00 00 00 00 00 00 2B [00:02:02]Write i2c OK [00:02:02]MH_I2C_Read... [00:02:02]OFD Sender: No OFD packet to send [00:02:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:02]Read from MH i2c: E2 [00:02:02]MH_I2C_Read... [00:02:02]Read from MH i2c: E2 62 00 [00:02:02]MH_I2C_Read... [00:02:02]Read from MH i2c: E2 62 00 9B 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3B E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E5 02 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E7 02 00 00 19 04 04 00 00 00 00 00 90 00 60 [00:02:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3B E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E5 02 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E7 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:02]wFMCommunicate OK [00:02:02]SAM_PROTO_GetFieldsCounters done [00:02:02]requested_item shift.num is exist - process it [00:02:02]requested_item shift.opened is exist - process it [00:02:02]req_shift_opened [00:02:02]FM_GetShiftState [00:02:02]SAM_PROTO_GetShiftState [00:02:02]wFMCommunicate request_size=4 [00:02:02]MH_SAM_APDU [00:02:02]CAPDU: 80 13 01 00 [00:02:02]Write to MH i2c: E2 08 00 9C 14 80 13 01 00 00 00 00 00 2D [00:02:02]Write i2c OK [00:02:02]MH_I2C_Read... [00:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:02]Read from MH i2c: E2 [00:02:02]MH_I2C_Read... [00:02:02]Read from MH i2c: E2 0E 00 [00:02:02]MH_I2C_Read... [00:02:02]Read from MH i2c: E2 0E 00 9C 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 38 [00:02:02]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:02:02]wFMCommunicate OK [00:02:02]SAM_PROTO_GetShiftState done [00:02:02]FM_GetShiftState done [00:02:02]req_shift_opened done [00:02:02]requested_item shift.open_date is exist - process it [00:02:02]req_shift_open_date [00:02:02]FM_GetShiftState [00:02:02]SAM_PROTO_GetShiftState [00:02:02]wFMCommunicate request_size=4 [00:02:02]MH_SAM_APDU [00:02:02]CAPDU: 80 13 01 00 [00:02:02]Write to MH i2c: E2 08 00 9D 14 80 13 01 00 00 00 00 00 2E [00:02:02]Write i2c OK [00:02:02]MH_I2C_Read... [00:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:02]Read from MH i2c: E2 [00:02:02]MH_I2C_Read... [00:02:02]Read from MH i2c: E2 0E 00 [00:02:02]MH_I2C_Read... [00:02:02]Read from MH i2c: E2 0E 00 9D 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 39 [00:02:02]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:02:02]wFMCommunicate OK [00:02:02]SAM_PROTO_GetShiftState done [00:02:02]FM_GetShiftState done [00:02:02]req_shift_open_date done [00:02:02]produce_requested_data done [00:02:02]produce_requested_data return {"fd.num":57915,"shift.num":69,"shift.opened":0,"shift.open_date":0} [00:02:02]process_action_free close_shift [00:02:02]json_value_free [00:02:02]json_value_free done [00:02:02]process_json_proto returns [00:02:02]Send response to host [00:02:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":57915,"shift.num":69,"shift.opened":0,"shift.open_date":0}}} [00:02:02]free response buf [00:02:02]execute_script done [00:02:02]execute_script returns [00:02:02]free content buf [00:02:02]Sock 9.Close socket [00:02:02]Sock 9.Thread stoped [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]accept exits with 8 [00:10:12]New connection [00:10:12]New thread 3066735972 created [00:10:12]Thread 3066592612 joined [00:10:12]Waiting for new connection... [00:10:12] Sock 8.Parse request [00:10:12]Sock 8.Check first char [00:10:12]Sock 8.First char is OK [00:10:12]request: POST /json_proto HTTP/1.0 [00:10:12]Method: POST [00:10:12]URL: /json_proto [00:10:12]Method is POST - this is cgi request [00:10:12]url: /json_proto [00:10:12]query_string will be loaded in cgi processing [00:10:12]execute_cgi json_proto POST (null) [00:10:12]execute_cgi path=json_proto method=POST [00:10:12]POST find Content-Length [00:10:12]Host: 172.17.60.68:8080 [00:10:12]Content-Length: 215 [00:10:12]Content-Type: application/json [00:10:12] [00:10:12]POST finish read [00:10:12]Found Content-Length = 215 [00:10:12]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:10:12]execute_script... [00:10:12]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:10:12]POST & json_proto [00:10:12]process_json_proto [00:10:12]json parsed OK: [00:10:12]protocol is kg_v1.0 [00:10:12]action value=get_value [00:10:12]process_action get_value [00:10:12]cmd_get_value [00:10:12]process_action get_value done [00:10:12]requested_data is exist [00:10:12]produce_requested_data [00:10:12]requested_item kkm.sn is exist - process it [00:10:12]requested_item kkm.ver is exist - process it [00:10:12]requested_item fm.sn is exist - process it [00:10:12]wFMCommunicate request_size=4 [00:10:12]MH_SAM_APDU [00:10:12]CAPDU: 80 11 00 00 [00:10:12]Write to MH i2c: E2 08 00 9E 14 80 11 00 00 00 00 00 00 2C [00:10:12]Write i2c OK [00:10:12]MH_I2C_Read... [00:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:12]Read from MH i2c: E2 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 17 00 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 17 00 9E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 7F [00:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:10:12]wFMCommunicate OK [00:10:12]requested_item fd.num is exist - process it [00:10:12]SAM_PROTO_GetFieldsCounters [00:10:12]wFMCommunicate request_size=4 [00:10:12]MH_SAM_APDU [00:10:12]CAPDU: 80 13 00 00 [00:10:12]Write to MH i2c: E2 08 00 9F 14 80 13 00 00 00 00 00 00 2F [00:10:12]Write i2c OK [00:10:12]MH_I2C_Read... [00:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:12]Read from MH i2c: E2 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 62 00 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 62 00 9F 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3B E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E5 02 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E7 02 00 00 19 04 04 00 00 00 00 00 90 00 64 [00:10:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3B E2 00 00 0E 04 04 00 45 00 00 00 12 04 04 00 E5 02 00 00 5E 04 04 00 E5 02 00 00 57 04 04 00 E7 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:10:12]wFMCommunicate OK [00:10:12]SAM_PROTO_GetFieldsCounters done [00:10:12]requested_item shift.num is exist - process it [00:10:12]requested_item shift.opened is exist - process it [00:10:12]req_shift_opened [00:10:12]FM_GetShiftState [00:10:12]SAM_PROTO_GetShiftState [00:10:12]wFMCommunicate request_size=4 [00:10:12]MH_SAM_APDU [00:10:12]CAPDU: 80 13 01 00 [00:10:12]Write to MH i2c: E2 08 00 A0 14 80 13 01 00 00 00 00 00 31 [00:10:12]Write i2c OK [00:10:12]MH_I2C_Read... [00:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:12]Read from MH i2c: E2 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 0E 00 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 0E 00 A0 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 3C [00:10:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:12]wFMCommunicate OK [00:10:12]SAM_PROTO_GetShiftState done [00:10:12]FM_GetShiftState done [00:10:12]req_shift_opened done [00:10:12]requested_item shift.open_date is exist - process it [00:10:12]req_shift_open_date [00:10:12]FM_GetShiftState [00:10:12]SAM_PROTO_GetShiftState [00:10:12]wFMCommunicate request_size=4 [00:10:12]MH_SAM_APDU [00:10:12]CAPDU: 80 13 01 00 [00:10:12]Write to MH i2c: E2 08 00 A1 14 80 13 01 00 00 00 00 00 32 [00:10:12]Write i2c OK [00:10:12]MH_I2C_Read... [00:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:12]Read from MH i2c: E2 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 0E 00 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 0E 00 A1 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 3D [00:10:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:12]wFMCommunicate OK [00:10:12]SAM_PROTO_GetShiftState done [00:10:12]FM_GetShiftState done [00:10:12]req_shift_open_date done [00:10:12]produce_requested_data done [00:10:12]produce_requested_data return {"kkm.sn":"0300000048","kkm.ver":"v1.0","fm.sn":"0000000000959414","fd.num":57915,"shift.num":69,"shift.opened":0,"shift.open_date":0} [00:10:12]process_action_free get_value [00:10:12]json_value_free [00:10:12]json_value_free done [00:10:12]process_json_proto returns [00:10:12]Send response to host [00:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000048","kkm.ver":"v1.0","fm.sn":"0000000000959414","fd.num":57915,"shift.num":69,"shift.opened":0,"shift.open_date":0}}} [00:10:12]free response buf [00:10:12]execute_script done [00:10:12]execute_script returns [00:10:12]free content buf [00:10:12]Sock 8.Close socket [00:10:12]Sock 8.Thread stoped [00:10:12]accept exits with 9 [00:10:12]New connection [00:10:12]New thread 3066592612 created [00:10:12]Thread 3066735972 joined [00:10:12]Waiting for new connection... [00:10:12] Sock 9.Parse request [00:10:12]Sock 9.Check first char [00:10:12]Sock 9.First char is OK [00:10:12]request: POST /json_proto HTTP/1.0 [00:10:12]Method: POST [00:10:12]URL: /json_proto [00:10:12]Method is POST - this is cgi request [00:10:12]url: /json_proto [00:10:12]query_string will be loaded in cgi processing [00:10:12]execute_cgi json_proto POST (null) [00:10:12]execute_cgi path=json_proto method=POST [00:10:12]POST find Content-Length [00:10:12]Host: 172.17.60.68:8080 [00:10:12]Content-Length: 331 [00:10:12]Content-Type: application/json [00:10:12] [00:10:12]POST finish read [00:10:12]Found Content-Length = 331 [00:10:12]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:10:12]execute_script... [00:10:13]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:10:13]POST & json_proto [00:10:13]process_json_proto [00:10:13]json parsed OK: [00:10:13]protocol is kg_v1.0 [00:10:13]action value=get_value [00:10:13]process_action get_value [00:10:13]cmd_get_value [00:10:13]process_action get_value done [00:10:13]requested_data is exist [00:10:13]produce_requested_data [00:10:13]requested_item fm.sale.total is exist - process it [00:10:13]SAM_PROTO_GetFMData [00:10:13]wFMCommunicate request_size=4 [00:10:13]MH_SAM_APDU [00:10:13]CAPDU: 80 13 03 00 [00:10:13]Write to MH i2c: E2 08 00 A2 14 80 13 03 00 00 00 00 00 35 [00:10:13]OFD Sender: No OFD packet to send [00:10:13]Write i2c OK [00:10:13]MH_I2C_Read... [00:10:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:13]Read from MH i2c: E2 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 FD 00 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 FD 00 A2 14 00 C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 FB [00:10:13]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 [00:10:13]wFMCommunicate OK [00:10:13]wFMCommunicate request_size=4 [00:10:13]MH_SAM_APDU [00:10:13]CAPDU: 80 17 00 00 [00:10:13]Write to MH i2c: E2 08 00 A3 14 80 17 00 00 00 00 00 00 37 [00:10:13]Write i2c OK [00:10:13]MH_I2C_Read... [00:10:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:13]Read from MH i2c: E2 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 FD 00 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 FD 00 A3 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [00:10:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:13]wFMCommunicate OK [00:10:13]wFMCommunicate request_size=4 [00:10:13]MH_SAM_APDU [00:10:13]CAPDU: 80 17 00 00 [00:10:13]Write to MH i2c: E2 08 00 A4 14 80 17 00 00 00 00 00 00 38 [00:10:13]Write i2c OK [00:10:13]MH_I2C_Read... [00:10:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:13]Read from MH i2c: E2 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 FD 00 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 FD 00 A4 14 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4A [00:10:13]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:13]wFMCommunicate OK [00:10:13]wFMCommunicate request_size=4 [00:10:13]MH_SAM_APDU [00:10:13]CAPDU: 80 17 00 00 [00:10:13]Write to MH i2c: E2 08 00 A5 14 80 17 00 00 00 00 00 00 39 [00:10:13]Write i2c OK [00:10:13]MH_I2C_Read... [00:10:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:14]Read from MH i2c: E2 [00:10:14]MH_I2C_Read... [00:10:14]Read from MH i2c: E2 FD 00 [00:10:14]MH_I2C_Read... [00:10:14]Read from MH i2c: E2 FD 00 A5 14 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C5 [00:10:14]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:14]wFMCommunicate OK [00:10:14]wFMCommunicate request_size=4 [00:10:14]MH_SAM_APDU [00:10:14]CAPDU: 80 17 00 00 [00:10:14]Write to MH i2c: E2 08 00 A6 14 80 17 00 00 00 00 00 00 3A [00:10:14]Write i2c OK [00:10:14]MH_I2C_Read... [00:10:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:10:14]Read from MH i2c: E2 [00:10:14]MH_I2C_Read... [00:10:14]Read from MH i2c: E2 E2 00 [00:10:14]MH_I2C_Read... [00:10:14]Read from MH i2c: E2 E2 00 A6 14 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 18 [00:10:14]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:10:14]wFMCommunicate OK [00:10:14]SAM_PROTO_GetFMData done [00:10:14]requested_item fm.sale_refund.total is exist - process it [00:10:14]requested_item fm.buy.total is exist - process it [00:10:14]requested_item shift.sale.total is exist - process it [00:10:14]SAM_PROTO_GetShiftData [00:10:14]wFMCommunicate request_size=4 [00:10:14]MH_SAM_APDU [00:10:14]CAPDU: 80 13 02 00 [00:10:14]Write to MH i2c: E2 08 00 A7 14 80 13 02 00 00 00 00 00 39 [00:10:14]Write i2c OK [00:10:14]MH_I2C_Read... [00:10:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:14]Read from MH i2c: E2 [00:10:14]MH_I2C_Read... [00:10:14]Read from MH i2c: E2 FD 00 [00:10:14]MH_I2C_Read... [00:10:14]Read from MH i2c: E2 FD 00 A7 14 00 BC 04 AA 04 B8 04 6E 04 04 00 E5 02 00 00 69 04 9F 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 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 0C 50 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 05 F1 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 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 9D [00:10:14]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 E5 02 00 00 69 04 9F 00 6F 04 04 00 E4 02 00 00 B1 04 04 00 71 38 F2 03 70 04 04 00 40 40 DC 02 72 04 04 00 31 F8 15 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 0C 50 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 05 F1 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 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 34 03 70 04 03 00 50 34 03 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 1F 57 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:10:14]wFMCommunicate OK [00:10:14]wFMCommunicate request_size=4 [00:10:14]MH_SAM_APDU [00:10:14]CAPDU: 80 17 00 00 [00:10:14]Write to MH i2c: E2 08 00 A8 14 80 17 00 00 00 00 00 00 3C [00:10:14]Write i2c OK [00:10:14]MH_I2C_Read... [00:10:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:15]Read from MH i2c: E2 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 FD 00 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 FD 00 A8 14 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 43 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 30 [00:10:15]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 43 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:15]wFMCommunicate OK [00:10:15]wFMCommunicate request_size=4 [00:10:15]MH_SAM_APDU [00:10:15]CAPDU: 80 17 00 00 [00:10:15]Write to MH i2c: E2 08 00 A9 14 80 17 00 00 00 00 00 00 3D [00:10:15]Write i2c OK [00:10:15]MH_I2C_Read... [00:10:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:15]Read from MH i2c: E2 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 FD 00 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 FD 00 A9 14 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 66 [00:10:15]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:10:15]wFMCommunicate OK [00:10:15]wFMCommunicate request_size=4 [00:10:15]MH_SAM_APDU [00:10:15]CAPDU: 80 17 00 00 [00:10:15]Write to MH i2c: E2 08 00 AA 14 80 17 00 00 00 00 00 00 3E [00:10:15]Write i2c OK [00:10:15]MH_I2C_Read... [00:10:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:15]Read from MH i2c: E2 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 FD 00 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 FD 00 AA 14 00 03 00 00 EF 03 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 90 00 BF [00:10:15]RAPDU: 03 00 00 EF 03 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 90 00 [00:10:15]wFMCommunicate OK [00:10:15]wFMCommunicate request_size=4 [00:10:15]MH_SAM_APDU [00:10:15]CAPDU: 80 17 00 00 [00:10:15]Write to MH i2c: E2 08 00 AB 14 80 17 00 00 00 00 00 00 3F [00:10:15]Write i2c OK [00:10:15]MH_I2C_Read... [00:10:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:10:16]Read from MH i2c: E2 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 D9 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 D9 00 AB 14 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1E [00:10:16]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:10:16]wFMCommunicate OK [00:10:16]SAM_PROTO_GetShiftData done [00:10:16]requested_item shift.sale.total_cash is exist - process it [00:10:16]requested_item shift.sale_refund.total is exist - process it [00:10:16]requested_item shift.sale_refund.total_cash is exist - process it [00:10:16]requested_item shift.buy.total is exist - process it [00:10:16]requested_item shift.buy.total_cash is exist - process it [00:10:16]produce_requested_data done [00:10:16]produce_requested_data return {"fm.sale.total":53016243.51,"fm.sale_refund.total":697985.00,"fm.buy.total":0.00,"shift.sale.total":662058.09,"shift.sale.total_cash":479888.00,"shift.sale_refund.total":2100.00,"shift.sale_refund.total_cash":2100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:10:16]process_action_free get_value [00:10:16]json_value_free [00:10:16]json_value_free done [00:10:16]process_json_proto returns [00:10:16]Send response to host [00:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":53016243.51,"fm.sale_refund.total":697985.00,"fm.buy.total":0.00,"shift.sale.total":662058.09,"shift.sale.total_cash":479888.00,"shift.sale_refund.total":2100.00,"shift.sale_refund.total_cash":2100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:10:16]free response buf [00:10:16]execute_script done [00:10:16]execute_script returns [00:10:16]free content buf [00:10:16]Sock 9.Close socket [00:10:16]Sock 9.Thread stoped [00:10:16]accept exits with 8 [00:10:16]New connection [00:10:16]New thread 3066735972 created [00:10:16]Thread 3066592612 joined [00:10:16]Waiting for new connection... [00:10:16] Sock 8.Parse request [00:10:16]Sock 8.Check first char [00:10:16]Sock 8.First char is OK [00:10:16]request: POST /json_proto HTTP/1.0 [00:10:16]Method: POST [00:10:16]URL: /json_proto [00:10:16]Method is POST - this is cgi request [00:10:16]url: /json_proto [00:10:16]query_string will be loaded in cgi processing [00:10:16]execute_cgi json_proto POST (null) [00:10:16]execute_cgi path=json_proto method=POST [00:10:16]POST find Content-Length [00:10:16]Host: 172.17.60.68:8080 [00:10:16]Content-Length: 271 [00:10:16]Content-Type: application/json [00:10:16] [00:10:16]POST finish read [00:10:16]Found Content-Length = 271 [00:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0430\u043B\u044B\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:16]execute_script... [00:10:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0430\u043B\u044B\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:16]POST & json_proto [00:10:16]process_json_proto [00:10:16]json parsed OK: [00:10:16]protocol is kg_v1.0 [00:10:16]action value=open_shift [00:10:16]process_action open_shift [00:10:16]cmd_open_shift [00:10:16]MH_GetDate [00:10:16]Write to MH i2c: F0 00 00 AC 14 AF [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: F0 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: F0 09 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: F0 09 00 AC 14 00 E9 09 5D 66 8D A7 02 66 09 [00:10:16]GetLastDocTimeStamp 1717372907 [00:10:16]current date 1717373417 [00:10:16]FM_GetShiftState [00:10:16]SAM_PROTO_GetShiftState [00:10:16]wFMCommunicate request_size=4 [00:10:16]MH_SAM_APDU [00:10:16]CAPDU: 80 13 01 00 [00:10:16]Write to MH i2c: E2 08 00 AD 14 80 13 01 00 00 00 00 00 3E [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:16]Read from MH i2c: E2 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 0E 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 0E 00 AD 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 49 [00:10:16]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:16]wFMCommunicate OK [00:10:16]SAM_PROTO_GetShiftState done [00:10:16]FM_GetShiftState done [00:10:16]KKMCreateOpenShiftDocument [00:10:16]Load OK [00:10:16]Malloc new data [00:10:16]MH_GetDate [00:10:16]Write to MH i2c: F0 00 00 AE 14 B1 [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: F0 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: F0 09 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: F0 09 00 AE 14 00 E9 09 5D 66 8D A7 02 66 0B [00:10:16]Malloc new data [00:10:16]KKMCreateOpenShiftDocument OK [00:10:16]KKMSetOpenShiftData OK [00:10:16]ProcessDocumentItem done err = 0, tmpTLVsize=215 [00:10:16]tlvbuf is 01AD2CA0 [00:10:16]KKMLoadAndSignOpenShiftData [00:10:16]SAM_PROTO_ProcessDocument [00:10:16]wFMCommunicate request_size=9 [00:10:16]MH_SAM_APDU [00:10:16]CAPDU: 80 15 01 00 04 02 00 D7 00 [00:10:16]Write to MH i2c: E2 0C 00 AF 14 80 15 01 00 04 00 02 00 D7 00 00 00 23 [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:16]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:10:16]Read from MH i2c: E2 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 03 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 03 00 AF 14 00 90 00 37 [00:10:16]RAPDU: 90 00 [00:10:16]wFMCommunicate OK [00:10:16]wFMCommunicate request_size=23 [00:10:16]MH_SAM_APDU [00:10:16]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:10:16]Write to MH i2c: E2 1A 00 B0 14 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 39 [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:16]Read from MH i2c: E2 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 03 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 03 00 B0 14 00 90 00 38 [00:10:16]RAPDU: 90 00 [00:10:16]wFMCommunicate OK [00:10:16]wFMCommunicate request_size=34 [00:10:16]MH_SAM_APDU [00:10:16]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 9A D0 B0 D0 BB D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 [00:10:16]Write to MH i2c: E2 25 00 B1 14 80 15 02 00 1D 00 FD 03 19 00 D0 9A D0 B0 D0 BB D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 00 00 36 [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:16]Read from MH i2c: E2 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 03 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 03 00 B1 14 00 90 00 39 [00:10:16]RAPDU: 90 00 [00:10:16]wFMCommunicate OK [00:10:16]wFMCommunicate request_size=99 [00:10:16]MH_SAM_APDU [00:10:16]CAPDU: 80 15 02 00 5E F1 03 5A 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 20 31 30 31 2F 31 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 [00:10:16]Write to MH i2c: E2 66 00 B2 14 80 15 02 00 5E 00 F1 03 5A 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 20 31 30 31 2F 31 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 00 00 6E [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:16]Read from MH i2c: E2 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 03 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 03 00 B2 14 00 90 00 3A [00:10:16]RAPDU: 90 00 [00:10:16]wFMCommunicate OK [00:10:16]wFMCommunicate request_size=51 [00:10:16]MH_SAM_APDU [00:10:16]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 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:10:16]Write to MH i2c: E2 36 00 B3 14 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 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 F2 [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:16]Read from MH i2c: E2 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 03 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 03 00 B3 14 00 90 00 3B [00:10:16]RAPDU: 90 00 [00:10:16]wFMCommunicate OK [00:10:16]wFMCommunicate request_size=13 [00:10:16]MH_SAM_APDU [00:10:16]CAPDU: 80 15 02 00 08 F4 03 04 00 E9 09 5D 66 [00:10:16]Write to MH i2c: E2 10 00 B4 14 80 15 02 00 08 00 F4 03 04 00 E9 09 5D 66 00 00 08 [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:16]Read from MH i2c: E2 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 03 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 03 00 B4 14 00 90 00 3C [00:10:16]RAPDU: 90 00 [00:10:16]wFMCommunicate OK [00:10:16]wFMCommunicate request_size=25 [00:10:16]MH_SAM_APDU [00:10:16]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 [00:10:16]Write to MH i2c: E2 1C 00 B5 14 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 00 00 A7 [00:10:17]Write i2c OK [00:10:17]MH_I2C_Read... [00:10:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:17]Read from MH i2c: E2 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 03 00 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 03 00 B5 14 00 90 00 3D [00:10:17]RAPDU: 90 00 [00:10:17]wFMCommunicate OK [00:10:17]wFMCommunicate request_size=4 [00:10:17]MH_SAM_APDU [00:10:17]CAPDU: 80 15 03 00 [00:10:17]Write to MH i2c: E2 08 00 B6 14 80 15 03 00 00 00 00 00 4B [00:10:17]Write i2c OK [00:10:17]MH_I2C_Read... [00:10:17]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:10:17]Read from MH i2c: E2 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 38 00 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 38 00 B6 14 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3C E2 00 00 0E 04 04 00 46 00 00 00 35 04 06 00 2E A8 16 DD FD E1 90 00 22 [00:10:17]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3C E2 00 00 0E 04 04 00 46 00 00 00 35 04 06 00 2E A8 16 DD FD E1 90 00 [00:10:17]wFMCommunicate OK [00:10:17]SAM_PROTO_ProcessDocument answer len = 51 [00:10:17]SAM_PROTO_ProcessDocument done [00:10:17]SetTLVBufToDocument [00:10:17]Processing tag 1209 (04B9) [00:10:17]Malloc new data [00:10:17]Processing tag 1041 (0411) [00:10:17]Processing tag 1040 (0410) [00:10:17]Malloc new data [00:10:17]Processing tag 1038 (040E) [00:10:17]Malloc new data [00:10:17]Processing tag 1077 (0435) [00:10:17]Malloc new data [00:10:17]SetTLVBufToDocument err=0 [00:10:17]KKMLoadAndSignOpenShiftData store KKM data [00:10:17]KKMLoadAndSignOpenShiftData err=0 [00:10:17]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Калыгулова Н. Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 Место: АЗС № 117 "Партнер Нефть" 03.06.2024 00:10 Смена: 70 РНМ: 0000000000151680 ЗНМ: 0300000048 ФД: 57916 ФМ: 0000000000959414 ФПД: 51299473030625 [00:10:17]StoreToDocumentArchive [00:10:17]shift 70 fd 57916 [00:10:17]Create dir for shift 0070 [00:10:17]save to /storage/0070/doc_00057916 [00:10:17]save last doc name /storage/0070/doc_00057916 to /storage/kkm_last_doc_name [00:10:17]save OK [00:10:17]Clear old archive folders... [00:10:17]Remove dir /storage/0069 [00:10:17]opendir ok [00:10:17]file . [00:10:17]file .. [00:10:17]file doc_00057173 [00:10:17]remove file /storage/0069/doc_00057173 [00:10:17]file doc_00057174 [00:10:17]remove file /storage/0069/doc_00057174 [00:10:17]file doc_00057175 [00:10:17]remove file /storage/0069/doc_00057175 [00:10:17]file doc_00057176 [00:10:17]remove file /storage/0069/doc_00057176 [00:10:17]file doc_00057177 [00:10:17]remove file /storage/0069/doc_00057177 [00:10:17]file doc_00057178 [00:10:17]remove file /storage/0069/doc_00057178 [00:10:17]file doc_00057179 [00:10:17]remove file /storage/0069/doc_00057179 [00:10:17]file doc_00057180 [00:10:17]remove file /storage/0069/doc_00057180 [00:10:17]file doc_00057181 [00:10:17]remove file /storage/0069/doc_00057181 [00:10:17]file doc_00057182 [00:10:17]remove file /storage/0069/doc_00057182 [00:10:17]file doc_00057183 [00:10:17]remove file /storage/0069/doc_00057183 [00:10:17]file doc_00057184 [00:10:17]remove file /storage/0069/doc_00057184 [00:10:17]file doc_00057185 [00:10:17]remove file /storage/0069/doc_00057185 [00:10:17]file doc_00057186 [00:10:17]remove file /storage/0069/doc_00057186 [00:10:17]file doc_00057187 [00:10:17]remove file /storage/0069/doc_00057187 [00:10:17]file doc_00057188 [00:10:17]remove file /storage/0069/doc_00057188 [00:10:17]file doc_00057189 [00:10:17]remove file /storage/0069/doc_00057189 [00:10:17]file doc_00057190 [00:10:17]remove file /storage/0069/doc_00057190 [00:10:17]file doc_00057191 [00:10:17]remove file /storage/0069/doc_00057191 [00:10:17]file doc_00057192 [00:10:17]remove file /storage/0069/doc_00057192 [00:10:17]file doc_00057193 [00:10:17]remove file /storage/0069/doc_00057193 [00:10:17]file doc_00057194 [00:10:17]remove file /storage/0069/doc_00057194 [00:10:17]file doc_00057195 [00:10:17]remove file /storage/0069/doc_00057195 [00:10:17]file doc_00057196 [00:10:17]remove file /storage/0069/doc_00057196 [00:10:17]file doc_00057197 [00:10:17]remove file /storage/0069/doc_00057197 [00:10:17]file doc_00057198 [00:10:17]remove file /storage/0069/doc_00057198 [00:10:17]file doc_00057199 [00:10:17]remove file /storage/0069/doc_00057199 [00:10:17]file doc_00057200 [00:10:17]remove file /storage/0069/doc_00057200 [00:10:17]file doc_00057201 [00:10:17]remove file /storage/0069/doc_00057201 [00:10:17]file doc_00057202 [00:10:17]remove file /storage/0069/doc_00057202 [00:10:17]file doc_00057203 [00:10:17]remove file /storage/0069/doc_00057203 [00:10:17]file doc_00057204 [00:10:17]remove file /storage/0069/doc_00057204 [00:10:17]file doc_00057205 [00:10:17]remove file /storage/0069/doc_00057205 [00:10:17]file doc_00057206 [00:10:17]remove file /storage/0069/doc_00057206 [00:10:17]file doc_00057207 [00:10:17]remove file /storage/0069/doc_00057207 [00:10:17]file doc_00057208 [00:10:17]remove file /storage/0069/doc_00057208 [00:10:17]file doc_00057209 [00:10:17]remove file /storage/0069/doc_00057209 [00:10:17]file doc_00057210 [00:10:17]remove file /storage/0069/doc_00057210 [00:10:17]file doc_00057211 [00:10:17]remove file /storage/0069/doc_00057211 [00:10:17]file doc_00057212 [00:10:17]remove file /storage/0069/doc_00057212 [00:10:17]file doc_00057213 [00:10:17]remove file /storage/0069/doc_00057213 [00:10:17]file doc_00057214 [00:10:17]remove file /storage/0069/doc_00057214 [00:10:17]file doc_00057215 [00:10:17]remove file /storage/0069/doc_00057215 [00:10:17]file doc_00057216 [00:10:17]remove file /storage/0069/doc_00057216 [00:10:17]file doc_00057217 [00:10:17]remove file /storage/0069/doc_00057217 [00:10:17]file doc_00057218 [00:10:17]remove file /storage/0069/doc_00057218 [00:10:17]file doc_00057219 [00:10:17]remove file /storage/0069/doc_00057219 [00:10:17]file doc_00057220 [00:10:17]remove file /storage/0069/doc_00057220 [00:10:17]file doc_00057221 [00:10:17]remove file /storage/0069/doc_00057221 [00:10:17]file doc_00057222 [00:10:17]remove file /storage/0069/doc_00057222 [00:10:17]file doc_00057223 [00:10:17]remove file /storage/0069/doc_00057223 [00:10:17]file doc_00057224 [00:10:17]remove file /storage/0069/doc_00057224 [00:10:17]file doc_00057225 [00:10:17]remove file /storage/0069/doc_00057225 [00:10:17]file doc_00057226 [00:10:17]remove file /storage/0069/doc_00057226 [00:10:17]file doc_00057227 [00:10:17]remove file /storage/0069/doc_00057227 [00:10:17]file doc_00057228 [00:10:17]remove file /storage/0069/doc_00057228 [00:10:17]file doc_00057229 [00:10:17]remove file /storage/0069/doc_00057229 [00:10:17]file doc_00057230 [00:10:17]remove file /storage/0069/doc_00057230 [00:10:17]file doc_00057231 [00:10:17]remove file /storage/0069/doc_00057231 [00:10:17]file doc_00057232 [00:10:17]remove file /storage/0069/doc_00057232 [00:10:17]file doc_00057233 [00:10:17]remove file /storage/0069/doc_00057233 [00:10:17]file doc_00057234 [00:10:17]remove file /storage/0069/doc_00057234 [00:10:17]file doc_00057235 [00:10:17]remove file /storage/0069/doc_00057235 [00:10:17]file doc_00057236 [00:10:17]remove file /storage/0069/doc_00057236 [00:10:17]file doc_00057237 [00:10:17]remove file /storage/0069/doc_00057237 [00:10:17]file doc_00057238 [00:10:17]remove file /storage/0069/doc_00057238 [00:10:17]file doc_00057239 [00:10:17]remove file /storage/0069/doc_00057239 [00:10:17]file doc_00057240 [00:10:17]remove file /storage/0069/doc_00057240 [00:10:17]file doc_00057241 [00:10:17]remove file /storage/0069/doc_00057241 [00:10:17]file doc_00057242 [00:10:17]remove file /storage/0069/doc_00057242 [00:10:17]file doc_00057243 [00:10:17]remove file /storage/0069/doc_00057243 [00:10:17]file doc_00057244 [00:10:17]remove file /storage/0069/doc_00057244 [00:10:17]file doc_00057245 [00:10:17]remove file /storage/0069/doc_00057245 [00:10:17]file doc_00057246 [00:10:17]remove file /storage/0069/doc_00057246 [00:10:17]file doc_00057247 [00:10:17]remove file /storage/0069/doc_00057247 [00:10:17]file doc_00057248 [00:10:17]remove file /storage/0069/doc_00057248 [00:10:17]file doc_00057249 [00:10:17]remove file /storage/0069/doc_00057249 [00:10:17]file doc_00057250 [00:10:17]remove file /storage/0069/doc_00057250 [00:10:17]file doc_00057251 [00:10:17]remove file /storage/0069/doc_00057251 [00:10:17]file doc_00057252 [00:10:17]remove file /storage/0069/doc_00057252 [00:10:17]file doc_00057253 [00:10:17]remove file /storage/0069/doc_00057253 [00:10:17]file doc_00057254 [00:10:17]remove file /storage/0069/doc_00057254 [00:10:17]file doc_00057255 [00:10:17]remove file /storage/0069/doc_00057255 [00:10:17]file doc_00057256 [00:10:17]remove file /storage/0069/doc_00057256 [00:10:17]file doc_00057257 [00:10:17]remove file /storage/0069/doc_00057257 [00:10:17]file doc_00057258 [00:10:17]remove file /storage/0069/doc_00057258 [00:10:17]file doc_00057259 [00:10:17]remove file /storage/0069/doc_00057259 [00:10:17]file doc_00057260 [00:10:17]remove file /storage/0069/doc_00057260 [00:10:17]file doc_00057261 [00:10:17]remove file /storage/0069/doc_00057261 [00:10:17]file doc_00057262 [00:10:17]remove file /storage/0069/doc_00057262 [00:10:17]file doc_00057263 [00:10:17]remove file /storage/0069/doc_00057263 [00:10:17]file doc_00057264 [00:10:17]remove file /storage/0069/doc_00057264 [00:10:17]file doc_00057265 [00:10:17]remove file /storage/0069/doc_00057265 [00:10:17]file doc_00057266 [00:10:17]remove file /storage/0069/doc_00057266 [00:10:17]file doc_00057267 [00:10:17]remove file /storage/0069/doc_00057267 [00:10:17]file doc_00057268 [00:10:17]remove file /storage/0069/doc_00057268 [00:10:17]file doc_00057269 [00:10:17]remove file /storage/0069/doc_00057269 [00:10:17]file doc_00057270 [00:10:17]remove file /storage/0069/doc_00057270 [00:10:17]file doc_00057271 [00:10:17]remove file /storage/0069/doc_00057271 [00:10:17]file doc_00057272 [00:10:17]remove file /storage/0069/doc_00057272 [00:10:17]file doc_00057273 [00:10:17]remove file /storage/0069/doc_00057273 [00:10:17]file doc_00057274 [00:10:17]remove file /storage/0069/doc_00057274 [00:10:17]file doc_00057275 [00:10:17]remove file /storage/0069/doc_00057275 [00:10:17]file doc_00057276 [00:10:17]remove file /storage/0069/doc_00057276 [00:10:17]file doc_00057277 [00:10:17]remove file /storage/0069/doc_00057277 [00:10:17]file doc_00057278 [00:10:17]remove file /storage/0069/doc_00057278 [00:10:17]file doc_00057279 [00:10:17]remove file /storage/0069/doc_00057279 [00:10:17]file doc_00057280 [00:10:17]remove file /storage/0069/doc_00057280 [00:10:17]file doc_00057281 [00:10:17]remove file /storage/0069/doc_00057281 [00:10:17]file doc_00057282 [00:10:17]remove file /storage/0069/doc_00057282 [00:10:17]file doc_00057283 [00:10:17]remove file /storage/0069/doc_00057283 [00:10:17]file doc_00057284 [00:10:17]remove file /storage/0069/doc_00057284 [00:10:17]file doc_00057285 [00:10:17]remove file /storage/0069/doc_00057285 [00:10:17]file doc_00057286 [00:10:17]remove file /storage/0069/doc_00057286 [00:10:17]file doc_00057287 [00:10:17]remove file /storage/0069/doc_00057287 [00:10:17]file doc_00057288 [00:10:17]remove file /storage/0069/doc_00057288 [00:10:17]file doc_00057289 [00:10:17]remove file /storage/0069/doc_00057289 [00:10:17]file doc_00057290 [00:10:17]remove file /storage/0069/doc_00057290 [00:10:17]file doc_00057291 [00:10:17]remove file /storage/0069/doc_00057291 [00:10:17]file doc_00057292 [00:10:17]remove file /storage/0069/doc_00057292 [00:10:17]file doc_00057293 [00:10:17]remove file /storage/0069/doc_00057293 [00:10:17]file doc_00057295 [00:10:17]remove file /storage/0069/doc_00057295 [00:10:17]file doc_00057296 [00:10:17]remove file /storage/0069/doc_00057296 [00:10:17]file doc_00057297 [00:10:17]remove file /storage/0069/doc_00057297 [00:10:17]file doc_00057298 [00:10:17]remove file /storage/0069/doc_00057298 [00:10:17]file doc_00057299 [00:10:17]remove file /storage/0069/doc_00057299 [00:10:18]file doc_00057300 [00:10:18]remove file /storage/0069/doc_00057300 [00:10:18]file doc_00057301 [00:10:18]remove file /storage/0069/doc_00057301 [00:10:18]file doc_00057302 [00:10:18]remove file /storage/0069/doc_00057302 [00:10:18]file doc_00057303 [00:10:18]remove file /storage/0069/doc_00057303 [00:10:18]file doc_00057304 [00:10:18]remove file /storage/0069/doc_00057304 [00:10:18]file doc_00057305 [00:10:18]remove file /storage/0069/doc_00057305 [00:10:18]file doc_00057306 [00:10:18]remove file /storage/0069/doc_00057306 [00:10:18]file doc_00057307 [00:10:18]remove file /storage/0069/doc_00057307 [00:10:18]file doc_00057308 [00:10:18]remove file /storage/0069/doc_00057308 [00:10:18]file doc_00057309 [00:10:18]remove file /storage/0069/doc_00057309 [00:10:18]file doc_00057310 [00:10:18]remove file /storage/0069/doc_00057310 [00:10:18]file doc_00057311 [00:10:18]remove file /storage/0069/doc_00057311 [00:10:18]file doc_00057312 [00:10:18]remove file /storage/0069/doc_00057312 [00:10:18]file doc_00057313 [00:10:18]remove file /storage/0069/doc_00057313 [00:10:18]file doc_00057314 [00:10:18]remove file /storage/0069/doc_00057314 [00:10:18]file doc_00057315 [00:10:18]remove file /storage/0069/doc_00057315 [00:10:18]file doc_00057316 [00:10:18]remove file /storage/0069/doc_00057316 [00:10:18]file doc_00057317 [00:10:18]remove file /storage/0069/doc_00057317 [00:10:18]file doc_00057318 [00:10:18]remove file /storage/0069/doc_00057318 [00:10:18]file doc_00057319 [00:10:18]remove file /storage/0069/doc_00057319 [00:10:18]file doc_00057320 [00:10:18]remove file /storage/0069/doc_00057320 [00:10:18]file doc_00057321 [00:10:18]remove file /storage/0069/doc_00057321 [00:10:18]file doc_00057322 [00:10:18]remove file /storage/0069/doc_00057322 [00:10:18]file doc_00057323 [00:10:18]remove file /storage/0069/doc_00057323 [00:10:18]file doc_00057324 [00:10:18]remove file /storage/0069/doc_00057324 [00:10:18]file doc_00057325 [00:10:18]remove file /storage/0069/doc_00057325 [00:10:18]file doc_00057326 [00:10:18]remove file /storage/0069/doc_00057326 [00:10:18]OFD Sender: No OFD packet to send [00:10:18]file doc_00057327 [00:10:18]remove file /storage/0069/doc_00057327 [00:10:18]file doc_00057328 [00:10:18]remove file /storage/0069/doc_00057328 [00:10:18]file doc_00057329 [00:10:18]remove file /storage/0069/doc_00057329 [00:10:18]file doc_00057330 [00:10:18]remove file /storage/0069/doc_00057330 [00:10:18]file doc_00057331 [00:10:18]remove file /storage/0069/doc_00057331 [00:10:18]file doc_00057332 [00:10:18]remove file /storage/0069/doc_00057332 [00:10:18]file doc_00057333 [00:10:18]remove file /storage/0069/doc_00057333 [00:10:18]file doc_00057334 [00:10:18]remove file /storage/0069/doc_00057334 [00:10:18]file doc_00057335 [00:10:18]remove file /storage/0069/doc_00057335 [00:10:18]file doc_00057336 [00:10:18]remove file /storage/0069/doc_00057336 [00:10:18]file doc_00057337 [00:10:18]remove file /storage/0069/doc_00057337 [00:10:18]file doc_00057338 [00:10:18]remove file /storage/0069/doc_00057338 [00:10:18]file doc_00057339 [00:10:18]remove file /storage/0069/doc_00057339 [00:10:18]file doc_00057340 [00:10:18]remove file /storage/0069/doc_00057340 [00:10:18]file doc_00057341 [00:10:18]remove file /storage/0069/doc_00057341 [00:10:18]file doc_00057342 [00:10:18]remove file /storage/0069/doc_00057342 [00:10:18]file doc_00057343 [00:10:18]remove file /storage/0069/doc_00057343 [00:10:18]file doc_00057344 [00:10:18]remove file /storage/0069/doc_00057344 [00:10:18]file doc_00057345 [00:10:18]remove file /storage/0069/doc_00057345 [00:10:18]file doc_00057346 [00:10:18]remove file /storage/0069/doc_00057346 [00:10:18]file doc_00057347 [00:10:18]remove file /storage/0069/doc_00057347 [00:10:18]file doc_00057348 [00:10:18]remove file /storage/0069/doc_00057348 [00:10:18]file doc_00057349 [00:10:18]remove file /storage/0069/doc_00057349 [00:10:18]file doc_00057350 [00:10:18]remove file /storage/0069/doc_00057350 [00:10:18]file doc_00057351 [00:10:18]remove file /storage/0069/doc_00057351 [00:10:18]file doc_00057352 [00:10:18]remove file /storage/0069/doc_00057352 [00:10:18]file doc_00057353 [00:10:18]remove file /storage/0069/doc_00057353 [00:10:18]file doc_00057354 [00:10:18]remove file /storage/0069/doc_00057354 [00:10:18]file doc_00057355 [00:10:18]remove file /storage/0069/doc_00057355 [00:10:18]file doc_00057356 [00:10:18]remove file /storage/0069/doc_00057356 [00:10:18]file doc_00057357 [00:10:18]remove file /storage/0069/doc_00057357 [00:10:18]file doc_00057358 [00:10:18]remove file /storage/0069/doc_00057358 [00:10:18]file doc_00057359 [00:10:18]remove file /storage/0069/doc_00057359 [00:10:18]file doc_00057360 [00:10:18]remove file /storage/0069/doc_00057360 [00:10:18]file doc_00057361 [00:10:18]remove file /storage/0069/doc_00057361 [00:10:18]file doc_00057362 [00:10:18]remove file /storage/0069/doc_00057362 [00:10:18]file doc_00057363 [00:10:18]remove file /storage/0069/doc_00057363 [00:10:18]file doc_00057364 [00:10:18]remove file /storage/0069/doc_00057364 [00:10:18]file doc_00057365 [00:10:18]remove file /storage/0069/doc_00057365 [00:10:18]file doc_00057366 [00:10:18]remove file /storage/0069/doc_00057366 [00:10:18]file doc_00057367 [00:10:18]remove file /storage/0069/doc_00057367 [00:10:18]file doc_00057368 [00:10:18]remove file /storage/0069/doc_00057368 [00:10:18]file doc_00057369 [00:10:18]remove file /storage/0069/doc_00057369 [00:10:18]file doc_00057370 [00:10:18]remove file /storage/0069/doc_00057370 [00:10:18]file doc_00057371 [00:10:18]remove file /storage/0069/doc_00057371 [00:10:18]file doc_00057372 [00:10:18]remove file /storage/0069/doc_00057372 [00:10:18]file doc_00057373 [00:10:18]remove file /storage/0069/doc_00057373 [00:10:18]file doc_00057374 [00:10:18]remove file /storage/0069/doc_00057374 [00:10:18]file doc_00057375 [00:10:18]remove file /storage/0069/doc_00057375 [00:10:18]file doc_00057376 [00:10:18]remove file /storage/0069/doc_00057376 [00:10:18]file doc_00057377 [00:10:18]remove file /storage/0069/doc_00057377 [00:10:18]file doc_00057378 [00:10:18]remove file /storage/0069/doc_00057378 [00:10:18]file doc_00057379 [00:10:18]remove file /storage/0069/doc_00057379 [00:10:18]file doc_00057380 [00:10:18]remove file /storage/0069/doc_00057380 [00:10:18]file doc_00057381 [00:10:18]remove file /storage/0069/doc_00057381 [00:10:18]file doc_00057382 [00:10:18]remove file /storage/0069/doc_00057382 [00:10:18]file doc_00057383 [00:10:18]remove file /storage/0069/doc_00057383 [00:10:18]file doc_00057384 [00:10:18]remove file /storage/0069/doc_00057384 [00:10:18]file doc_00057385 [00:10:18]remove file /storage/0069/doc_00057385 [00:10:18]file doc_00057386 [00:10:18]remove file /storage/0069/doc_00057386 [00:10:18]file doc_00057387 [00:10:18]remove file /storage/0069/doc_00057387 [00:10:18]file doc_00057388 [00:10:18]remove file /storage/0069/doc_00057388 [00:10:18]file doc_00057389 [00:10:18]remove file /storage/0069/doc_00057389 [00:10:18]file doc_00057390 [00:10:18]remove file /storage/0069/doc_00057390 [00:10:18]file doc_00057391 [00:10:18]remove file /storage/0069/doc_00057391 [00:10:18]file doc_00057392 [00:10:18]remove file /storage/0069/doc_00057392 [00:10:18]file doc_00057393 [00:10:18]remove file /storage/0069/doc_00057393 [00:10:18]file doc_00057394 [00:10:18]remove file /storage/0069/doc_00057394 [00:10:18]file doc_00057395 [00:10:18]remove file /storage/0069/doc_00057395 [00:10:18]file doc_00057396 [00:10:18]remove file /storage/0069/doc_00057396 [00:10:18]file doc_00057397 [00:10:18]remove file /storage/0069/doc_00057397 [00:10:18]file doc_00057398 [00:10:18]remove file /storage/0069/doc_00057398 [00:10:18]file doc_00057399 [00:10:18]remove file /storage/0069/doc_00057399 [00:10:18]file doc_00057400 [00:10:18]remove file /storage/0069/doc_00057400 [00:10:18]file doc_00057401 [00:10:18]remove file /storage/0069/doc_00057401 [00:10:18]file doc_00057402 [00:10:18]remove file /storage/0069/doc_00057402 [00:10:18]file doc_00057403 [00:10:18]remove file /storage/0069/doc_00057403 [00:10:18]file doc_00057404 [00:10:18]remove file /storage/0069/doc_00057404 [00:10:18]file doc_00057405 [00:10:18]remove file /storage/0069/doc_00057405 [00:10:18]file doc_00057406 [00:10:18]remove file /storage/0069/doc_00057406 [00:10:18]file doc_00057407 [00:10:18]remove file /storage/0069/doc_00057407 [00:10:18]file doc_00057408 [00:10:18]remove file /storage/0069/doc_00057408 [00:10:18]file doc_00057409 [00:10:18]remove file /storage/0069/doc_00057409 [00:10:18]file doc_00057410 [00:10:18]remove file /storage/0069/doc_00057410 [00:10:18]file doc_00057411 [00:10:18]remove file /storage/0069/doc_00057411 [00:10:18]file doc_00057412 [00:10:18]remove file /storage/0069/doc_00057412 [00:10:18]file doc_00057413 [00:10:18]remove file /storage/0069/doc_00057413 [00:10:18]file doc_00057414 [00:10:18]remove file /storage/0069/doc_00057414 [00:10:18]file doc_00057415 [00:10:18]remove file /storage/0069/doc_00057415 [00:10:18]file doc_00057416 [00:10:18]remove file /storage/0069/doc_00057416 [00:10:18]file doc_00057417 [00:10:18]remove file /storage/0069/doc_00057417 [00:10:18]file doc_00057418 [00:10:18]remove file /storage/0069/doc_00057418 [00:10:18]file doc_00057419 [00:10:18]remove file /storage/0069/doc_00057419 [00:10:18]file doc_00057420 [00:10:18]remove file /storage/0069/doc_00057420 [00:10:18]file doc_00057421 [00:10:18]remove file /storage/0069/doc_00057421 [00:10:18]file doc_00057422 [00:10:18]remove file /storage/0069/doc_00057422 [00:10:18]file doc_00057423 [00:10:18]remove file /storage/0069/doc_00057423 [00:10:18]file doc_00057424 [00:10:18]remove file /storage/0069/doc_00057424 [00:10:18]file doc_00057425 [00:10:18]remove file /storage/0069/doc_00057425 [00:10:18]file doc_00057426 [00:10:18]remove file /storage/0069/doc_00057426 [00:10:18]file doc_00057427 [00:10:18]remove file /storage/0069/doc_00057427 [00:10:18]file doc_00057428 [00:10:18]remove file /storage/0069/doc_00057428 [00:10:18]file doc_00057429 [00:10:18]remove file /storage/0069/doc_00057429 [00:10:18]file doc_00057430 [00:10:18]remove file /storage/0069/doc_00057430 [00:10:18]file doc_00057431 [00:10:18]remove file /storage/0069/doc_00057431 [00:10:18]file doc_00057432 [00:10:18]remove file /storage/0069/doc_00057432 [00:10:18]file doc_00057433 [00:10:18]remove file /storage/0069/doc_00057433 [00:10:18]file doc_00057434 [00:10:18]remove file /storage/0069/doc_00057434 [00:10:18]file doc_00057435 [00:10:18]remove file /storage/0069/doc_00057435 [00:10:18]file doc_00057436 [00:10:18]remove file /storage/0069/doc_00057436 [00:10:18]file doc_00057437 [00:10:18]remove file /storage/0069/doc_00057437 [00:10:18]file doc_00057438 [00:10:18]remove file /storage/0069/doc_00057438 [00:10:18]file doc_00057439 [00:10:18]remove file /storage/0069/doc_00057439 [00:10:18]file doc_00057440 [00:10:18]remove file /storage/0069/doc_00057440 [00:10:18]file doc_00057441 [00:10:18]remove file /storage/0069/doc_00057441 [00:10:18]file doc_00057442 [00:10:18]remove file /storage/0069/doc_00057442 [00:10:18]file doc_00057443 [00:10:18]remove file /storage/0069/doc_00057443 [00:10:18]file doc_00057444 [00:10:18]remove file /storage/0069/doc_00057444 [00:10:18]file doc_00057445 [00:10:18]remove file /storage/0069/doc_00057445 [00:10:18]file doc_00057446 [00:10:18]remove file /storage/0069/doc_00057446 [00:10:18]file doc_00057447 [00:10:18]remove file /storage/0069/doc_00057447 [00:10:18]file doc_00057448 [00:10:18]remove file /storage/0069/doc_00057448 [00:10:18]file doc_00057449 [00:10:18]remove file /storage/0069/doc_00057449 [00:10:18]file doc_00057450 [00:10:18]remove file /storage/0069/doc_00057450 [00:10:18]file doc_00057451 [00:10:18]remove file /storage/0069/doc_00057451 [00:10:18]file doc_00057452 [00:10:18]remove file /storage/0069/doc_00057452 [00:10:18]file doc_00057453 [00:10:18]remove file /storage/0069/doc_00057453 [00:10:18]file doc_00057454 [00:10:18]remove file /storage/0069/doc_00057454 [00:10:18]file doc_00057455 [00:10:18]remove file /storage/0069/doc_00057455 [00:10:18]file doc_00057456 [00:10:18]remove file /storage/0069/doc_00057456 [00:10:18]file doc_00057457 [00:10:18]remove file /storage/0069/doc_00057457 [00:10:18]file doc_00057458 [00:10:18]remove file /storage/0069/doc_00057458 [00:10:18]file doc_00057459 [00:10:19]remove file /storage/0069/doc_00057459 [00:10:19]file doc_00057460 [00:10:19]remove file /storage/0069/doc_00057460 [00:10:19]file doc_00057461 [00:10:19]remove file /storage/0069/doc_00057461 [00:10:19]file doc_00057462 [00:10:19]remove file /storage/0069/doc_00057462 [00:10:19]file doc_00057463 [00:10:19]remove file /storage/0069/doc_00057463 [00:10:19]file doc_00057464 [00:10:19]remove file /storage/0069/doc_00057464 [00:10:19]file doc_00057465 [00:10:19]remove file /storage/0069/doc_00057465 [00:10:19]file doc_00057466 [00:10:19]remove file /storage/0069/doc_00057466 [00:10:19]file doc_00057467 [00:10:19]remove file /storage/0069/doc_00057467 [00:10:19]file doc_00057468 [00:10:19]remove file /storage/0069/doc_00057468 [00:10:19]file doc_00057469 [00:10:19]remove file /storage/0069/doc_00057469 [00:10:19]file doc_00057470 [00:10:19]remove file /storage/0069/doc_00057470 [00:10:19]file doc_00057471 [00:10:19]remove file /storage/0069/doc_00057471 [00:10:19]file doc_00057472 [00:10:19]remove file /storage/0069/doc_00057472 [00:10:19]file doc_00057473 [00:10:19]remove file /storage/0069/doc_00057473 [00:10:19]file doc_00057474 [00:10:19]remove file /storage/0069/doc_00057474 [00:10:19]file doc_00057475 [00:10:19]remove file /storage/0069/doc_00057475 [00:10:19]file doc_00057476 [00:10:19]remove file /storage/0069/doc_00057476 [00:10:19]file doc_00057477 [00:10:19]remove file /storage/0069/doc_00057477 [00:10:19]file doc_00057478 [00:10:19]remove file /storage/0069/doc_00057478 [00:10:19]file doc_00057479 [00:10:19]remove file /storage/0069/doc_00057479 [00:10:19]file doc_00057480 [00:10:19]remove file /storage/0069/doc_00057480 [00:10:19]file doc_00057481 [00:10:19]remove file /storage/0069/doc_00057481 [00:10:19]file doc_00057482 [00:10:19]remove file /storage/0069/doc_00057482 [00:10:19]file doc_00057483 [00:10:19]remove file /storage/0069/doc_00057483 [00:10:19]file doc_00057484 [00:10:19]remove file /storage/0069/doc_00057484 [00:10:19]file doc_00057485 [00:10:19]remove file /storage/0069/doc_00057485 [00:10:19]file doc_00057486 [00:10:19]remove file /storage/0069/doc_00057486 [00:10:19]file doc_00057487 [00:10:19]remove file /storage/0069/doc_00057487 [00:10:19]file doc_00057488 [00:10:19]remove file /storage/0069/doc_00057488 [00:10:19]file doc_00057489 [00:10:19]remove file /storage/0069/doc_00057489 [00:10:19]file doc_00057490 [00:10:19]remove file /storage/0069/doc_00057490 [00:10:19]file doc_00057491 [00:10:19]remove file /storage/0069/doc_00057491 [00:10:19]file doc_00057492 [00:10:19]remove file /storage/0069/doc_00057492 [00:10:19]file doc_00057493 [00:10:19]remove file /storage/0069/doc_00057493 [00:10:19]file doc_00057494 [00:10:19]remove file /storage/0069/doc_00057494 [00:10:19]file doc_00057495 [00:10:19]remove file /storage/0069/doc_00057495 [00:10:19]file doc_00057496 [00:10:19]remove file /storage/0069/doc_00057496 [00:10:19]file doc_00057497 [00:10:19]remove file /storage/0069/doc_00057497 [00:10:19]file doc_00057498 [00:10:19]remove file /storage/0069/doc_00057498 [00:10:19]file doc_00057499 [00:10:19]remove file /storage/0069/doc_00057499 [00:10:19]file doc_00057500 [00:10:19]remove file /storage/0069/doc_00057500 [00:10:19]file doc_00057501 [00:10:19]remove file /storage/0069/doc_00057501 [00:10:19]file doc_00057502 [00:10:19]remove file /storage/0069/doc_00057502 [00:10:19]file doc_00057503 [00:10:19]remove file /storage/0069/doc_00057503 [00:10:19]file doc_00057504 [00:10:19]remove file /storage/0069/doc_00057504 [00:10:19]file doc_00057505 [00:10:19]remove file /storage/0069/doc_00057505 [00:10:19]file doc_00057506 [00:10:19]remove file /storage/0069/doc_00057506 [00:10:19]file doc_00057507 [00:10:19]remove file /storage/0069/doc_00057507 [00:10:19]file doc_00057508 [00:10:19]remove file /storage/0069/doc_00057508 [00:10:19]file doc_00057509 [00:10:19]remove file /storage/0069/doc_00057509 [00:10:19]file doc_00057510 [00:10:19]remove file /storage/0069/doc_00057510 [00:10:19]file doc_00057511 [00:10:19]remove file /storage/0069/doc_00057511 [00:10:19]file doc_00057512 [00:10:19]remove file /storage/0069/doc_00057512 [00:10:19]file doc_00057513 [00:10:19]remove file /storage/0069/doc_00057513 [00:10:19]file doc_00057514 [00:10:19]remove file /storage/0069/doc_00057514 [00:10:19]file doc_00057515 [00:10:19]remove file /storage/0069/doc_00057515 [00:10:19]file doc_00057516 [00:10:19]remove file /storage/0069/doc_00057516 [00:10:19]file doc_00057517 [00:10:19]remove file /storage/0069/doc_00057517 [00:10:19]file doc_00057518 [00:10:19]remove file /storage/0069/doc_00057518 [00:10:19]file doc_00057519 [00:10:19]remove file /storage/0069/doc_00057519 [00:10:19]file doc_00057520 [00:10:19]remove file /storage/0069/doc_00057520 [00:10:19]file doc_00057521 [00:10:19]remove file /storage/0069/doc_00057521 [00:10:19]file doc_00057522 [00:10:19]remove file /storage/0069/doc_00057522 [00:10:19]file doc_00057523 [00:10:19]remove file /storage/0069/doc_00057523 [00:10:19]file doc_00057524 [00:10:19]remove file /storage/0069/doc_00057524 [00:10:19]file doc_00057525 [00:10:19]remove file /storage/0069/doc_00057525 [00:10:19]file doc_00057526 [00:10:19]remove file /storage/0069/doc_00057526 [00:10:19]file doc_00057527 [00:10:19]remove file /storage/0069/doc_00057527 [00:10:19]file doc_00057528 [00:10:19]remove file /storage/0069/doc_00057528 [00:10:19]file doc_00057529 [00:10:19]remove file /storage/0069/doc_00057529 [00:10:19]file doc_00057530 [00:10:19]remove file /storage/0069/doc_00057530 [00:10:19]file doc_00057531 [00:10:19]remove file /storage/0069/doc_00057531 [00:10:19]file doc_00057532 [00:10:19]remove file /storage/0069/doc_00057532 [00:10:19]file doc_00057533 [00:10:19]remove file /storage/0069/doc_00057533 [00:10:19]file doc_00057534 [00:10:19]remove file /storage/0069/doc_00057534 [00:10:19]file doc_00057535 [00:10:19]remove file /storage/0069/doc_00057535 [00:10:19]file doc_00057536 [00:10:19]remove file /storage/0069/doc_00057536 [00:10:19]file doc_00057537 [00:10:19]remove file /storage/0069/doc_00057537 [00:10:19]file doc_00057538 [00:10:19]remove file /storage/0069/doc_00057538 [00:10:19]file doc_00057539 [00:10:19]remove file /storage/0069/doc_00057539 [00:10:19]file doc_00057540 [00:10:19]remove file /storage/0069/doc_00057540 [00:10:19]file doc_00057541 [00:10:19]remove file /storage/0069/doc_00057541 [00:10:19]file doc_00057542 [00:10:19]remove file /storage/0069/doc_00057542 [00:10:19]file doc_00057543 [00:10:19]remove file /storage/0069/doc_00057543 [00:10:19]file doc_00057544 [00:10:19]remove file /storage/0069/doc_00057544 [00:10:19]file doc_00057545 [00:10:19]remove file /storage/0069/doc_00057545 [00:10:19]file doc_00057546 [00:10:19]remove file /storage/0069/doc_00057546 [00:10:19]file doc_00057547 [00:10:19]remove file /storage/0069/doc_00057547 [00:10:19]file doc_00057548 [00:10:19]remove file /storage/0069/doc_00057548 [00:10:19]file doc_00057549 [00:10:19]remove file /storage/0069/doc_00057549 [00:10:19]file doc_00057550 [00:10:19]remove file /storage/0069/doc_00057550 [00:10:19]file doc_00057551 [00:10:19]remove file /storage/0069/doc_00057551 [00:10:19]file doc_00057552 [00:10:19]remove file /storage/0069/doc_00057552 [00:10:19]file doc_00057553 [00:10:19]remove file /storage/0069/doc_00057553 [00:10:19]file doc_00057554 [00:10:19]remove file /storage/0069/doc_00057554 [00:10:19]file doc_00057555 [00:10:19]remove file /storage/0069/doc_00057555 [00:10:19]file doc_00057556 [00:10:19]remove file /storage/0069/doc_00057556 [00:10:19]file doc_00057557 [00:10:19]remove file /storage/0069/doc_00057557 [00:10:19]file doc_00057558 [00:10:19]remove file /storage/0069/doc_00057558 [00:10:19]file doc_00057559 [00:10:19]remove file /storage/0069/doc_00057559 [00:10:19]file doc_00057560 [00:10:19]remove file /storage/0069/doc_00057560 [00:10:19]file doc_00057561 [00:10:19]remove file /storage/0069/doc_00057561 [00:10:19]file doc_00057562 [00:10:19]remove file /storage/0069/doc_00057562 [00:10:19]file doc_00057563 [00:10:19]remove file /storage/0069/doc_00057563 [00:10:19]file doc_00057564 [00:10:19]remove file /storage/0069/doc_00057564 [00:10:19]file doc_00057565 [00:10:19]remove file /storage/0069/doc_00057565 [00:10:19]file doc_00057566 [00:10:19]remove file /storage/0069/doc_00057566 [00:10:19]file doc_00057567 [00:10:19]remove file /storage/0069/doc_00057567 [00:10:19]file doc_00057568 [00:10:19]remove file /storage/0069/doc_00057568 [00:10:19]file doc_00057569 [00:10:19]remove file /storage/0069/doc_00057569 [00:10:19]file doc_00057570 [00:10:19]remove file /storage/0069/doc_00057570 [00:10:19]file doc_00057571 [00:10:19]remove file /storage/0069/doc_00057571 [00:10:19]file doc_00057572 [00:10:19]remove file /storage/0069/doc_00057572 [00:10:19]file doc_00057573 [00:10:19]remove file /storage/0069/doc_00057573 [00:10:19]file doc_00057574 [00:10:19]remove file /storage/0069/doc_00057574 [00:10:19]file doc_00057575 [00:10:19]remove file /storage/0069/doc_00057575 [00:10:19]file doc_00057576 [00:10:19]remove file /storage/0069/doc_00057576 [00:10:19]file doc_00057577 [00:10:19]remove file /storage/0069/doc_00057577 [00:10:19]file doc_00057578 [00:10:19]remove file /storage/0069/doc_00057578 [00:10:19]file doc_00057579 [00:10:19]remove file /storage/0069/doc_00057579 [00:10:19]file doc_00057580 [00:10:19]remove file /storage/0069/doc_00057580 [00:10:19]file doc_00057581 [00:10:19]remove file /storage/0069/doc_00057581 [00:10:19]file doc_00057582 [00:10:19]remove file /storage/0069/doc_00057582 [00:10:19]file doc_00057583 [00:10:19]remove file /storage/0069/doc_00057583 [00:10:19]file doc_00057584 [00:10:19]remove file /storage/0069/doc_00057584 [00:10:19]file doc_00057585 [00:10:19]remove file /storage/0069/doc_00057585 [00:10:19]file doc_00057586 [00:10:19]remove file /storage/0069/doc_00057586 [00:10:19]file doc_00057587 [00:10:19]remove file /storage/0069/doc_00057587 [00:10:19]file doc_00057588 [00:10:19]remove file /storage/0069/doc_00057588 [00:10:19]file doc_00057589 [00:10:19]remove file /storage/0069/doc_00057589 [00:10:19]file doc_00057590 [00:10:19]remove file /storage/0069/doc_00057590 [00:10:19]file doc_00057591 [00:10:19]remove file /storage/0069/doc_00057591 [00:10:19]file doc_00057592 [00:10:19]remove file /storage/0069/doc_00057592 [00:10:19]file doc_00057593 [00:10:19]remove file /storage/0069/doc_00057593 [00:10:19]file doc_00057594 [00:10:19]remove file /storage/0069/doc_00057594 [00:10:19]file doc_00057595 [00:10:19]remove file /storage/0069/doc_00057595 [00:10:19]file doc_00057596 [00:10:19]remove file /storage/0069/doc_00057596 [00:10:19]file doc_00057597 [00:10:19]remove file /storage/0069/doc_00057597 [00:10:19]file doc_00057598 [00:10:19]remove file /storage/0069/doc_00057598 [00:10:19]file doc_00057599 [00:10:19]remove file /storage/0069/doc_00057599 [00:10:19]file doc_00057600 [00:10:19]remove file /storage/0069/doc_00057600 [00:10:19]file doc_00057601 [00:10:19]remove file /storage/0069/doc_00057601 [00:10:19]file doc_00057602 [00:10:19]remove file /storage/0069/doc_00057602 [00:10:19]file doc_00057603 [00:10:19]remove file /storage/0069/doc_00057603 [00:10:19]file doc_00057604 [00:10:19]remove file /storage/0069/doc_00057604 [00:10:19]file doc_00057605 [00:10:19]remove file /storage/0069/doc_00057605 [00:10:19]file doc_00057606 [00:10:19]remove file /storage/0069/doc_00057606 [00:10:19]file doc_00057607 [00:10:19]remove file /storage/0069/doc_00057607 [00:10:19]file doc_00057608 [00:10:19]remove file /storage/0069/doc_00057608 [00:10:19]file doc_00057609 [00:10:19]remove file /storage/0069/doc_00057609 [00:10:19]file doc_00057610 [00:10:19]remove file /storage/0069/doc_00057610 [00:10:19]file doc_00057611 [00:10:19]remove file /storage/0069/doc_00057611 [00:10:19]file doc_00057612 [00:10:19]remove file /storage/0069/doc_00057612 [00:10:19]file doc_00057613 [00:10:19]remove file /storage/0069/doc_00057613 [00:10:19]file doc_00057615 [00:10:19]remove file /storage/0069/doc_00057615 [00:10:19]file doc_00057616 [00:10:19]remove file /storage/0069/doc_00057616 [00:10:19]file doc_00057617 [00:10:19]remove file /storage/0069/doc_00057617 [00:10:19]file doc_00057618 [00:10:19]remove file /storage/0069/doc_00057618 [00:10:19]file doc_00057619 [00:10:19]remove file /storage/0069/doc_00057619 [00:10:19]file doc_00057620 [00:10:19]remove file /storage/0069/doc_00057620 [00:10:19]file doc_00057621 [00:10:19]remove file /storage/0069/doc_00057621 [00:10:19]file doc_00057622 [00:10:19]remove file /storage/0069/doc_00057622 [00:10:19]file doc_00057623 [00:10:19]remove file /storage/0069/doc_00057623 [00:10:19]file doc_00057624 [00:10:19]remove file /storage/0069/doc_00057624 [00:10:19]file doc_00057625 [00:10:19]remove file /storage/0069/doc_00057625 [00:10:19]file doc_00057626 [00:10:19]remove file /storage/0069/doc_00057626 [00:10:19]file doc_00057627 [00:10:19]remove file /storage/0069/doc_00057627 [00:10:19]file doc_00057628 [00:10:19]remove file /storage/0069/doc_00057628 [00:10:19]file doc_00057629 [00:10:19]remove file /storage/0069/doc_00057629 [00:10:19]file doc_00057630 [00:10:19]remove file /storage/0069/doc_00057630 [00:10:19]file doc_00057631 [00:10:19]remove file /storage/0069/doc_00057631 [00:10:19]file doc_00057632 [00:10:19]remove file /storage/0069/doc_00057632 [00:10:19]file doc_00057633 [00:10:19]remove file /storage/0069/doc_00057633 [00:10:19]file doc_00057634 [00:10:19]remove file /storage/0069/doc_00057634 [00:10:19]file doc_00057635 [00:10:19]remove file /storage/0069/doc_00057635 [00:10:19]file doc_00057636 [00:10:19]remove file /storage/0069/doc_00057636 [00:10:19]file doc_00057637 [00:10:19]remove file /storage/0069/doc_00057637 [00:10:19]file doc_00057638 [00:10:19]remove file /storage/0069/doc_00057638 [00:10:19]file doc_00057639 [00:10:19]remove file /storage/0069/doc_00057639 [00:10:19]file doc_00057640 [00:10:19]remove file /storage/0069/doc_00057640 [00:10:19]file doc_00057641 [00:10:19]remove file /storage/0069/doc_00057641 [00:10:19]file doc_00057642 [00:10:19]remove file /storage/0069/doc_00057642 [00:10:19]file doc_00057643 [00:10:19]remove file /storage/0069/doc_00057643 [00:10:19]file doc_00057644 [00:10:19]remove file /storage/0069/doc_00057644 [00:10:19]file doc_00057645 [00:10:19]remove file /storage/0069/doc_00057645 [00:10:19]file doc_00057646 [00:10:19]remove file /storage/0069/doc_00057646 [00:10:19]file doc_00057647 [00:10:19]remove file /storage/0069/doc_00057647 [00:10:19]file doc_00057648 [00:10:19]remove file /storage/0069/doc_00057648 [00:10:19]file doc_00057649 [00:10:19]remove file /storage/0069/doc_00057649 [00:10:19]file doc_00057650 [00:10:19]remove file /storage/0069/doc_00057650 [00:10:19]file doc_00057651 [00:10:19]remove file /storage/0069/doc_00057651 [00:10:19]file doc_00057652 [00:10:19]remove file /storage/0069/doc_00057652 [00:10:19]file doc_00057653 [00:10:19]remove file /storage/0069/doc_00057653 [00:10:19]file doc_00057654 [00:10:19]remove file /storage/0069/doc_00057654 [00:10:19]file doc_00057655 [00:10:19]remove file /storage/0069/doc_00057655 [00:10:19]file doc_00057656 [00:10:19]remove file /storage/0069/doc_00057656 [00:10:19]file doc_00057657 [00:10:19]remove file /storage/0069/doc_00057657 [00:10:19]file doc_00057658 [00:10:19]remove file /storage/0069/doc_00057658 [00:10:19]file doc_00057659 [00:10:19]remove file /storage/0069/doc_00057659 [00:10:19]file doc_00057660 [00:10:19]remove file /storage/0069/doc_00057660 [00:10:19]file doc_00057661 [00:10:19]remove file /storage/0069/doc_00057661 [00:10:19]file doc_00057662 [00:10:19]remove file /storage/0069/doc_00057662 [00:10:19]file doc_00057663 [00:10:19]remove file /storage/0069/doc_00057663 [00:10:19]file doc_00057664 [00:10:19]remove file /storage/0069/doc_00057664 [00:10:19]file doc_00057665 [00:10:19]remove file /storage/0069/doc_00057665 [00:10:19]file doc_00057666 [00:10:19]remove file /storage/0069/doc_00057666 [00:10:19]file doc_00057667 [00:10:19]remove file /storage/0069/doc_00057667 [00:10:19]file doc_00057668 [00:10:19]remove file /storage/0069/doc_00057668 [00:10:19]file doc_00057669 [00:10:19]remove file /storage/0069/doc_00057669 [00:10:19]file doc_00057670 [00:10:19]remove file /storage/0069/doc_00057670 [00:10:19]file doc_00057671 [00:10:19]remove file /storage/0069/doc_00057671 [00:10:19]file doc_00057672 [00:10:19]remove file /storage/0069/doc_00057672 [00:10:19]file doc_00057673 [00:10:19]remove file /storage/0069/doc_00057673 [00:10:19]file doc_00057674 [00:10:19]remove file /storage/0069/doc_00057674 [00:10:19]file doc_00057675 [00:10:19]remove file /storage/0069/doc_00057675 [00:10:19]file doc_00057676 [00:10:19]remove file /storage/0069/doc_00057676 [00:10:19]file doc_00057677 [00:10:19]remove file /storage/0069/doc_00057677 [00:10:19]file doc_00057678 [00:10:19]remove file /storage/0069/doc_00057678 [00:10:19]file doc_00057679 [00:10:19]remove file /storage/0069/doc_00057679 [00:10:19]file doc_00057680 [00:10:19]remove file /storage/0069/doc_00057680 [00:10:19]file doc_00057681 [00:10:19]remove file /storage/0069/doc_00057681 [00:10:19]file doc_00057682 [00:10:19]remove file /storage/0069/doc_00057682 [00:10:19]file doc_00057683 [00:10:19]remove file /storage/0069/doc_00057683 [00:10:19]file doc_00057684 [00:10:19]remove file /storage/0069/doc_00057684 [00:10:19]file doc_00057685 [00:10:19]remove file /storage/0069/doc_00057685 [00:10:19]file doc_00057686 [00:10:19]remove file /storage/0069/doc_00057686 [00:10:19]file doc_00057687 [00:10:19]remove file /storage/0069/doc_00057687 [00:10:19]file doc_00057688 [00:10:19]remove file /storage/0069/doc_00057688 [00:10:19]file doc_00057689 [00:10:19]remove file /storage/0069/doc_00057689 [00:10:19]file doc_00057690 [00:10:19]remove file /storage/0069/doc_00057690 [00:10:19]file doc_00057691 [00:10:19]remove file /storage/0069/doc_00057691 [00:10:19]file doc_00057692 [00:10:19]remove file /storage/0069/doc_00057692 [00:10:19]file doc_00057693 [00:10:19]remove file /storage/0069/doc_00057693 [00:10:19]file doc_00057694 [00:10:19]remove file /storage/0069/doc_00057694 [00:10:19]file doc_00057695 [00:10:19]remove file /storage/0069/doc_00057695 [00:10:19]file doc_00057696 [00:10:19]remove file /storage/0069/doc_00057696 [00:10:19]file doc_00057697 [00:10:19]remove file /storage/0069/doc_00057697 [00:10:19]file doc_00057698 [00:10:19]remove file /storage/0069/doc_00057698 [00:10:19]file doc_00057699 [00:10:20]remove file /storage/0069/doc_00057699 [00:10:20]file doc_00057700 [00:10:20]remove file /storage/0069/doc_00057700 [00:10:20]file doc_00057701 [00:10:20]remove file /storage/0069/doc_00057701 [00:10:20]file doc_00057702 [00:10:20]remove file /storage/0069/doc_00057702 [00:10:20]file doc_00057703 [00:10:20]remove file /storage/0069/doc_00057703 [00:10:20]file doc_00057704 [00:10:20]remove file /storage/0069/doc_00057704 [00:10:20]file doc_00057705 [00:10:20]remove file /storage/0069/doc_00057705 [00:10:20]file doc_00057706 [00:10:20]remove file /storage/0069/doc_00057706 [00:10:20]file doc_00057707 [00:10:20]remove file /storage/0069/doc_00057707 [00:10:20]file doc_00057708 [00:10:20]remove file /storage/0069/doc_00057708 [00:10:20]file doc_00057709 [00:10:20]remove file /storage/0069/doc_00057709 [00:10:20]file doc_00057710 [00:10:20]remove file /storage/0069/doc_00057710 [00:10:20]file doc_00057711 [00:10:20]remove file /storage/0069/doc_00057711 [00:10:20]file doc_00057712 [00:10:20]remove file /storage/0069/doc_00057712 [00:10:20]file doc_00057713 [00:10:20]remove file /storage/0069/doc_00057713 [00:10:20]file doc_00057714 [00:10:20]remove file /storage/0069/doc_00057714 [00:10:20]file doc_00057715 [00:10:20]remove file /storage/0069/doc_00057715 [00:10:20]file doc_00057716 [00:10:20]remove file /storage/0069/doc_00057716 [00:10:20]file doc_00057717 [00:10:20]remove file /storage/0069/doc_00057717 [00:10:20]file doc_00057718 [00:10:20]remove file /storage/0069/doc_00057718 [00:10:20]file doc_00057719 [00:10:20]remove file /storage/0069/doc_00057719 [00:10:20]file doc_00057720 [00:10:20]remove file /storage/0069/doc_00057720 [00:10:20]file doc_00057721 [00:10:20]remove file /storage/0069/doc_00057721 [00:10:20]file doc_00057722 [00:10:20]remove file /storage/0069/doc_00057722 [00:10:20]file doc_00057723 [00:10:20]remove file /storage/0069/doc_00057723 [00:10:20]file doc_00057724 [00:10:20]remove file /storage/0069/doc_00057724 [00:10:20]file doc_00057725 [00:10:20]remove file /storage/0069/doc_00057725 [00:10:20]file doc_00057726 [00:10:20]remove file /storage/0069/doc_00057726 [00:10:20]file doc_00057727 [00:10:20]remove file /storage/0069/doc_00057727 [00:10:20]file doc_00057728 [00:10:20]remove file /storage/0069/doc_00057728 [00:10:20]file doc_00057729 [00:10:20]remove file /storage/0069/doc_00057729 [00:10:20]file doc_00057730 [00:10:20]remove file /storage/0069/doc_00057730 [00:10:20]file doc_00057731 [00:10:20]remove file /storage/0069/doc_00057731 [00:10:20]file doc_00057732 [00:10:20]remove file /storage/0069/doc_00057732 [00:10:20]file doc_00057733 [00:10:20]remove file /storage/0069/doc_00057733 [00:10:20]file doc_00057734 [00:10:20]remove file /storage/0069/doc_00057734 [00:10:20]file doc_00057735 [00:10:20]remove file /storage/0069/doc_00057735 [00:10:20]file doc_00057736 [00:10:20]remove file /storage/0069/doc_00057736 [00:10:20]file doc_00057737 [00:10:20]remove file /storage/0069/doc_00057737 [00:10:20]file doc_00057738 [00:10:20]remove file /storage/0069/doc_00057738 [00:10:20]file doc_00057739 [00:10:20]remove file /storage/0069/doc_00057739 [00:10:20]file doc_00057740 [00:10:20]remove file /storage/0069/doc_00057740 [00:10:20]file doc_00057741 [00:10:20]remove file /storage/0069/doc_00057741 [00:10:20]file doc_00057742 [00:10:20]remove file /storage/0069/doc_00057742 [00:10:20]file doc_00057743 [00:10:20]remove file /storage/0069/doc_00057743 [00:10:20]file doc_00057744 [00:10:20]remove file /storage/0069/doc_00057744 [00:10:20]file doc_00057745 [00:10:20]remove file /storage/0069/doc_00057745 [00:10:20]file doc_00057746 [00:10:20]remove file /storage/0069/doc_00057746 [00:10:20]file doc_00057747 [00:10:20]remove file /storage/0069/doc_00057747 [00:10:20]file doc_00057748 [00:10:20]remove file /storage/0069/doc_00057748 [00:10:20]file doc_00057749 [00:10:20]remove file /storage/0069/doc_00057749 [00:10:20]file doc_00057750 [00:10:20]remove file /storage/0069/doc_00057750 [00:10:20]file doc_00057751 [00:10:20]remove file /storage/0069/doc_00057751 [00:10:20]file doc_00057752 [00:10:20]remove file /storage/0069/doc_00057752 [00:10:20]file doc_00057753 [00:10:20]remove file /storage/0069/doc_00057753 [00:10:20]file doc_00057754 [00:10:20]remove file /storage/0069/doc_00057754 [00:10:20]file doc_00057755 [00:10:20]remove file /storage/0069/doc_00057755 [00:10:20]file doc_00057756 [00:10:20]remove file /storage/0069/doc_00057756 [00:10:20]file doc_00057757 [00:10:20]remove file /storage/0069/doc_00057757 [00:10:20]file doc_00057758 [00:10:20]remove file /storage/0069/doc_00057758 [00:10:20]file doc_00057759 [00:10:20]remove file /storage/0069/doc_00057759 [00:10:20]file doc_00057760 [00:10:20]remove file /storage/0069/doc_00057760 [00:10:20]file doc_00057761 [00:10:20]remove file /storage/0069/doc_00057761 [00:10:20]file doc_00057762 [00:10:20]remove file /storage/0069/doc_00057762 [00:10:20]file doc_00057763 [00:10:20]remove file /storage/0069/doc_00057763 [00:10:20]file doc_00057764 [00:10:20]remove file /storage/0069/doc_00057764 [00:10:20]file doc_00057765 [00:10:20]remove file /storage/0069/doc_00057765 [00:10:20]file doc_00057766 [00:10:20]remove file /storage/0069/doc_00057766 [00:10:20]file doc_00057768 [00:10:20]remove file /storage/0069/doc_00057768 [00:10:20]file doc_00057769 [00:10:20]remove file /storage/0069/doc_00057769 [00:10:20]file doc_00057770 [00:10:20]remove file /storage/0069/doc_00057770 [00:10:20]file doc_00057771 [00:10:20]remove file /storage/0069/doc_00057771 [00:10:20]file doc_00057772 [00:10:20]remove file /storage/0069/doc_00057772 [00:10:20]file doc_00057773 [00:10:20]remove file /storage/0069/doc_00057773 [00:10:20]file doc_00057774 [00:10:20]remove file /storage/0069/doc_00057774 [00:10:20]file doc_00057775 [00:10:20]remove file /storage/0069/doc_00057775 [00:10:20]file doc_00057776 [00:10:20]remove file /storage/0069/doc_00057776 [00:10:20]file doc_00057777 [00:10:20]remove file /storage/0069/doc_00057777 [00:10:20]file doc_00057778 [00:10:20]remove file /storage/0069/doc_00057778 [00:10:20]file doc_00057779 [00:10:20]remove file /storage/0069/doc_00057779 [00:10:20]file doc_00057780 [00:10:20]remove file /storage/0069/doc_00057780 [00:10:20]file doc_00057781 [00:10:20]remove file /storage/0069/doc_00057781 [00:10:20]file doc_00057782 [00:10:20]remove file /storage/0069/doc_00057782 [00:10:20]file doc_00057783 [00:10:20]remove file /storage/0069/doc_00057783 [00:10:20]file doc_00057784 [00:10:20]remove file /storage/0069/doc_00057784 [00:10:20]file doc_00057785 [00:10:20]remove file /storage/0069/doc_00057785 [00:10:20]file doc_00057786 [00:10:20]remove file /storage/0069/doc_00057786 [00:10:20]file doc_00057787 [00:10:20]remove file /storage/0069/doc_00057787 [00:10:20]file doc_00057788 [00:10:20]remove file /storage/0069/doc_00057788 [00:10:20]file doc_00057789 [00:10:20]remove file /storage/0069/doc_00057789 [00:10:20]file doc_00057790 [00:10:20]remove file /storage/0069/doc_00057790 [00:10:20]file doc_00057791 [00:10:20]remove file /storage/0069/doc_00057791 [00:10:20]file doc_00057792 [00:10:20]remove file /storage/0069/doc_00057792 [00:10:20]file doc_00057793 [00:10:20]remove file /storage/0069/doc_00057793 [00:10:20]file doc_00057794 [00:10:20]remove file /storage/0069/doc_00057794 [00:10:20]file doc_00057796 [00:10:20]remove file /storage/0069/doc_00057796 [00:10:20]file doc_00057797 [00:10:20]remove file /storage/0069/doc_00057797 [00:10:20]file doc_00057798 [00:10:20]remove file /storage/0069/doc_00057798 [00:10:20]file doc_00057799 [00:10:20]remove file /storage/0069/doc_00057799 [00:10:20]file doc_00057800 [00:10:20]remove file /storage/0069/doc_00057800 [00:10:20]file doc_00057801 [00:10:20]remove file /storage/0069/doc_00057801 [00:10:20]file doc_00057802 [00:10:20]remove file /storage/0069/doc_00057802 [00:10:20]file doc_00057803 [00:10:20]remove file /storage/0069/doc_00057803 [00:10:20]file doc_00057804 [00:10:20]remove file /storage/0069/doc_00057804 [00:10:20]file doc_00057805 [00:10:20]remove file /storage/0069/doc_00057805 [00:10:20]file doc_00057806 [00:10:20]remove file /storage/0069/doc_00057806 [00:10:20]file doc_00057807 [00:10:20]remove file /storage/0069/doc_00057807 [00:10:20]file doc_00057808 [00:10:20]remove file /storage/0069/doc_00057808 [00:10:20]file doc_00057810 [00:10:20]remove file /storage/0069/doc_00057810 [00:10:20]file doc_00057811 [00:10:20]remove file /storage/0069/doc_00057811 [00:10:20]file doc_00057812 [00:10:20]remove file /storage/0069/doc_00057812 [00:10:20]file doc_00057813 [00:10:20]remove file /storage/0069/doc_00057813 [00:10:20]file doc_00057814 [00:10:20]remove file /storage/0069/doc_00057814 [00:10:20]file doc_00057815 [00:10:20]remove file /storage/0069/doc_00057815 [00:10:20]file doc_00057816 [00:10:20]remove file /storage/0069/doc_00057816 [00:10:20]file doc_00057817 [00:10:20]remove file /storage/0069/doc_00057817 [00:10:20]file doc_00057818 [00:10:20]remove file /storage/0069/doc_00057818 [00:10:20]file doc_00057819 [00:10:20]remove file /storage/0069/doc_00057819 [00:10:20]file doc_00057820 [00:10:20]remove file /storage/0069/doc_00057820 [00:10:20]file doc_00057821 [00:10:20]remove file /storage/0069/doc_00057821 [00:10:20]file doc_00057822 [00:10:20]remove file /storage/0069/doc_00057822 [00:10:20]file doc_00057823 [00:10:20]remove file /storage/0069/doc_00057823 [00:10:20]file doc_00057824 [00:10:20]remove file /storage/0069/doc_00057824 [00:10:20]file doc_00057825 [00:10:20]remove file /storage/0069/doc_00057825 [00:10:20]file doc_00057826 [00:10:20]remove file /storage/0069/doc_00057826 [00:10:20]file doc_00057827 [00:10:20]remove file /storage/0069/doc_00057827 [00:10:20]file doc_00057828 [00:10:20]remove file /storage/0069/doc_00057828 [00:10:20]file doc_00057829 [00:10:20]remove file /storage/0069/doc_00057829 [00:10:20]file doc_00057830 [00:10:20]remove file /storage/0069/doc_00057830 [00:10:20]file doc_00057831 [00:10:20]remove file /storage/0069/doc_00057831 [00:10:20]file doc_00057832 [00:10:20]remove file /storage/0069/doc_00057832 [00:10:20]file doc_00057833 [00:10:20]remove file /storage/0069/doc_00057833 [00:10:20]file doc_00057834 [00:10:20]remove file /storage/0069/doc_00057834 [00:10:20]file doc_00057835 [00:10:20]remove file /storage/0069/doc_00057835 [00:10:20]file doc_00057836 [00:10:20]remove file /storage/0069/doc_00057836 [00:10:20]file doc_00057837 [00:10:20]remove file /storage/0069/doc_00057837 [00:10:20]file doc_00057838 [00:10:20]remove file /storage/0069/doc_00057838 [00:10:20]file doc_00057839 [00:10:20]remove file /storage/0069/doc_00057839 [00:10:20]file doc_00057840 [00:10:20]remove file /storage/0069/doc_00057840 [00:10:20]file doc_00057841 [00:10:20]remove file /storage/0069/doc_00057841 [00:10:20]file doc_00057842 [00:10:20]remove file /storage/0069/doc_00057842 [00:10:20]file doc_00057843 [00:10:20]remove file /storage/0069/doc_00057843 [00:10:20]file doc_00057844 [00:10:20]remove file /storage/0069/doc_00057844 [00:10:20]file doc_00057845 [00:10:20]remove file /storage/0069/doc_00057845 [00:10:20]file doc_00057846 [00:10:20]remove file /storage/0069/doc_00057846 [00:10:20]file doc_00057847 [00:10:20]remove file /storage/0069/doc_00057847 [00:10:20]file doc_00057848 [00:10:20]remove file /storage/0069/doc_00057848 [00:10:20]file doc_00057850 [00:10:20]remove file /storage/0069/doc_00057850 [00:10:20]file doc_00057851 [00:10:20]remove file /storage/0069/doc_00057851 [00:10:20]file doc_00057852 [00:10:20]remove file /storage/0069/doc_00057852 [00:10:20]file doc_00057853 [00:10:20]remove file /storage/0069/doc_00057853 [00:10:20]file doc_00057854 [00:10:20]remove file /storage/0069/doc_00057854 [00:10:20]file doc_00057855 [00:10:20]remove file /storage/0069/doc_00057855 [00:10:20]file doc_00057856 [00:10:20]remove file /storage/0069/doc_00057856 [00:10:20]file doc_00057857 [00:10:20]remove file /storage/0069/doc_00057857 [00:10:20]file doc_00057858 [00:10:20]remove file /storage/0069/doc_00057858 [00:10:20]file doc_00057859 [00:10:20]remove file /storage/0069/doc_00057859 [00:10:20]file doc_00057860 [00:10:20]remove file /storage/0069/doc_00057860 [00:10:20]file doc_00057861 [00:10:20]remove file /storage/0069/doc_00057861 [00:10:20]file doc_00057862 [00:10:20]remove file /storage/0069/doc_00057862 [00:10:20]file doc_00057863 [00:10:20]remove file /storage/0069/doc_00057863 [00:10:20]file doc_00057864 [00:10:20]remove file /storage/0069/doc_00057864 [00:10:20]file doc_00057865 [00:10:20]remove file /storage/0069/doc_00057865 [00:10:20]file doc_00057866 [00:10:20]remove file /storage/0069/doc_00057866 [00:10:20]file doc_00057867 [00:10:20]remove file /storage/0069/doc_00057867 [00:10:20]file doc_00057868 [00:10:20]remove file /storage/0069/doc_00057868 [00:10:20]file doc_00057869 [00:10:20]remove file /storage/0069/doc_00057869 [00:10:20]file doc_00057870 [00:10:20]remove file /storage/0069/doc_00057870 [00:10:20]file doc_00057871 [00:10:20]remove file /storage/0069/doc_00057871 [00:10:20]file doc_00057872 [00:10:20]remove file /storage/0069/doc_00057872 [00:10:20]file doc_00057873 [00:10:20]remove file /storage/0069/doc_00057873 [00:10:20]file doc_00057874 [00:10:20]remove file /storage/0069/doc_00057874 [00:10:20]file doc_00057875 [00:10:20]remove file /storage/0069/doc_00057875 [00:10:20]file doc_00057876 [00:10:20]remove file /storage/0069/doc_00057876 [00:10:20]file doc_00057877 [00:10:20]remove file /storage/0069/doc_00057877 [00:10:20]file doc_00057878 [00:10:20]remove file /storage/0069/doc_00057878 [00:10:20]file doc_00057879 [00:10:20]remove file /storage/0069/doc_00057879 [00:10:20]file doc_00057880 [00:10:20]remove file /storage/0069/doc_00057880 [00:10:20]file doc_00057881 [00:10:20]remove file /storage/0069/doc_00057881 [00:10:20]file doc_00057882 [00:10:20]remove file /storage/0069/doc_00057882 [00:10:20]file doc_00057883 [00:10:20]remove file /storage/0069/doc_00057883 [00:10:20]file doc_00057884 [00:10:20]remove file /storage/0069/doc_00057884 [00:10:20]file doc_00057885 [00:10:20]remove file /storage/0069/doc_00057885 [00:10:20]file doc_00057886 [00:10:20]remove file /storage/0069/doc_00057886 [00:10:20]file doc_00057887 [00:10:20]remove file /storage/0069/doc_00057887 [00:10:20]file doc_00057888 [00:10:20]remove file /storage/0069/doc_00057888 [00:10:20]file doc_00057889 [00:10:20]remove file /storage/0069/doc_00057889 [00:10:20]file doc_00057890 [00:10:20]remove file /storage/0069/doc_00057890 [00:10:20]file doc_00057891 [00:10:20]remove file /storage/0069/doc_00057891 [00:10:20]file doc_00057892 [00:10:20]remove file /storage/0069/doc_00057892 [00:10:20]file doc_00057893 [00:10:20]remove file /storage/0069/doc_00057893 [00:10:20]file doc_00057894 [00:10:20]remove file /storage/0069/doc_00057894 [00:10:20]file doc_00057895 [00:10:20]remove file /storage/0069/doc_00057895 [00:10:20]file doc_00057896 [00:10:20]remove file /storage/0069/doc_00057896 [00:10:20]file doc_00057897 [00:10:20]remove file /storage/0069/doc_00057897 [00:10:20]file doc_00057898 [00:10:20]remove file /storage/0069/doc_00057898 [00:10:20]file doc_00057899 [00:10:20]remove file /storage/0069/doc_00057899 [00:10:20]file doc_00057900 [00:10:20]remove file /storage/0069/doc_00057900 [00:10:20]file doc_00057901 [00:10:20]remove file /storage/0069/doc_00057901 [00:10:20]file doc_00057902 [00:10:20]remove file /storage/0069/doc_00057902 [00:10:20]file doc_00057903 [00:10:20]remove file /storage/0069/doc_00057903 [00:10:20]file doc_00057904 [00:10:20]remove file /storage/0069/doc_00057904 [00:10:21]file doc_00057905 [00:10:21]remove file /storage/0069/doc_00057905 [00:10:21]file doc_00057906 [00:10:21]remove file /storage/0069/doc_00057906 [00:10:21]file doc_00057907 [00:10:21]remove file /storage/0069/doc_00057907 [00:10:21]file doc_00057908 [00:10:21]remove file /storage/0069/doc_00057908 [00:10:21]file doc_00057909 [00:10:21]remove file /storage/0069/doc_00057909 [00:10:21]file doc_00057910 [00:10:21]remove file /storage/0069/doc_00057910 [00:10:21]file doc_00057911 [00:10:21]remove file /storage/0069/doc_00057911 [00:10:21]file doc_00057912 [00:10:21]remove file /storage/0069/doc_00057912 [00:10:21]file doc_00057913 [00:10:21]remove file /storage/0069/doc_00057913 [00:10:21]file doc_00057914 [00:10:21]remove file /storage/0069/doc_00057914 [00:10:21]file doc_00057915 [00:10:21]remove file /storage/0069/doc_00057915 [00:10:21]remove dir /storage/0069 [00:10:21]ProcessDocumentItem done err = 0, tmpTLVsize=266 [00:10:21]tlvbuf is 019E2220 [00:10:21]SAM_PROTO_ClearQueue [00:10:21]wFMCommunicate request_size=4 [00:10:21]MH_SAM_APDU [00:10:21]CAPDU: 80 09 00 00 [00:10:21]Write to MH i2c: E2 08 00 B7 14 80 09 00 00 00 00 00 00 3D [00:10:21]Write i2c OK [00:10:21]MH_I2C_Read... [00:10:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:10:21]Read from MH i2c: E2 [00:10:21]MH_I2C_Read... [00:10:21]Read from MH i2c: E2 03 00 [00:10:21]MH_I2C_Read... [00:10:21]Read from MH i2c: E2 03 00 B7 14 00 90 00 3F [00:10:21]RAPDU: 90 00 [00:10:21]wFMCommunicate OK [00:10:21]SAM_PROTO_ClearQueue done [00:10:21]KKMCreateOFDPacket [00:10:21]OFDProtocolAddRootSTLVToBuf [00:10:21]FM_MakeSignedData [00:10:21]FM_MakeSignedData [00:10:21]SAM_PROTO_SignData [00:10:21]wFMCommunicate request_size=4 [00:10:21]MH_SAM_APDU [00:10:21]CAPDU: 80 0D 01 02 [00:10:21]Write to MH i2c: E2 08 00 B8 14 80 0D 01 02 00 00 00 00 45 [00:10:21]Write i2c OK [00:10:21]MH_I2C_Read... [00:10:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:10:21]Read from MH i2c: E2 [00:10:21]MH_I2C_Read... [00:10:21]Read from MH i2c: E2 03 00 [00:10:21]MH_I2C_Read... [00:10:21]Read from MH i2c: E2 03 00 B8 14 00 90 00 40 [00:10:21]RAPDU: 90 00 [00:10:21]wFMCommunicate OK [00:10:21]wFMCommunicate request_size=255 [00:10:21]MH_SAM_APDU [00:10:21]CAPDU: 80 0D 02 02 FA 02 00 0A 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 BB D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 5A 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 20 31 30 31 2F 31 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 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 E9 09 5D 66 0E 04 04 00 46 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3C E2 00 00 11 04 10 00 30 30 30 30 30 30 [00:10:21]Write to MH i2c: E2 02 01 B9 14 80 0D 02 02 FA 00 02 00 0A 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 BB D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 5A 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 20 31 30 31 2F 31 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 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 E9 09 5D 66 0E 04 04 00 46 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3C E2 00 00 11 04 10 00 30 30 30 30 30 30 00 00 08 [00:10:21]Write i2c OK [00:10:21]MH_I2C_Read... [00:10:21]Read from MH i2c: E2 [00:10:21]MH_I2C_Read... [00:10:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:21]Read from MH i2c: E2 03 00 [00:10:21]MH_I2C_Read... [00:10:21]Read from MH i2c: E2 03 00 B9 14 00 90 00 41 [00:10:21]RAPDU: 90 00 [00:10:21]wFMCommunicate OK [00:10:21]wFMCommunicate request_size=25 [00:10:21]MH_SAM_APDU [00:10:21]CAPDU: 80 0D 02 02 14 30 30 30 30 39 35 39 34 31 34 35 04 06 00 2E A8 16 DD FD E1 [00:10:21]Write to MH i2c: E2 1C 00 BA 14 80 0D 02 02 14 00 30 30 30 30 39 35 39 34 31 34 35 04 06 00 2E A8 16 DD FD E1 00 00 56 [00:10:21]Write i2c OK [00:10:21]MH_I2C_Read... [00:10:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:21]Read from MH i2c: E2 [00:10:21]MH_I2C_Read... [00:10:21]Read from MH i2c: E2 03 00 [00:10:21]MH_I2C_Read... [00:10:21]Read from MH i2c: E2 03 00 BA 14 00 90 00 42 [00:10:21]RAPDU: 90 00 [00:10:21]wFMCommunicate OK [00:10:21]wFMCommunicate request_size=4 [00:10:21]MH_SAM_APDU [00:10:21]CAPDU: 80 0D 03 02 [00:10:21]Write to MH i2c: E2 08 00 BB 14 80 0D 03 02 00 00 00 00 4A [00:10:21]Write i2c OK [00:10:21]MH_I2C_Read... [00:10:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:10:21]Read from MH i2c: E2 [00:10:21]MH_I2C_Read... [00:10:21]Read from MH i2c: E2 0B 00 [00:10:21]MH_I2C_Read... [00:10:21]Read from MH i2c: E2 0B 00 BB 14 00 73 9E AB 37 9E D4 EA C5 90 00 5F [00:10:21]RAPDU: 73 9E AB 37 9E D4 EA C5 90 00 [00:10:21]wFMCommunicate OK [00:10:21]SAM_PROTO_SignData done [00:10:21]FM_MakeSignedData done [00:10:21]CreateOFDProtocolMessage [00:10:21]wFMCommunicate request_size=4 [00:10:21]MH_SAM_APDU [00:10:21]CAPDU: 80 11 00 00 [00:10:21]Write to MH i2c: E2 08 00 BC 14 80 11 00 00 00 00 00 00 4A [00:10:21]Write i2c OK [00:10:21]MH_I2C_Read... [00:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:22]Read from MH i2c: E2 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: E2 17 00 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: E2 17 00 BC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 9D [00:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:10:22]wFMCommunicate OK [00:10:22]CreateOFDProtocolMessage done [00:10:22]OFDSenderStorePacket 57916 [00:10:22]StoreOFDPacket docnum=57916 [00:10:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 1E 01 00 00 2E FE 16 01 90 A5 5A 02 01 00 02 00 0A 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 BB D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 5A 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 20 31 30 31 2F 31 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 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 E9 09 5D 66 0E 04 04 00 46 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3C E2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 35 04 06 00 2E A8 16 DD FD E1 73 9E AB 37 9E D4 EA C5 [00:10:22]CheckFolder [00:10:22]dirname=/storage/ofd_packets [00:10:22]CheckFolder done [00:10:22]ProducePacketName [00:10:22]name=ofd_packets/00057916 [00:10:22]NVStorageSaveData ofd_packets/00057916 [00:10:22]File name is /storage/ofd_packets/00057916 [00:10:22]Write 316 bytes [00:10:22]NVStorageSaveData done [00:10:22]OFDSenderStorePacket done [00:10:22]KKMCreateOFDPacket done [00:10:22]NVStorageSaveData kkm_last_timestamp [00:10:22]File name is /storage/kkm_last_timestamp [00:10:22]Write 4 bytes [00:10:22]NVStorageSaveData done [00:10:22]ExternCall_PrintAddStr [00:10:22]wPrintStart [00:10:22]Write to MH i2c: 01 00 00 BD 14 D1 [00:10:22]Write i2c OK [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: 01 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: 01 07 00 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: 01 07 00 BD 14 00 00 00 00 00 FF 0F E6 [00:10:22]RasterBufferAndPrint [00:10:22]line Отчет об открытии смены [00:10:22]line ФФД: 1.0 [00:10:22]line ИНН: 02508201610067 [00:10:22]line Кассир: Калыгулова Н. [00:10:22]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:10:22]line Место: АЗС № 117 "Партнер Нефть" [00:10:22]line 03.06.2024 00:10 [00:10:22]line Смена: 70 [00:10:22]line РНМ: 0000000000151680 [00:10:22]line ЗНМ: 0300000048 [00:10:22]line ФД: 57916 [00:10:22]line ФМ: 0000000000959414 [00:10:22]line ФПД: 51299473030625 [00:10:22]written 0, free lines is 4095 [00:10:22]OFD Sender: Processing packet 57916 [packets to send 50, broken 49] [00:10:22]ProducePacketName [00:10:22]name=ofd_packets/00057916 [00:10:22]OFD Sender: To server: pG, [00:10:22]CommunicateWithHost lk.salyk.kg:30040 [00:10:22]ConnectInit lk.salyk.kg [00:10:22]Connected sock=10 [00:10:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 1E 01 00 00 2E FE 16 01 90 A5 5A 02 01 00 02 00 0A 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 BB D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 5A 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 20 31 30 31 2F 31 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 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 E9 09 5D 66 0E 04 04 00 46 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3C E2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 Write to MH i2c: 30 01 30 00 39 00 35 CF 39 14 34 E3 31 [00:10:22]34 35 04 06 00 2E A8 16 DD FD E1 73 9E AB Write i2c OK [00:10:22]37 MH_I2C_Read... [00:10:22]9E Read from MH i2c: D4 01 EA [00:10:22]C5 MH_I2C_Read... [00:10:22] [00:10:22]Read from MH i2c: 01 07 00 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: 01 07 00 CF 14 00 00 00 00 00 8F 0E 87 [00:10:22]RasterBufferAndPrint [00:10:22]line [00:10:22]line [00:10:22]line [00:10:22]line [00:10:22]line [00:10:22]written 0, free lines is 3754 [00:10:22]MH_Cut [00:10:22]Write to MH i2c: D1 01 00 D6 14 01 BC [00:10:22]Write i2c OK [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: D1 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: D1 01 00 [00:10:22]MH_I2C_Read... [00:10:22]Read from MH i2c: D1 01 00 D6 14 00 BB [00:10:22]Write to MH i2c: 01 00 00 D7 14 EB [00:10:22]Write i2c OK [00:10:22]MH_I2C_Read... [00:10:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 64 CF 47 00 26 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3C E2 00 00 F4 03 04 00 BC B4 5C 66 B6 04 01 00 00 F3 86 6E 00 BF 1F 36 09 [00:10:22]CommunicateWithHost err = 0 [00:10:22]CheckOFDResponse [00:10:22]1017 (14) - 77093643461234 [00:10:22]1041 (16) - 0000000000959414 [00:10:22]1040 (4) - 57916 [00:10:22]1012 (4) - 02.06.2024 18:06 [00:10:22]1206 (1) - 0 [00:10:22]OFD Sender: Remove packet 57916 [00:10:22]ProducePacketName [00:10:22]name=ofd_packets/00057916 [00:10:22]NVStorageDeleteData [00:10:22]*** Cut start [00:10:22]*** Partial cut [00:10:22]*** CUTSNS_PIN = 1 [00:10:22]*** CUTSNS_PIN = 0 [00:10:23]OFD Sender: No OFD packet to send [00:10:23]*** Brake cut motor [00:10:23]Read from MH i2c: 01 [00:10:23]MH_I2C_Read... [00:10:23]*** Stop cut motor [00:10:23]*** Cut end [00:10:23]Read from MH i2c: 01 07 00 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: 01 07 00 D7 14 00 00 00 00 00 FF 0F 00 [00:10:23]process_action open_shift done [00:10:23]requested_data is exist [00:10:23]produce_requested_data [00:10:23]requested_item fd.num is exist - process it [00:10:23]SAM_PROTO_GetFieldsCounters [00:10:23]wFMCommunicate request_size=4 [00:10:23]MH_SAM_APDU [00:10:23]CAPDU: 80 13 00 00 [00:10:23]Write to MH i2c: E2 08 00 D8 14 80 13 00 00 00 00 00 00 68 [00:10:23]Write i2c OK [00:10:23]MH_I2C_Read... [00:10:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:23]Read from MH i2c: E2 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 62 00 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 62 00 D8 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3C E2 00 00 0E 04 04 00 46 00 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 E9 [00:10:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3C E2 00 00 0E 04 04 00 46 00 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:10:23]wFMCommunicate OK [00:10:23]SAM_PROTO_GetFieldsCounters done [00:10:23]requested_item shift.num is exist - process it [00:10:23]requested_item shift.opened is exist - process it [00:10:23]req_shift_opened [00:10:23]FM_GetShiftState [00:10:23]SAM_PROTO_GetShiftState [00:10:23]wFMCommunicate request_size=4 [00:10:23]MH_SAM_APDU [00:10:23]CAPDU: 80 13 01 00 [00:10:23]Write to MH i2c: E2 08 00 D9 14 80 13 01 00 00 00 00 00 6A [00:10:23]Write i2c OK [00:10:23]MH_I2C_Read... [00:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:23]Read from MH i2c: E2 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 0E 00 [00:10:23]MH_I2C_Read... [00:10:23]Read from MH i2c: E2 0E 00 D9 14 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 2B [00:10:23]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:10:23]wFMCommunicate OK [00:10:23]SAM_PROTO_GetShiftState done [00:10:23]FM_GetShiftState done [00:10:23]req_shift_opened done [00:10:23]requested_item shift.open_date is exist - process it [00:10:23]req_shift_open_date [00:10:23]req_shift_open_date done [00:10:23]produce_requested_data done [00:10:23]produce_requested_data return {"fd.num":57916,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:10:23]process_action_free open_shift [00:10:23]json_value_free [00:10:23]json_value_free done [00:10:23]process_json_proto returns [00:10:23]Send response to host [00:10:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":57916,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:10:23]free response buf [00:10:23]execute_script done [00:10:23]execute_script returns [00:10:23]free content buf [00:10:23]Sock 8.Close socket [00:10:23]Sock 8.Thread stoped [00:10:23]accept exits with 9 [00:10:23]New connection [00:10:23]New thread 3066592612 created [00:10:23]Thread 3066735972 joined [00:10:23]Waiting for new connection... [00:10:23] Sock 9.Parse request [00:10:23]Sock 9.Check first char [00:10:23]Sock 9.First char is OK [00:10:23]request: POST /json_proto HTTP/1.0 [00:10:23]Method: POST [00:10:23]URL: /json_proto [00:10:23]Method is POST - this is cgi request [00:10:23]url: /json_proto [00:10:23]query_string will be loaded in cgi processing [00:10:23]execute_cgi json_proto POST (null) [00:10:23]execute_cgi path=json_proto method=POST [00:10:23]POST find Content-Length [00:10:23]Host: 172.17.60.68:8080 [00:10:23]Content-Length: 331 [00:10:23]Content-Type: application/json [00:10:23] [00:10:23]POST finish read [00:10:23]Found Content-Length = 331 [00:10:23]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:10:23]execute_script... [00:10:23]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:10:23]POST & json_proto [00:10:23]process_json_proto [00:10:23]json parsed OK: [00:10:23]protocol is kg_v1.0 [00:10:23]action value=get_value [00:10:23]process_action get_value [00:10:23]cmd_get_value [00:10:23]process_action get_value done [00:10:23]requested_data is exist [00:10:23]produce_requested_data [00:10:23]requested_item fm.sale.total is exist - process it [00:10:23]SAM_PROTO_GetFMData [00:10:23]wFMCommunicate request_size=4 [00:10:23]MH_SAM_APDU [00:10:23]CAPDU: 80 13 03 00 [00:10:23]Write to MH i2c: E2 08 00 DA 14 80 13 03 00 00 00 00 00 6D [00:10:23]Write i2c OK [00:10:23]MH_I2C_Read... [00:10:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:24]Read from MH i2c: E2 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 FD 00 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 FD 00 DA 14 00 C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 33 [00:10:24]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 [00:10:24]wFMCommunicate OK [00:10:24]wFMCommunicate request_size=4 [00:10:24]MH_SAM_APDU [00:10:24]CAPDU: 80 17 00 00 [00:10:24]Write to MH i2c: E2 08 00 DB 14 80 17 00 00 00 00 00 00 6F [00:10:24]Write i2c OK [00:10:24]MH_I2C_Read... [00:10:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:24]Read from MH i2c: E2 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 FD 00 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 FD 00 DB 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A6 [00:10:24]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:24]wFMCommunicate OK [00:10:24]wFMCommunicate request_size=4 [00:10:24]MH_SAM_APDU [00:10:24]CAPDU: 80 17 00 00 [00:10:24]Write to MH i2c: E2 08 00 DC 14 80 17 00 00 00 00 00 00 70 [00:10:24]Write i2c OK [00:10:24]MH_I2C_Read... [00:10:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:24]Read from MH i2c: E2 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 FD 00 [00:10:24]MH_I2C_Read... [00:10:24]Read from MH i2c: E2 FD 00 DC 14 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 82 [00:10:24]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:25]wFMCommunicate OK [00:10:25]wFMCommunicate request_size=4 [00:10:25]MH_SAM_APDU [00:10:25]CAPDU: 80 17 00 00 [00:10:25]Write to MH i2c: E2 08 00 DD 14 80 17 00 00 00 00 00 00 71 [00:10:25]Write i2c OK [00:10:25]MH_I2C_Read... [00:10:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:25]Read from MH i2c: E2 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 FD 00 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 FD 00 DD 14 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [00:10:25]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:25]wFMCommunicate OK [00:10:25]wFMCommunicate request_size=4 [00:10:25]MH_SAM_APDU [00:10:25]CAPDU: 80 17 00 00 [00:10:25]Write to MH i2c: E2 08 00 DE 14 80 17 00 00 00 00 00 00 72 [00:10:25]Write i2c OK [00:10:25]MH_I2C_Read... [00:10:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:10:25]Read from MH i2c: E2 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 E2 00 [00:10:25]MH_I2C_Read... [00:10:25]Read from MH i2c: E2 E2 00 DE 14 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 50 [00:10:25]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:10:25]wFMCommunicate OK [00:10:25]SAM_PROTO_GetFMData done [00:10:25]requested_item fm.sale_refund.total is exist - process it [00:10:25]requested_item fm.buy.total is exist - process it [00:10:25]requested_item shift.sale.total is exist - process it [00:10:25]SAM_PROTO_GetShiftData [00:10:25]wFMCommunicate request_size=4 [00:10:25]MH_SAM_APDU [00:10:25]CAPDU: 80 13 02 00 [00:10:25]Write to MH i2c: E2 08 00 DF 14 80 13 02 00 00 00 00 00 71 [00:10:25]Write i2c OK [00:10:25]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 FD 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 FD 00 DF 14 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 E4 [00:10:26]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:10:26]wFMCommunicate OK [00:10:26]wFMCommunicate request_size=4 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 17 00 00 [00:10:26]Write to MH i2c: E2 08 00 E0 14 80 17 00 00 00 00 00 00 74 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 FD 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 FD 00 E0 14 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 7C [00:10:26]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:10:26]wFMCommunicate OK [00:10:26]wFMCommunicate request_size=4 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 17 00 00 [00:10:26]Write to MH i2c: E2 08 00 E1 14 80 17 00 00 00 00 00 00 75 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:27]Read from MH i2c: E2 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 FD 00 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 FD 00 E1 14 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 47 [00:10:27]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:10:27]wFMCommunicate OK [00:10:27]wFMCommunicate request_size=4 [00:10:27]MH_SAM_APDU [00:10:27]CAPDU: 80 17 00 00 [00:10:27]Write to MH i2c: E2 08 00 E2 14 80 17 00 00 00 00 00 00 76 [00:10:27]Write i2c OK [00:10:27]MH_I2C_Read... [00:10:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:27]Read from MH i2c: E2 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 FD 00 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 FD 00 E2 14 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 E8 [00:10:27]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:10:27]wFMCommunicate OK [00:10:27]wFMCommunicate request_size=4 [00:10:27]MH_SAM_APDU [00:10:27]CAPDU: 80 17 00 00 [00:10:27]Write to MH i2c: E2 08 00 E3 14 80 17 00 00 00 00 00 00 77 [00:10:27]Write i2c OK [00:10:27]MH_I2C_Read... [00:10:28]OFD Sender: No OFD packet to send [00:10:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:10:28]Read from MH i2c: E2 [00:10:28]MH_I2C_Read... [00:10:28]Read from MH i2c: E2 BD 00 [00:10:28]MH_I2C_Read... [00:10:28]Read from MH i2c: E2 BD 00 E3 14 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 5D [00:10:28]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:10:28]wFMCommunicate OK [00:10:28]SAM_PROTO_GetShiftData done [00:10:28]requested_item shift.sale.total_cash is exist - process it [00:10:28]requested_item shift.sale_refund.total is exist - process it [00:10:28]requested_item shift.sale_refund.total_cash is exist - process it [00:10:28]requested_item shift.buy.total is exist - process it [00:10:28]requested_item shift.buy.total_cash is exist - process it [00:10:28]produce_requested_data done [00:10:28]produce_requested_data return {"fm.sale.total":53016243.51,"fm.sale_refund.total":697985.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:10:28]process_action_free get_value [00:10:28]json_value_free [00:10:28]json_value_free done [00:10:28]process_json_proto returns [00:10:28]Send response to host [00:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":53016243.51,"fm.sale_refund.total":697985.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:10:28]free response buf [00:10:28]execute_script done [00:10:28]execute_script returns [00:10:28]free content buf [00:10:28]Sock 9.Close socket [00:10:28]Sock 9.Thread stoped [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:11:58]accept exits with 8 [00:11:58]New connection [00:11:58]New thread 3066735972 created [00:11:58]Thread 3066592612 joined [00:11:58]Waiting for new connection... [00:11:58] Sock 8.Parse request [00:11:58]Sock 8.Check first char [00:11:58]Sock 8.First char is OK [00:11:58]request: POST /json_proto HTTP/1.0 [00:11:58]Method: POST [00:11:58]URL: /json_proto [00:11:58]Method is POST - this is cgi request [00:11:58]url: /json_proto [00:11:58]query_string will be loaded in cgi processing [00:11:58]execute_cgi json_proto POST (null) [00:11:58]execute_cgi path=json_proto method=POST [00:11:58]POST find Content-Length [00:11:58]Host: 172.17.60.68:8080 [00:11:58]Content-Length: 215 [00:11:58]Content-Type: application/json [00:11:58] [00:11:58]POST finish read [00:11:58]Found Content-Length = 215 [00:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:58]execute_script... [00:11:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:58]POST & json_proto [00:11:58]process_json_proto [00:11:58]json parsed OK: [00:11:58]protocol is kg_v1.0 [00:11:58]action value=get_value [00:11:58]process_action get_value [00:11:58]cmd_get_value [00:11:58]process_action get_value done [00:11:58]requested_data is exist [00:11:58]produce_requested_data [00:11:58]requested_item kkm.sn is exist - process it [00:11:58]requested_item kkm.ver is exist - process it [00:11:58]requested_item fm.sn is exist - process it [00:11:58]wFMCommunicate request_size=4 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 11 00 00 [00:11:58]Write to MH i2c: E2 08 00 E4 14 80 11 00 00 00 00 00 00 72 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 17 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 17 00 E4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 C5 [00:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:11:58]wFMCommunicate OK [00:11:58]requested_item fd.num is exist - process it [00:11:58]SAM_PROTO_GetFieldsCounters [00:11:58]wFMCommunicate request_size=4 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 13 00 00 [00:11:58]Write to MH i2c: E2 08 00 E5 14 80 13 00 00 00 00 00 00 75 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 62 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 62 00 E5 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3C E2 00 00 0E 04 04 00 46 00 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 F6 [00:11:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3C E2 00 00 0E 04 04 00 46 00 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:11:58]wFMCommunicate OK [00:11:58]SAM_PROTO_GetFieldsCounters done [00:11:58]requested_item shift.num is exist - process it [00:11:58]requested_item shift.opened is exist - process it [00:11:58]req_shift_opened [00:11:58]FM_GetShiftState [00:11:58]SAM_PROTO_GetShiftState [00:11:58]wFMCommunicate request_size=4 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 13 01 00 [00:11:58]Write to MH i2c: E2 08 00 E6 14 80 13 01 00 00 00 00 00 77 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 0E 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 0E 00 E6 14 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 38 [00:11:58]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:11:58]wFMCommunicate OK [00:11:58]SAM_PROTO_GetShiftState done [00:11:58]FM_GetShiftState done [00:11:58]req_shift_opened done [00:11:58]requested_item shift.open_date is exist - process it [00:11:58]req_shift_open_date [00:11:58]req_shift_open_date done [00:11:58]produce_requested_data done [00:11:58]produce_requested_data return {"kkm.sn":"0300000048","kkm.ver":"v1.0","fm.sn":"0000000000959414","fd.num":57916,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:11:58]process_action_free get_value [00:11:58]json_value_free [00:11:58]json_value_free done [00:11:58]process_json_proto returns [00:11:58]Send response to host [00:11:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000048","kkm.ver":"v1.0","fm.sn":"0000000000959414","fd.num":57916,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:11:58]free response buf [00:11:58]execute_script done [00:11:58]execute_script returns [00:11:58]free content buf [00:11:58]Sock 8.Close socket [00:11:58]Sock 8.Thread stoped [00:11:58]accept exits with 10 [00:11:58]New connection [00:11:58]New thread 3066592612 created [00:11:58]Thread 3066735972 joined [00:11:58]Waiting for new connection... [00:11:58] Sock 10.Parse request [00:11:58]Sock 10.Check first char [00:11:58]Sock 10.First char is OK [00:11:58]request: POST /json_proto HTTP/1.0 [00:11:58]Method: POST [00:11:58]URL: /json_proto [00:11:58]Method is POST - this is cgi request [00:11:58]url: /json_proto [00:11:58]query_string will be loaded in cgi processing [00:11:58]execute_cgi json_proto POST (null) [00:11:58]execute_cgi path=json_proto method=POST [00:11:58]POST find Content-Length [00:11:58]Host: 172.17.60.68:8080 [00:11:58]Content-Length: 331 [00:11:58]Content-Type: application/json [00:11:58] [00:11:58]POST finish read [00:11:58]Found Content-Length = 331 [00:11:58]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:11:58]execute_script... [00:11:58]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:11:58]POST & json_proto [00:11:58]process_json_proto [00:11:58]json parsed OK: [00:11:58]protocol is kg_v1.0 [00:11:58]action value=get_value [00:11:58]process_action get_value [00:11:58]cmd_get_value [00:11:58]process_action get_value done [00:11:58]requested_data is exist [00:11:58]produce_requested_data [00:11:58]requested_item fm.sale.total is exist - process it [00:11:58]SAM_PROTO_GetFMData [00:11:58]wFMCommunicate request_size=4 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 13 03 00 [00:11:58]Write to MH i2c: E2 08 00 E7 14 80 13 03 00 00 00 00 00 7A [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 FD 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 FD 00 E7 14 00 C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 40 [00:11:59]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B0 E1 00 00 69 04 A2 00 6F 04 04 00 5D E0 00 00 B1 04 05 00 1F 5E 00 3C 01 70 04 04 00 34 5E 77 FA 72 04 04 00 EB FF 88 41 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 3C 35 91 21 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 72 0C CC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 53 01 00 00 B1 04 04 00 64 0A 29 04 70 04 04 00 90 D9 28 04 72 04 02 00 D4 30 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 E1 1D 71 EF 03 09 90 00 [00:11:59]wFMCommunicate OK [00:11:59]wFMCommunicate request_size=4 [00:11:59]MH_SAM_APDU [00:11:59]CAPDU: 80 17 00 00 [00:11:59]Write to MH i2c: E2 08 00 E8 14 80 17 00 00 00 00 00 00 7C [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 FD 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 FD 00 E8 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [00:11:59]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0B 6D 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:59]wFMCommunicate OK [00:11:59]wFMCommunicate request_size=4 [00:11:59]MH_SAM_APDU [00:11:59]CAPDU: 80 17 00 00 [00:11:59]Write to MH i2c: E2 08 00 E9 14 80 17 00 00 00 00 00 00 7D [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 FD 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 FD 00 E9 14 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8F [00:11:59]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:59]wFMCommunicate OK [00:11:59]wFMCommunicate request_size=4 [00:11:59]MH_SAM_APDU [00:11:59]CAPDU: 80 17 00 00 [00:11:59]Write to MH i2c: E2 08 00 EA 14 80 17 00 00 00 00 00 00 7E [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 FD 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 FD 00 EA 14 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0A [00:11:59]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:59]wFMCommunicate OK [00:11:59]wFMCommunicate request_size=4 [00:11:59]MH_SAM_APDU [00:11:59]CAPDU: 80 17 00 00 [00:11:59]Write to MH i2c: E2 08 00 EB 14 80 17 00 00 00 00 00 00 7F [00:12:00]Write i2c OK [00:12:00]MH_I2C_Read... [00:12:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:12:00]Read from MH i2c: E2 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 E2 00 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 E2 00 EB 14 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5D [00:12:00]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:12:00]wFMCommunicate OK [00:12:00]SAM_PROTO_GetFMData done [00:12:00]requested_item fm.sale_refund.total is exist - process it [00:12:00]requested_item fm.buy.total is exist - process it [00:12:00]requested_item shift.sale.total is exist - process it [00:12:00]SAM_PROTO_GetShiftData [00:12:00]wFMCommunicate request_size=4 [00:12:00]MH_SAM_APDU [00:12:00]CAPDU: 80 13 02 00 [00:12:00]Write to MH i2c: E2 08 00 EC 14 80 13 02 00 00 00 00 00 7E [00:12:00]Write i2c OK [00:12:00]MH_I2C_Read... [00:12:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:00]Read from MH i2c: E2 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 FD 00 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 FD 00 EC 14 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 F1 [00:12:00]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:12:00]wFMCommunicate OK [00:12:00]wFMCommunicate request_size=4 [00:12:00]MH_SAM_APDU [00:12:00]CAPDU: 80 17 00 00 [00:12:00]Write to MH i2c: E2 08 00 ED 14 80 17 00 00 00 00 00 00 81 [00:12:00]Write i2c OK [00:12:00]MH_I2C_Read... [00:12:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:00]Read from MH i2c: E2 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 FD 00 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 FD 00 ED 14 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 89 [00:12:00]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:12:01]wFMCommunicate OK [00:12:01]wFMCommunicate request_size=4 [00:12:01]MH_SAM_APDU [00:12:01]CAPDU: 80 17 00 00 [00:12:01]Write to MH i2c: E2 08 00 EE 14 80 17 00 00 00 00 00 00 82 [00:12:01]Write i2c OK [00:12:01]MH_I2C_Read... [00:12:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:01]Read from MH i2c: E2 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 FD 00 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 FD 00 EE 14 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 54 [00:12:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:12:01]wFMCommunicate OK [00:12:01]wFMCommunicate request_size=4 [00:12:01]MH_SAM_APDU [00:12:01]CAPDU: 80 17 00 00 [00:12:01]Write to MH i2c: E2 08 00 EF 14 80 17 00 00 00 00 00 00 83 [00:12:01]Write i2c OK [00:12:01]MH_I2C_Read... [00:12:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:01]Read from MH i2c: E2 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 FD 00 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 FD 00 EF 14 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 F5 [00:12:01]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:12:01]wFMCommunicate OK [00:12:01]wFMCommunicate request_size=4 [00:12:01]MH_SAM_APDU [00:12:01]CAPDU: 80 17 00 00 [00:12:01]Write to MH i2c: E2 08 00 F0 14 80 17 00 00 00 00 00 00 84 [00:12:01]Write i2c OK [00:12:01]MH_I2C_Read... [00:12:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:12:01]Read from MH i2c: E2 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 BD 00 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 BD 00 F0 14 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 6A [00:12:01]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:12:01]wFMCommunicate OK [00:12:01]SAM_PROTO_GetShiftData done [00:12:01]requested_item shift.sale.total_cash is exist - process it [00:12:01]requested_item shift.sale_refund.total is exist - process it [00:12:01]requested_item shift.sale_refund.total_cash is exist - process it [00:12:01]requested_item shift.buy.total is exist - process it [00:12:01]requested_item shift.buy.total_cash is exist - process it [00:12:01]produce_requested_data done [00:12:01]produce_requested_data return {"fm.sale.total":53016243.51,"fm.sale_refund.total":697985.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:12:01]process_action_free get_value [00:12:01]json_value_free [00:12:01]json_value_free done [00:12:01]process_json_proto returns [00:12:01]Send response to host [00:12:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":53016243.51,"fm.sale_refund.total":697985.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:12:01]free response buf [00:12:01]execute_script done [00:12:01]execute_script returns [00:12:01]free content buf [00:12:01]Sock 10.Close socket [00:12:01]Sock 10.Thread stoped [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:01]accept exits with 8 [00:20:01]New connection [00:20:01]New thread 3066735972 created [00:20:01]Thread 3066592612 joined [00:20:01]Waiting for new connection... [00:20:01] Sock 8.Parse request [00:20:01]Sock 8.Check first char [00:20:01]Sock 8.First char is OK [00:20:01]request: POST /json_proto HTTP/1.0 [00:20:01]Method: POST [00:20:01]URL: /json_proto [00:20:01]Method is POST - this is cgi request [00:20:01]url: /json_proto [00:20:01]query_string will be loaded in cgi processing [00:20:01]execute_cgi json_proto POST (null) [00:20:01]execute_cgi path=json_proto method=POST [00:20:01]POST find Content-Length [00:20:01]Host: 172.17.60.68:8080 [00:20:01]Content-Length: 677 [00:20:01]Content-Type: application/json [00:20:01] [00:20:01]POST finish read [00:20:01]Found Content-Length = 677 [00:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.080, "sum" : 540.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:01]execute_script... [00:20:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.080, "sum" : 540.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:01]POST & json_proto [00:20:01]process_json_proto [00:20:01]json parsed OK: [00:20:01]protocol is kg_v1.0 [00:20:01]action value=close_receipt [00:20:01]process_action close_receipt [00:20:01]cmd_close_receipt [00:20:01]MH_GetDate [00:20:01]Write to MH i2c: F0 00 00 F1 14 F4 [00:20:01]Write i2c OK [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: F0 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: F0 09 00 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: F0 09 00 F1 14 00 32 0C 5D 66 8D A7 02 66 9A [00:20:01]GetLastDocTimeStamp 1717373417 [00:20:01]current date 1717374002 [00:20:01]FM_GetShiftState [00:20:01]SAM_PROTO_GetShiftState [00:20:01]wFMCommunicate request_size=4 [00:20:01]MH_SAM_APDU [00:20:01]CAPDU: 80 13 01 00 [00:20:01]Write to MH i2c: E2 08 00 F2 14 80 13 01 00 00 00 00 00 83 [00:20:01]Write i2c OK [00:20:01]MH_I2C_Read... [00:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:01]Read from MH i2c: E2 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 0E 00 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 0E 00 F2 14 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 44 [00:20:01]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:20:01]wFMCommunicate OK [00:20:01]SAM_PROTO_GetShiftState done [00:20:01]FM_GetShiftState done [00:20:01]opened in 1717373417 [00:20:01]opened+sec_in_day 1717459817 [00:20:01]quantity*price = 54055 [00:20:01]sum+1 = 54056 [00:20:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.40 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 1 03.06.2024 00:20 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57917 ФПД: 109289162833441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T002002&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57917&fm=109289162833441&tin=02508201610067®Number=0000000000151680&sum=54000 [00:20:02]StoreToDocumentArchive [00:20:02]shift 70 fd 57917 [00:20:02]save to /storage/0070/doc_00057917 [00:20:02]save last doc name /storage/0070/doc_00057917 to /storage/kkm_last_doc_name [00:20:02]save OK [00:20:02]Clear old archive folders... [00:20:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:20:02]tlvbuf is 01A38200 [00:20:02]SAM_PROTO_ClearQueue [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 09 00 00 [00:20:02]Write to MH i2c: E2 08 00 FF 14 80 09 00 00 00 00 00 00 85 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 03 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [00:20:02]RAPDU: 90 00 [00:20:02]wFMCommunicate OK [00:20:02]SAM_PROTO_ClearQueue done [00:20:02]KKMCreateOFDPacket [00:20:02]OFDProtocolAddRootSTLVToBuf [00:20:02]FM_MakeSignedData [00:20:02]FM_MakeSignedData [00:20:02]SAM_PROTO_SignData [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 0D 01 02 [00:20:02]Write to MH i2c: E2 08 00 00 15 80 0D 01 02 00 00 00 00 8E [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 03 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 03 00 00 15 00 90 00 89 [00:20:02]RAPDU: 90 00 [00:20:02]wFMCommunicate OK [00:20:02]wFMCommunicate request_size=255 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 32 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3D E2 00 00 35 04 06 00 63 [00:20:02]Write to MH i2c: E2 02 01 01 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 32 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3D E2 00 00 35 04 06 00 63 00 00 28 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 03 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 03 00 01 15 00 90 00 8A [00:20:02]RAPDU: 90 00 [00:20:02]wFMCommunicate OK [00:20:02]wFMCommunicate request_size=10 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 0D 02 02 05 65 DD BA 7E 21 [00:20:02]Write to MH i2c: E2 0D 00 02 15 80 0D 02 02 05 00 65 DD BA 7E 21 00 00 36 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 03 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 03 00 02 15 00 90 00 8B [00:20:02]RAPDU: 90 00 [00:20:02]wFMCommunicate OK [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 0D 03 02 [00:20:02]Write to MH i2c: E2 08 00 03 15 80 0D 03 02 00 00 00 00 93 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 0B 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 0B 00 03 15 00 AF 66 8B 83 DE 16 27 66 90 00 38 [00:20:02]RAPDU: AF 66 8B 83 DE 16 27 66 90 00 [00:20:02]wFMCommunicate OK [00:20:02]SAM_PROTO_SignData done [00:20:02]FM_MakeSignedData done [00:20:02]CreateOFDProtocolMessage [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 11 00 00 [00:20:02]Write to MH i2c: E2 08 00 04 15 80 11 00 00 00 00 00 00 93 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 17 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 17 00 04 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 E6 [00:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:20:02]wFMCommunicate OK [00:20:02]CreateOFDProtocolMessage done [00:20:02]OFDSenderStorePacket 57917 [00:20:02]StoreOFDPacket docnum=57917 [00:20:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 B2 D0 07 01 A3 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 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 32 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3D E2 00 00 35 04 06 00 63 65 DD BA 7E 21 AF 66 8B 83 DE 16 27 66 [00:20:02]CheckFolder [00:20:02]dirname=/storage/ofd_packets [00:20:02]CheckFolder done [00:20:02]ProducePacketName [00:20:02]name=ofd_packets/00057917 [00:20:02]NVStorageSaveData ofd_packets/00057917 [00:20:02]File name is /storage/ofd_packets/00057917 [00:20:02]Write 301 bytes [00:20:02]NVStorageSaveData done [00:20:02]OFDSenderStorePacket done [00:20:02]KKMCreateOFDPacket done [00:20:02]NVStorageSaveData kkm_last_timestamp [00:20:02]File name is /storage/kkm_last_timestamp [00:20:02]Write 4 bytes [00:20:02]NVStorageSaveData done [00:20:02]ExternCall_PrintAddStr [00:20:02]wPrintStart [00:20:02]Write to MH i2c: 01 00 00 05 15 1A [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: 01 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: 01 07 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: 01 07 00 05 15 00 00 00 00 00 FF 0F 2F [00:20:02]RasterBufferAndPrint [00:20:02]line Счет N : (1)543259 [00:20:02]line ИНН: 02508201610067 [00:20:02]line Контрольно-Кассовый Чек [00:20:02]line ПРОДАЖА [00:20:02]line ТРК (МРК, ГНК) : 42 [00:20:02]line Товар: 2710124130 [00:20:02]line Аи-92-К-5 [00:20:02]line 8.080 * 66.90 [00:20:02]line = 540.55 [00:20:02]line НДС 12% НСП 1% [00:20:02]line > о реализуемом товаре [00:20:02]line ОКРУГЛЕНИЕ: -0.55 [00:20:02]line ИТОГО: 540.00 [00:20:02]line Внесено: 540.00 [00:20:02]line СДАЧА: 0.00 [00:20:02]line НСП 1% : 4.78 [00:20:02]line НДС 12% : 57.40 [00:20:02]line Наличными: 540.00 [00:20:02]line Безнал.: 0.00 [00:20:02]line Место: АЗС № 117 "Партнер Нефть" [00:20:02]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:20:02]line СНО: Общий режим [00:20:02]line Чек 1 03.06.2024 00:20 [00:20:02]line Смена: 70 ФФД: 1.0 [00:20:02]line ЗНМ: 0300000048 [00:20:02]line РНМ: 0000000000151680 [00:20:02]line Версия ККМ: v1.0 [00:20:02]line ФМ: 0000000000959414 [00:20:02]line ФД: 57917 [00:20:02]line ФПД: 109289162833441 [00:20:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T002002&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57917&fm=109289162833441&tin=02508201610067®Number=0000000000151680&sum=54000 [00:20:03]OFD Sender: Processing packet 57917 [packets to send 50, broken 49] [00:20:03]ProducePacketName [00:20:03]name=ofd_packets/00057917 [00:20:03]OFD Sender: To server: pG, [00:20:03]CommunicateWithHost lk.salyk.kg:30040 [00:20:03]ConnectInit lk.salyk.kg [00:20:03]written 0, free lines is 4095 [00:20:03]Connected sock=10 [00:20:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 B2 D0 07 01 A3 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 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 32 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3D E2 00 00 35 04 06 00 63 65 DD BA 7E 21 AF 66 8B 83 DE 16 27 66 [00:20:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 0D E2 47 00 E6 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3D E2 00 00 F4 03 04 00 01 B7 5C 66 B6 04 01 00 00 B3 EB 03 DB 67 D0 42 F3 [00:20:03]CommunicateWithHost err = 0 [00:20:03]CheckOFDResponse [00:20:03]1017 (14) - 77093643461234 [00:20:03]1041 (16) - 0000000000959414 [00:20:03]1040 (4) - 57917 [00:20:03]1012 (4) - 02.06.2024 18:16 [00:20:03]1206 (1) - 0 [00:20:03]OFD Sender: Remove packet 57917 [00:20:03]ProducePacketName [00:20:03]name=ofd_packets/00057917 [00:20:03]NVStorageDeleteData [00:20:03]Write to MH i2c: 01 00 00 30 15 45 [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: 01 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: 01 07 00 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: 01 07 00 30 15 00 00 00 00 00 9F 0C F7 [00:20:03]RasterBufferAndPrint [00:20:03]line [00:20:03]line [00:20:03]line [00:20:03]line [00:20:03]line [00:20:03]written 0, free lines is 3235 [00:20:03]MH_Cut [00:20:03]Write to MH i2c: D1 01 00 37 15 01 1E [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: D1 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: D1 01 00 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: D1 01 00 37 15 00 1D [00:20:03]Write to MH i2c: 01 00 00 38 15 4D [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:04]OFD Sender: No OFD packet to send [00:20:04]*** Cut start [00:20:04]*** Partial cut [00:20:04]*** CUTSNS_PIN = 1 [00:20:04]*** CUTSNS_PIN = 0 [00:20:04]*** Brake cut motor [00:20:05]Read from MH i2c: 01 [00:20:05]MH_I2C_Read... [00:20:05]*** Stop cut motor [00:20:05]*** Cut end [00:20:05]Read from MH i2c: 01 07 00 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: 01 07 00 38 15 00 00 00 00 00 FF 0F 62 [00:20:05]process_action close_receipt done [00:20:05]requested_data is exist [00:20:05]produce_requested_data [00:20:05]requested_item fm.sn is exist - process it [00:20:05]wFMCommunicate request_size=4 [00:20:05]MH_SAM_APDU [00:20:05]CAPDU: 80 11 00 00 [00:20:05]Write to MH i2c: E2 08 00 39 15 80 11 00 00 00 00 00 00 C8 [00:20:05]Write i2c OK [00:20:05]MH_I2C_Read... [00:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:05]Read from MH i2c: E2 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 17 00 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 17 00 39 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 1B [00:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:20:05]wFMCommunicate OK [00:20:05]requested_item fd.num is exist - process it [00:20:05]SAM_PROTO_GetFieldsCounters [00:20:05]wFMCommunicate request_size=4 [00:20:05]MH_SAM_APDU [00:20:05]CAPDU: 80 13 00 00 [00:20:05]Write to MH i2c: E2 08 00 3A 15 80 13 00 00 00 00 00 00 CB [00:20:05]Write i2c OK [00:20:05]MH_I2C_Read... [00:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:05]Read from MH i2c: E2 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 62 00 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 62 00 3A 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3D E2 00 00 0E 04 04 00 46 00 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 50 [00:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3D E2 00 00 0E 04 04 00 46 00 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:20:05]wFMCommunicate OK [00:20:05]SAM_PROTO_GetFieldsCounters done [00:20:05]requested_item shift.num is exist - process it [00:20:05]requested_item shift.opened is exist - process it [00:20:05]req_shift_opened [00:20:05]FM_GetShiftState [00:20:05]SAM_PROTO_GetShiftState [00:20:05]wFMCommunicate request_size=4 [00:20:05]MH_SAM_APDU [00:20:05]CAPDU: 80 13 01 00 [00:20:05]Write to MH i2c: E2 08 00 3B 15 80 13 01 00 00 00 00 00 CD [00:20:05]Write i2c OK [00:20:05]MH_I2C_Read... [00:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:05]Read from MH i2c: E2 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 0E 00 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 0E 00 3B 15 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 8E [00:20:05]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:20:05]wFMCommunicate OK [00:20:05]SAM_PROTO_GetShiftState done [00:20:05]FM_GetShiftState done [00:20:05]req_shift_opened done [00:20:05]requested_item shift.open_date is exist - process it [00:20:05]req_shift_open_date [00:20:05]req_shift_open_date done [00:20:05]produce_requested_data done [00:20:05]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57917,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:20:05]process_action_free close_receipt [00:20:05]json_value_free [00:20:05]json_value_free done [00:20:05]process_json_proto returns [00:20:05]Send response to host [00:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57917,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:20:05]free response buf [00:20:05]execute_script done [00:20:05]execute_script returns [00:20:05]free content buf [00:20:05]Sock 8.Close socket [00:20:05]Sock 8.Thread stoped [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:26]accept exits with 9 [00:21:26]New connection [00:21:26]New thread 3066592612 created [00:21:26]Thread 3066735972 joined [00:21:26]Waiting for new connection... [00:21:26] Sock 9.Parse request [00:21:26]Sock 9.Check first char [00:21:26]Sock 9.First char is OK [00:21:26]request: POST /json_proto HTTP/1.0 [00:21:26]Method: POST [00:21:26]URL: /json_proto [00:21:26]Method is POST - this is cgi request [00:21:26]url: /json_proto [00:21:26]query_string will be loaded in cgi processing [00:21:26]execute_cgi json_proto POST (null) [00:21:26]execute_cgi path=json_proto method=POST [00:21:26]POST find Content-Length [00:21:26]Host: 172.17.60.68:8080 [00:21:26]Content-Length: 677 [00:21:26]Content-Type: application/json [00:21:26] [00:21:26]POST finish read [00:21:26]Found Content-Length = 677 [00:21:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543262", "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.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:26]execute_script... [00:21:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543262", "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.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:26]POST & json_proto [00:21:26]process_json_proto [00:21:26]json parsed OK: [00:21:26]protocol is kg_v1.0 [00:21:26]action value=close_receipt [00:21:26]process_action close_receipt [00:21:26]cmd_close_receipt [00:21:26]MH_GetDate [00:21:26]Write to MH i2c: F0 00 00 3C 15 40 [00:21:26]Write i2c OK [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: F0 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: F0 09 00 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: F0 09 00 3C 15 00 87 0C 5D 66 8D A7 02 66 3B [00:21:26]GetLastDocTimeStamp 1717374002 [00:21:26]current date 1717374087 [00:21:26]FM_GetShiftState [00:21:26]SAM_PROTO_GetShiftState [00:21:26]wFMCommunicate request_size=4 [00:21:26]MH_SAM_APDU [00:21:26]CAPDU: 80 13 01 00 [00:21:26]Write to MH i2c: E2 08 00 3D 15 80 13 01 00 00 00 00 00 CF [00:21:26]Write i2c OK [00:21:26]MH_I2C_Read... [00:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:26]Read from MH i2c: E2 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 0E 00 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 0E 00 3D 15 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 90 [00:21:26]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:21:26]wFMCommunicate OK [00:21:26]SAM_PROTO_GetShiftState done [00:21:26]FM_GetShiftState done [00:21:26]opened in 1717373417 [00:21:26]opened+sec_in_day 1717459817 [00:21:26]quantity*price = 40006 [00:21:26]sum+1 = 40007 [00:21:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 2 03.06.2024 00:21 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57918 ФПД: 17741916200296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T002127&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57918&fm=17741916200296&tin=02508201610067®Number=0000000000151680&sum=40000 [00:21:27]StoreToDocumentArchive [00:21:27]shift 70 fd 57918 [00:21:27]save to /storage/0070/doc_00057918 [00:21:27]save last doc name /storage/0070/doc_00057918 to /storage/kkm_last_doc_name [00:21:27]save OK [00:21:27]Clear old archive folders... [00:21:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:21:27]tlvbuf is 01B1D250 [00:21:27]SAM_PROTO_ClearQueue [00:21:27]wFMCommunicate request_size=4 [00:21:27]MH_SAM_APDU [00:21:27]CAPDU: 80 09 00 00 [00:21:27]Write to MH i2c: E2 08 00 4A 15 80 09 00 00 00 00 00 00 D1 [00:21:27]Write i2c OK [00:21:27]MH_I2C_Read... [00:21:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:27]Read from MH i2c: E2 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 03 00 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 03 00 4A 15 00 90 00 D3 [00:21:27]RAPDU: 90 00 [00:21:27]wFMCommunicate OK [00:21:27]SAM_PROTO_ClearQueue done [00:21:27]KKMCreateOFDPacket [00:21:27]OFDProtocolAddRootSTLVToBuf [00:21:27]FM_MakeSignedData [00:21:27]FM_MakeSignedData [00:21:27]SAM_PROTO_SignData [00:21:27]wFMCommunicate request_size=4 [00:21:27]MH_SAM_APDU [00:21:27]CAPDU: 80 0D 01 02 [00:21:27]Write to MH i2c: E2 08 00 4B 15 80 0D 01 02 00 00 00 00 D9 [00:21:27]Write i2c OK [00:21:27]MH_I2C_Read... [00:21:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:27]Read from MH i2c: E2 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 03 00 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 03 00 4B 15 00 90 00 D4 [00:21:27]RAPDU: 90 00 [00:21:27]wFMCommunicate OK [00:21:27]wFMCommunicate request_size=255 [00:21:27]MH_SAM_APDU [00:21:27]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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 87 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3E E2 00 00 35 04 06 00 10 [00:21:27]Write to MH i2c: E2 02 01 4C 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 87 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3E E2 00 00 35 04 06 00 10 00 00 01 [00:21:27]Write i2c OK [00:21:27]MH_I2C_Read... [00:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:27]Read from MH i2c: E2 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 03 00 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 03 00 4C 15 00 90 00 D5 [00:21:27]RAPDU: 90 00 [00:21:27]wFMCommunicate OK [00:21:27]wFMCommunicate request_size=10 [00:21:27]MH_SAM_APDU [00:21:27]CAPDU: 80 0D 02 02 05 22 DC 9C DD 68 [00:21:27]Write to MH i2c: E2 0D 00 4D 15 80 0D 02 02 05 00 22 DC 9C DD 68 00 00 C5 [00:21:27]Write i2c OK [00:21:27]MH_I2C_Read... [00:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:27]Read from MH i2c: E2 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 03 00 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 03 00 4D 15 00 90 00 D6 [00:21:27]RAPDU: 90 00 [00:21:27]wFMCommunicate OK [00:21:27]wFMCommunicate request_size=4 [00:21:27]MH_SAM_APDU [00:21:27]CAPDU: 80 0D 03 02 [00:21:27]Write to MH i2c: E2 08 00 4E 15 80 0D 03 02 00 00 00 00 DE [00:21:27]Write i2c OK [00:21:27]MH_I2C_Read... [00:21:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:27]Read from MH i2c: E2 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 0B 00 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 0B 00 4E 15 00 33 89 C3 5F FC 42 7A 9F 90 00 14 [00:21:27]RAPDU: 33 89 C3 5F FC 42 7A 9F 90 00 [00:21:27]wFMCommunicate OK [00:21:27]SAM_PROTO_SignData done [00:21:27]FM_MakeSignedData done [00:21:27]CreateOFDProtocolMessage [00:21:27]wFMCommunicate request_size=4 [00:21:27]MH_SAM_APDU [00:21:27]CAPDU: 80 11 00 00 [00:21:27]Write to MH i2c: E2 08 00 4F 15 80 11 00 00 00 00 00 00 DE [00:21:27]Write i2c OK [00:21:27]MH_I2C_Read... [00:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:27]Read from MH i2c: E2 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 17 00 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 17 00 4F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 31 [00:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:21:27]wFMCommunicate OK [00:21:27]CreateOFDProtocolMessage done [00:21:27]OFDSenderStorePacket 57918 [00:21:27]StoreOFDPacket docnum=57918 [00:21:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 CC F1 07 01 2C 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 87 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3E E2 00 00 35 04 06 00 10 22 DC 9C DD 68 33 89 C3 5F FC 42 7A 9F [00:21:27]CheckFolder [00:21:27]dirname=/storage/ofd_packets [00:21:27]CheckFolder done [00:21:27]ProducePacketName [00:21:27]name=ofd_packets/00057918 [00:21:27]NVStorageSaveData ofd_packets/00057918 [00:21:27]File name is /storage/ofd_packets/00057918 [00:21:27]Write 301 bytes [00:21:27]NVStorageSaveData done [00:21:27]OFDSenderStorePacket done [00:21:27]KKMCreateOFDPacket done [00:21:27]NVStorageSaveData kkm_last_timestamp [00:21:27]File name is /storage/kkm_last_timestamp [00:21:27]Write 4 bytes [00:21:27]NVStorageSaveData done [00:21:27]ExternCall_PrintAddStr [00:21:27]wPrintStart [00:21:27]Write to MH i2c: 01 00 00 50 15 65 [00:21:27]Write i2c OK [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: 01 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: 01 07 00 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: 01 07 00 50 15 00 00 00 00 00 FF 0F 7A [00:21:27]RasterBufferAndPrint [00:21:27]line Счет N : (1)543262 [00:21:27]line ИНН: 02508201610067 [00:21:27]line Контрольно-Кассовый Чек [00:21:27]line ПРОДАЖА [00:21:27]line ТРК (МРК, ГНК) : 12 [00:21:27]line Товар: 2710124130 [00:21:27]line Аи-92-К-5 [00:21:27]line 5.980 * 66.90 [00:21:27]line = 400.06 [00:21:27]line НДС 12% НСП 1% [00:21:27]line > о реализуемом товаре [00:21:27]line ОКРУГЛЕНИЕ: -0.06 [00:21:27]line ИТОГО: 400.00 [00:21:27]line Внесено: 400.00 [00:21:27]line СДАЧА: 0.00 [00:21:27]line НСП 1% : 3.54 [00:21:27]line НДС 12% : 42.48 [00:21:27]line Наличными: 400.00 [00:21:27]line Безнал.: 0.00 [00:21:27]line Место: АЗС № 117 "Партнер Нефть" [00:21:27]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:21:27]line СНО: Общий режим [00:21:27]line Чек 2 03.06.2024 00:21 [00:21:27]line Смена: 70 ФФД: 1.0 [00:21:27]line ЗНМ: 0300000048 [00:21:27]line РНМ: 0000000000151680 [00:21:27]line Версия ККМ: v1.0 [00:21:27]line ФМ: 0000000000959414 [00:21:27]line ФД: 57918 [00:21:27]line ФПД: 17741916200296 [00:21:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T002127&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57918&fm=17741916200296&tin=02508201610067®Number=0000000000151680&sum=40000 [00:21:28]OFD Sender: Processing packet 57918 [packets to send 50, broken 49] [00:21:28]ProducePacketName [00:21:28]name=ofd_packets/00057918 [00:21:28]OFD Sender: To server: pG, [00:21:28]CommunicateWithHost lk.salyk.kg:30040 [00:21:28]ConnectInit lk.salyk.kg [00:21:28]written 0, free lines is 4095 [00:21:28]Connected sock=10 [00:21:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 CC F1 07 01 2C 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 87 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3E E2 00 00 35 04 06 00 10 22 DC 9C DD 68 33 89 C3 5F FC 42 7A 9F [00:21:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 5B 5A 47 00 30 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3E E2 00 00 F4 03 04 00 56 B7 5C 66 B6 04 01 00 00 93 78 A7 C6 7F B4 99 C2 [00:21:28]CommunicateWithHost err = 0 [00:21:28]CheckOFDResponse [00:21:28]1017 (14) - 77093643461234 [00:21:28]1041 (16) - 0000000000959414 [00:21:28]1040 (4) - 57918 [00:21:28]1012 (4) - 02.06.2024 18:17 [00:21:28]1206 (1) - 0 [00:21:28]OFD Sender: Remove packet 57918 [00:21:28]ProducePacketName [00:21:28]name=ofd_packets/00057918 [00:21:28]NVStorageDeleteData [00:21:28]Write to MH i2c: 01 00 00 7B 15 90 [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: 01 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: 01 07 00 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: 01 07 00 7B 15 00 00 00 00 00 99 0C 3C [00:21:28]RasterBufferAndPrint [00:21:28]line [00:21:28]line [00:21:28]line [00:21:28]line [00:21:28]line [00:21:28]written 0, free lines is 3230 [00:21:28]MH_Cut [00:21:28]Write to MH i2c: D1 01 00 82 15 01 69 [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: D1 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: D1 01 00 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: D1 01 00 82 15 00 68 [00:21:28]Write to MH i2c: 01 00 00 83 15 98 [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:29]OFD Sender: No OFD packet to send [00:21:29]*** Cut start [00:21:29]*** Partial cut [00:21:29]*** CUTSNS_PIN = 1 [00:21:29]*** CUTSNS_PIN = 0 [00:21:29]*** Brake cut motor [00:21:30]Read from MH i2c: 01 [00:21:30]MH_I2C_Read... [00:21:30]*** Stop cut motor [00:21:30]*** Cut end [00:21:30]Read from MH i2c: 01 07 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: 01 07 00 83 15 00 00 00 00 00 FF 0F AD [00:21:30]process_action close_receipt done [00:21:30]requested_data is exist [00:21:30]produce_requested_data [00:21:30]requested_item fm.sn is exist - process it [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 11 00 00 [00:21:30]Write to MH i2c: E2 08 00 84 15 80 11 00 00 00 00 00 00 13 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 17 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 17 00 84 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 66 [00:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:21:30]wFMCommunicate OK [00:21:30]requested_item fd.num is exist - process it [00:21:30]SAM_PROTO_GetFieldsCounters [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 13 00 00 [00:21:30]Write to MH i2c: E2 08 00 85 15 80 13 00 00 00 00 00 00 16 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 62 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 62 00 85 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3E E2 00 00 0E 04 04 00 46 00 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 9F [00:21:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3E E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:30]wFMCommunicate OK [00:21:30]SAM_PROTO_GetFieldsCounters done [00:21:30]requested_item shift.num is exist - process it [00:21:30]requested_item shift.opened is exist - process it [00:21:30]req_shift_opened [00:21:30]FM_GetShiftState [00:21:30]SAM_PROTO_GetShiftState [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 13 01 00 [00:21:30]Write to MH i2c: E2 08 00 86 15 80 13 01 00 00 00 00 00 18 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 0E 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 0E 00 86 15 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 D9 [00:21:30]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:21:30]wFMCommunicate OK [00:21:30]SAM_PROTO_GetShiftState done [00:21:30]FM_GetShiftState done [00:21:30]req_shift_opened done [00:21:30]requested_item shift.open_date is exist - process it [00:21:30]req_shift_open_date [00:21:30]req_shift_open_date done [00:21:30]produce_requested_data done [00:21:30]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57918,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:21:30]process_action_free close_receipt [00:21:30]json_value_free [00:21:30]json_value_free done [00:21:30]process_json_proto returns [00:21:30]Send response to host [00:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57918,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:21:30]free response buf [00:21:30]execute_script done [00:21:30]execute_script returns [00:21:30]free content buf [00:21:30]Sock 9.Close socket [00:21:30]Sock 9.Thread stoped [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:15]accept exits with 8 [00:22:15]New connection [00:22:15]New thread 3066735972 created [00:22:15]Thread 3066592612 joined [00:22:15]Waiting for new connection... [00:22:15] Sock 8.Parse request [00:22:15]Sock 8.Check first char [00:22:15]Sock 8.First char is OK [00:22:15]request: POST /json_proto HTTP/1.0 [00:22:15]Method: POST [00:22:15]URL: /json_proto [00:22:15]Method is POST - this is cgi request [00:22:15]url: /json_proto [00:22:15]query_string will be loaded in cgi processing [00:22:15]execute_cgi json_proto POST (null) [00:22:15]execute_cgi path=json_proto method=POST [00:22:15]POST find Content-Length [00:22:15]Host: 172.17.60.68:8080 [00:22:15]Content-Length: 844 [00:22:15]Content-Type: application/json [00:22:15] [00:22:15]POST finish read [00:22:15]Found Content-Length = 844 [00:22:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 12.900, "sum" : 450.21, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 450.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:15]execute_script... [00:22:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 12.900, "sum" : 450.21, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 450.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:15]POST & json_proto [00:22:15]process_json_proto [00:22:15]json parsed OK: [00:22:15]protocol is kg_v1.0 [00:22:15]action value=close_receipt [00:22:15]process_action close_receipt [00:22:15]cmd_close_receipt [00:22:15]MH_GetDate [00:22:15]Write to MH i2c: F0 00 00 87 15 8B [00:22:15]Write i2c OK [00:22:15]MH_I2C_Read... [00:22:15]Read from MH i2c: F0 [00:22:15]MH_I2C_Read... [00:22:15]Read from MH i2c: F0 09 00 [00:22:15]MH_I2C_Read... [00:22:15]Read from MH i2c: F0 09 00 87 15 00 B8 0C 5D 66 8D A7 02 66 B7 [00:22:15]GetLastDocTimeStamp 1717374087 [00:22:15]current date 1717374136 [00:22:15]FM_GetShiftState [00:22:15]SAM_PROTO_GetShiftState [00:22:15]wFMCommunicate request_size=4 [00:22:15]MH_SAM_APDU [00:22:15]CAPDU: 80 13 01 00 [00:22:15]Write to MH i2c: E2 08 00 88 15 80 13 01 00 00 00 00 00 1A [00:22:15]Write i2c OK [00:22:15]MH_I2C_Read... [00:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:15]Read from MH i2c: E2 [00:22:15]MH_I2C_Read... [00:22:15]Read from MH i2c: E2 0E 00 [00:22:15]MH_I2C_Read... [00:22:15]Read from MH i2c: E2 0E 00 88 15 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 DB [00:22:15]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:22:15]wFMCommunicate OK [00:22:15]SAM_PROTO_GetShiftState done [00:22:15]FM_GetShiftState done [00:22:15]opened in 1717373417 [00:22:15]opened+sec_in_day 1717459817 [00:22:15]quantity*price = 45021 [00:22:15]sum+1 = 45022 [00:22:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.21 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 0.00 Безнал.: 450.21 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 3 03.06.2024 00:22 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000000959414 ФД: 57919 ФПД: 111731596383501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T002216&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57919&fm=111731596383501&tin=02508201610067®Number=0000000000151680&sum=45021 [00:22:16]StoreToDocumentArchive [00:22:16]shift 70 fd 57919 [00:22:16]save to /storage/0070/doc_00057919 [00:22:16]save last doc name /storage/0070/doc_00057919 to /storage/kkm_last_doc_name [00:22:16]save OK [00:22:16]Clear old archive folders... [00:22:16]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:22:16]tlvbuf is 0187FED0 [00:22:16]SAM_PROTO_ClearQueue [00:22:16]wFMCommunicate request_size=4 [00:22:16]MH_SAM_APDU [00:22:16]CAPDU: 80 09 00 00 [00:22:16]Write to MH i2c: E2 08 00 95 15 80 09 00 00 00 00 00 00 1C [00:22:16]Write i2c OK [00:22:16]MH_I2C_Read... [00:22:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:22:16]Read from MH i2c: E2 [00:22:16]MH_I2C_Read... [00:22:16]Read from MH i2c: E2 03 00 [00:22:16]MH_I2C_Read... [00:22:16]Read from MH i2c: E2 03 00 95 15 00 90 00 1E [00:22:16]RAPDU: 90 00 [00:22:16]wFMCommunicate OK [00:22:16]SAM_PROTO_ClearQueue done [00:22:16]KKMCreateOFDPacket [00:22:16]OFDProtocolAddRootSTLVToBuf [00:22:16]FM_MakeSignedData [00:22:16]FM_MakeSignedData [00:22:16]SAM_PROTO_SignData [00:22:16]wFMCommunicate request_size=4 [00:22:16]MH_SAM_APDU [00:22:16]CAPDU: 80 0D 01 02 [00:22:16]Write to MH i2c: E2 08 00 96 15 80 0D 01 02 00 00 00 00 24 [00:22:16]Write i2c OK [00:22:16]MH_I2C_Read... [00:22:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:22:16]Read from MH i2c: E2 [00:22:16]MH_I2C_Read... [00:22:16]Read from MH i2c: E2 03 00 [00:22:16]MH_I2C_Read... [00:22:16]Read from MH i2c: E2 03 00 96 15 00 90 00 1F [00:22:16]RAPDU: 90 00 [00:22:16]wFMCommunicate OK [00:22:16]wFMCommunicate request_size=255 [00:22:16]MH_SAM_APDU [00:22:16]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 32 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 DD AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B8 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3F E2 00 00 35 04 06 00 65 9E [00:22:16]Write to MH i2c: E2 02 01 97 15 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 32 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 DD AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B8 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3F E2 00 00 35 04 06 00 65 9E 00 00 FC [00:22:16]Write i2c OK [00:22:16]MH_I2C_Read... [00:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:16]Read from MH i2c: E2 [00:22:16]MH_I2C_Read... [00:22:16]Read from MH i2c: E2 03 00 [00:22:16]MH_I2C_Read... [00:22:16]Read from MH i2c: E2 03 00 97 15 00 90 00 20 [00:22:16]RAPDU: 90 00 [00:22:16]wFMCommunicate OK [00:22:16]wFMCommunicate request_size=9 [00:22:16]MH_SAM_APDU [00:22:16]CAPDU: 80 0D 02 02 04 8A 1C D5 0D [00:22:16]Write to MH i2c: E2 0C 00 98 15 80 0D 02 02 04 00 8A 1C D5 0D 00 00 B7 [00:22:16]Write i2c OK [00:22:16]MH_I2C_Read... [00:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:16]Read from MH i2c: E2 [00:22:16]MH_I2C_Read... [00:22:16]Read from MH i2c: E2 03 00 [00:22:16]MH_I2C_Read... [00:22:16]Read from MH i2c: E2 03 00 98 15 00 90 00 21 [00:22:16]RAPDU: 90 00 [00:22:16]wFMCommunicate OK [00:22:16]wFMCommunicate request_size=4 [00:22:16]MH_SAM_APDU [00:22:16]CAPDU: 80 0D 03 02 [00:22:16]Write to MH i2c: E2 08 00 99 15 80 0D 03 02 00 00 00 00 29 [00:22:16]Write i2c OK [00:22:16]MH_I2C_Read... [00:22:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:22:17]Read from MH i2c: E2 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: E2 0B 00 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: E2 0B 00 99 15 00 C0 9B 06 55 AF D9 7D E6 90 00 CB [00:22:17]RAPDU: C0 9B 06 55 AF D9 7D E6 90 00 [00:22:17]wFMCommunicate OK [00:22:17]SAM_PROTO_SignData done [00:22:17]FM_MakeSignedData done [00:22:17]CreateOFDProtocolMessage [00:22:17]wFMCommunicate request_size=4 [00:22:17]MH_SAM_APDU [00:22:17]CAPDU: 80 11 00 00 [00:22:17]Write to MH i2c: E2 08 00 9A 15 80 11 00 00 00 00 00 00 29 [00:22:17]Write i2c OK [00:22:17]MH_I2C_Read... [00:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:17]Read from MH i2c: E2 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: E2 17 00 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: E2 17 00 9A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 7C [00:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:22:17]wFMCommunicate OK [00:22:17]CreateOFDProtocolMessage done [00:22:17]OFDSenderStorePacket 57919 [00:22:17]StoreOFDPacket docnum=57919 [00:22:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 83 EC 06 01 8D 85 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 32 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 DD AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B8 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3F E2 00 00 35 04 06 00 65 9E 8A 1C D5 0D C0 9B 06 55 AF D9 7D E6 [00:22:17]CheckFolder [00:22:17]dirname=/storage/ofd_packets [00:22:17]CheckFolder done [00:22:17]ProducePacketName [00:22:17]name=ofd_packets/00057919 [00:22:17]NVStorageSaveData ofd_packets/00057919 [00:22:17]File name is /storage/ofd_packets/00057919 [00:22:17]Write 300 bytes [00:22:17]NVStorageSaveData done [00:22:17]OFDSenderStorePacket done [00:22:17]KKMCreateOFDPacket done [00:22:17]NVStorageSaveData kkm_last_timestamp [00:22:17]File name is /storage/kkm_last_timestamp [00:22:17]Write 4 bytes [00:22:17]NVStorageSaveData done [00:22:17]ExternCall_PrintAddStr [00:22:17]wPrintStart [00:22:17]Write to MH i2c: 01 00 00 9B 15 B0 [00:22:17]Write i2c OK [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: 01 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: 01 07 00 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: 01 07 00 9B 15 00 00 00 00 00 FF 0F C5 [00:22:17]RasterBufferAndPrint [00:22:17]line Счет N : (1)543261 [00:22:17]line ИНН: 02508201610067 [00:22:17]line Контрольно-Кассовый Чек [00:22:17]line ПРОДАЖА [00:22:17]line ТРК (МРК, ГНК) : 71 [00:22:17]line Товар: 2711190000 [00:22:17]line ГАЗ-К-5 [00:22:17]line 12.900 * 34.90 [00:22:17]line = 450.21 [00:22:17]line НДС 12% НСП 1% [00:22:17]line > о реализуемом товаре [00:22:17]line ИТОГО: 450.21 [00:22:17]line НСП 1% : 3.98 [00:22:17]line НДС 12% : 47.81 [00:22:17]line Наличными: 0.00 [00:22:17]line Безнал.: 450.21 [00:22:17]line Место: АЗС № 117 "Партнер Нефть" [00:22:17]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:22:17]line СНО: Общий режим [00:22:17]line Чек 3 03.06.2024 00:22 [00:22:17]line Смена: 70 ФФД: 1.0 [00:22:17]line ЗНМ: 0300000048 [00:22:17]line РНМ: 0000000000151680 [00:22:17]line Версия ККМ: v1.0 [00:22:17]line Платежная система: АКБ Кыргызстан [00:22:17]line ФМ: 0000000000959414 [00:22:17]line ФД: 57919 [00:22:17]line ФПД: 111731596383501 [00:22:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T002216&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57919&fm=111731596383501&tin=02508201610067®Number=0000000000151680&sum=45021 [00:22:17]OFD Sender: Processing packet 57919 [packets to send 50, broken 49] [00:22:17]ProducePacketName [00:22:17]name=ofd_packets/00057919 [00:22:17]OFD Sender: To server: pG, [00:22:17]CommunicateWithHost lk.salyk.kg:30040 [00:22:17]ConnectInit lk.salyk.kg [00:22:17]written 0, free lines is 4095 [00:22:17]Connected sock=10 [00:22:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 83 EC 06 01 8D 85 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 32 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 DD AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B8 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3F E2 00 00 35 04 06 00 65 9E 8A 1C D5 0D C0 9B 06 55 AF D9 7D E6 [00:22:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 69 DF 47 00 D3 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 3F E2 00 00 F4 03 04 00 88 B7 5C 66 B6 04 01 00 00 BB 41 F8 A7 E0 82 47 1C [00:22:17]CommunicateWithHost err = 0 [00:22:17]CheckOFDResponse [00:22:17]1017 (14) - 77093643461234 [00:22:17]1041 (16) - 0000000000959414 [00:22:17]1040 (4) - 57919 [00:22:17]1012 (4) - 02.06.2024 18:18 [00:22:17]1206 (1) - 0 [00:22:17]OFD Sender: Remove packet 57919 [00:22:17]ProducePacketName [00:22:17]name=ofd_packets/00057919 [00:22:17]NVStorageDeleteData [00:22:17]Write to MH i2c: 01 00 00 C5 15 DA [00:22:17]Write i2c OK [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: 01 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: 01 07 00 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: 01 07 00 C5 15 00 00 00 00 00 B2 0C 9F [00:22:17]RasterBufferAndPrint [00:22:17]line [00:22:17]line [00:22:17]line [00:22:17]line [00:22:17]line [00:22:17]written 0, free lines is 3256 [00:22:17]MH_Cut [00:22:17]Write to MH i2c: D1 01 00 CC 15 01 B3 [00:22:17]Write i2c OK [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: D1 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: D1 01 00 [00:22:17]MH_I2C_Read... [00:22:17]Read from MH i2c: D1 01 00 CC 15 00 B2 [00:22:17]Write to MH i2c: 01 00 00 CD 15 E2 [00:22:17]Write i2c OK [00:22:17]MH_I2C_Read... [00:22:18]OFD Sender: No OFD packet to send [00:22:18]*** Cut start [00:22:18]*** Partial cut [00:22:18]*** CUTSNS_PIN = 1 [00:22:18]*** CUTSNS_PIN = 0 [00:22:19]*** Brake cut motor [00:22:19]Read from MH i2c: 01 [00:22:19]MH_I2C_Read... [00:22:19]*** Stop cut motor [00:22:19]*** Cut end [00:22:19]Read from MH i2c: 01 07 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: 01 07 00 CD 15 00 00 00 00 00 FF 0F F7 [00:22:19]process_action close_receipt done [00:22:19]requested_data is exist [00:22:19]produce_requested_data [00:22:19]requested_item fm.sn is exist - process it [00:22:19]wFMCommunicate request_size=4 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 11 00 00 [00:22:19]Write to MH i2c: E2 08 00 CE 15 80 11 00 00 00 00 00 00 5D [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 17 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 17 00 CE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 B0 [00:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:22:19]wFMCommunicate OK [00:22:19]requested_item fd.num is exist - process it [00:22:19]SAM_PROTO_GetFieldsCounters [00:22:19]wFMCommunicate request_size=4 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 13 00 00 [00:22:19]Write to MH i2c: E2 08 00 CF 15 80 13 00 00 00 00 00 00 60 [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 62 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 62 00 CF 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3F E2 00 00 0E 04 04 00 46 00 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 ED [00:22:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 3F E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:22:19]wFMCommunicate OK [00:22:19]SAM_PROTO_GetFieldsCounters done [00:22:19]requested_item shift.num is exist - process it [00:22:19]requested_item shift.opened is exist - process it [00:22:19]req_shift_opened [00:22:19]FM_GetShiftState [00:22:19]SAM_PROTO_GetShiftState [00:22:19]wFMCommunicate request_size=4 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 13 01 00 [00:22:19]Write to MH i2c: E2 08 00 D0 15 80 13 01 00 00 00 00 00 62 [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 0E 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 0E 00 D0 15 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 23 [00:22:19]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:22:19]wFMCommunicate OK [00:22:19]SAM_PROTO_GetShiftState done [00:22:19]FM_GetShiftState done [00:22:19]req_shift_opened done [00:22:19]requested_item shift.open_date is exist - process it [00:22:19]req_shift_open_date [00:22:19]req_shift_open_date done [00:22:19]produce_requested_data done [00:22:19]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57919,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:22:19]process_action_free close_receipt [00:22:19]json_value_free [00:22:19]json_value_free done [00:22:19]process_json_proto returns [00:22:19]Send response to host [00:22:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57919,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:22:19]free response buf [00:22:19]execute_script done [00:22:19]execute_script returns [00:22:19]free content buf [00:22:19]Sock 8.Close socket [00:22:19]Sock 8.Thread stoped [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:31]accept exits with 9 [00:22:31]New connection [00:22:31]New thread 3066592612 created [00:22:31]Thread 3066735972 joined [00:22:31]Waiting for new connection... [00:22:31] Sock 9.Parse request [00:22:31]Sock 9.Check first char [00:22:31]Sock 9.First char is OK [00:22:31]request: POST /json_proto HTTP/1.0 [00:22:31]Method: POST [00:22:31]URL: /json_proto [00:22:31]Method is POST - this is cgi request [00:22:31]url: /json_proto [00:22:31]query_string will be loaded in cgi processing [00:22:31]execute_cgi json_proto POST (null) [00:22:31]execute_cgi path=json_proto method=POST [00:22:31]POST find Content-Length [00:22:31]Host: 172.17.60.68:8080 [00:22:31]Content-Length: 978 [00:22:31]Content-Type: application/json [00:22:31] [00:22:31]POST finish read [00:22:31]Found Content-Length = 978 [00:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 63.620, "sum" : 4606.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.81 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 4606.00, "payments": [ { "type": 0, "sum" : 4606.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:31]execute_script... [00:22:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 63.620, "sum" : 4606.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.81 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 4606.00, "payments": [ { "type": 0, "sum" : 4606.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:31]POST & json_proto [00:22:31]process_json_proto [00:22:31]json parsed OK: [00:22:31]protocol is kg_v1.0 [00:22:31]action value=close_receipt [00:22:31]process_action close_receipt [00:22:31]cmd_close_receipt [00:22:31]MH_GetDate [00:22:31]Write to MH i2c: F0 00 00 D1 15 D5 [00:22:31]Write i2c OK [00:22:31]MH_I2C_Read... [00:22:31]Read from MH i2c: F0 [00:22:31]MH_I2C_Read... [00:22:32]Read from MH i2c: F0 09 00 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: F0 09 00 D1 15 00 C9 0C 5D 66 8D A7 02 66 12 [00:22:32]GetLastDocTimeStamp 1717374136 [00:22:32]current date 1717374153 [00:22:32]FM_GetShiftState [00:22:32]SAM_PROTO_GetShiftState [00:22:32]wFMCommunicate request_size=4 [00:22:32]MH_SAM_APDU [00:22:32]CAPDU: 80 13 01 00 [00:22:32]Write to MH i2c: E2 08 00 D2 15 80 13 01 00 00 00 00 00 64 [00:22:32]Write i2c OK [00:22:32]MH_I2C_Read... [00:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:32]Read from MH i2c: E2 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 0E 00 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 0E 00 D2 15 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 25 [00:22:32]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:22:32]wFMCommunicate OK [00:22:32]SAM_PROTO_GetShiftState done [00:22:32]FM_GetShiftState done [00:22:32]opened in 1717373417 [00:22:32]opened+sec_in_day 1717459817 [00:22:32]quantity*price = 460608 [00:22:32]sum+1 = 460610 [00:22:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 4606.00 Внесено: 9000.00 СДАЧА: 4394.00 НСП 1% : 40.76 НДС 12% : 489.14 Наличными: 4606.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 4 03.06.2024 00:22 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Дисконтная программа ДТ номер 117 сэкономлено 31.81 сом ФМ: 0000000000959414 ФД: 57920 ФПД: 97570535213670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T002233&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57920&fm=97570535213670&tin=02508201610067®Number=0000000000151680&sum=460600 [00:22:33]StoreToDocumentArchive [00:22:33]shift 70 fd 57920 [00:22:33]save to /storage/0070/doc_00057920 [00:22:33]save last doc name /storage/0070/doc_00057920 to /storage/kkm_last_doc_name [00:22:33]save OK [00:22:33]Clear old archive folders... [00:22:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:22:33]tlvbuf is B6E8C1F0 [00:22:33]SAM_PROTO_ClearQueue [00:22:33]wFMCommunicate request_size=4 [00:22:33]MH_SAM_APDU [00:22:33]CAPDU: 80 09 00 00 [00:22:33]Write to MH i2c: E2 08 00 DF 15 80 09 00 00 00 00 00 00 66 [00:22:33]Write i2c OK [00:22:33]MH_I2C_Read... [00:22:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:22:33]Read from MH i2c: E2 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 03 00 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 03 00 DF 15 00 90 00 68 [00:22:33]RAPDU: 90 00 [00:22:33]wFMCommunicate OK [00:22:33]SAM_PROTO_ClearQueue done [00:22:33]KKMCreateOFDPacket [00:22:33]OFDProtocolAddRootSTLVToBuf [00:22:33]FM_MakeSignedData [00:22:33]FM_MakeSignedData [00:22:33]SAM_PROTO_SignData [00:22:33]wFMCommunicate request_size=4 [00:22:33]MH_SAM_APDU [00:22:33]CAPDU: 80 0D 01 02 [00:22:33]Write to MH i2c: E2 08 00 E0 15 80 0D 01 02 00 00 00 00 6E [00:22:33]Write i2c OK [00:22:33]MH_I2C_Read... [00:22:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:22:33]Read from MH i2c: E2 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 03 00 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 03 00 E0 15 00 90 00 69 [00:22:33]RAPDU: 90 00 [00:22:33]wFMCommunicate OK [00:22:33]wFMCommunicate request_size=255 [00:22:33]MH_SAM_APDU [00:22:33]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 84 F8 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 41 07 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 07 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 BF 00 00 00 00 07 04 06 00 38 07 07 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 C9 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 40 E2 00 00 35 04 06 00 58 BD 69 17 [00:22:33]Write to MH i2c: E2 02 01 E1 15 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 84 F8 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 41 07 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 07 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 BF 00 00 00 00 07 04 06 00 38 07 07 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 C9 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 40 E2 00 00 35 04 06 00 58 BD 69 17 00 00 E7 [00:22:33]OFD Sender: No OFD packet to send [00:22:33]Write i2c OK [00:22:33]MH_I2C_Read... [00:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:33]Read from MH i2c: E2 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 03 00 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 03 00 E1 15 00 90 00 6A [00:22:33]RAPDU: 90 00 [00:22:33]wFMCommunicate OK [00:22:33]wFMCommunicate request_size=7 [00:22:33]MH_SAM_APDU [00:22:33]CAPDU: 80 0D 02 02 02 8A 66 [00:22:33]Write to MH i2c: E2 0A 00 E2 15 80 0D 02 02 02 00 8A 66 00 00 65 [00:22:33]Write i2c OK [00:22:33]MH_I2C_Read... [00:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:33]Read from MH i2c: E2 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 03 00 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 03 00 E2 15 00 90 00 6B [00:22:33]RAPDU: 90 00 [00:22:33]wFMCommunicate OK [00:22:33]wFMCommunicate request_size=4 [00:22:33]MH_SAM_APDU [00:22:33]CAPDU: 80 0D 03 02 [00:22:33]Write to MH i2c: E2 08 00 E3 15 80 0D 03 02 00 00 00 00 73 [00:22:33]Write i2c OK [00:22:33]MH_I2C_Read... [00:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:22:33]Read from MH i2c: E2 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 0B 00 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 0B 00 E3 15 00 ED 68 CA 7B 1B 28 B2 5A 90 00 5D [00:22:33]RAPDU: ED 68 CA 7B 1B 28 B2 5A 90 00 [00:22:33]wFMCommunicate OK [00:22:33]SAM_PROTO_SignData done [00:22:33]FM_MakeSignedData done [00:22:33]CreateOFDProtocolMessage [00:22:33]wFMCommunicate request_size=4 [00:22:33]MH_SAM_APDU [00:22:33]CAPDU: 80 11 00 00 [00:22:33]Write to MH i2c: E2 08 00 E4 15 80 11 00 00 00 00 00 00 73 [00:22:33]Write i2c OK [00:22:33]MH_I2C_Read... [00:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:33]Read from MH i2c: E2 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 17 00 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 17 00 E4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 C6 [00:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:22:33]wFMCommunicate OK [00:22:33]CreateOFDProtocolMessage done [00:22:33]OFDSenderStorePacket 57920 [00:22:33]StoreOFDPacket docnum=57920 [00:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 8A 93 04 01 DA F9 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 84 F8 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 41 07 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 07 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 BF 00 00 00 00 07 04 06 00 38 07 07 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 C9 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 40 E2 00 00 35 04 06 00 58 BD 69 17 8A 66 ED 68 CA 7B 1B 28 B2 5A [00:22:33]CheckFolder [00:22:33]dirname=/storage/ofd_packets [00:22:33]CheckFolder done [00:22:33]ProducePacketName [00:22:33]name=ofd_packets/00057920 [00:22:33]NVStorageSaveData ofd_packets/00057920 [00:22:33]File name is /storage/ofd_packets/00057920 [00:22:33]Write 298 bytes [00:22:33]NVStorageSaveData done [00:22:33]OFDSenderStorePacket done [00:22:33]KKMCreateOFDPacket done [00:22:33]NVStorageSaveData kkm_last_timestamp [00:22:33]File name is /storage/kkm_last_timestamp [00:22:33]Write 4 bytes [00:22:33]NVStorageSaveData done [00:22:33]OFD Sender: Processing packet 57920 [packets to send 50, broken 49] [00:22:33]ProducePacketName [00:22:33]name=ofd_packets/00057920 [00:22:33]OFD Sender: To server: pG, [00:22:33]CommunicateWithHost lk.salyk.kg:30040 [00:22:33]ConnectInit lk.salyk.kg [00:22:33]ExternCall_PrintAddStr [00:22:33]wPrintStart [00:22:33]Write to MH i2c: 01 00 00 E5 15 FA [00:22:33]Write i2c OK [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: 01 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: 01 07 00 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: 01 07 00 E5 15 00 00 00 00 00 FF 0F 0F [00:22:33]RasterBufferAndPrint [00:22:33]line Счет N : (1)543260 [00:22:33]line ИНН: 02508201610067 [00:22:33]line Контрольно-Кассовый Чек [00:22:33]line ПРОДАЖА [00:22:33]line ТРК (МРК, ГНК) : 31 [00:22:33]line Товар: 2710194210 [00:22:33]line ДТ-К-5 [00:22:33]line 63.620 * 72.40 [00:22:33]line = 4606.09 [00:22:33]line НДС 12% НСП 1% [00:22:33]line > о реализуемом товаре [00:22:33]line ОКРУГЛЕНИЕ: -0.09 [00:22:33]line ИТОГО: 4606.00 [00:22:33]line Внесено: 9000.00 [00:22:33]line СДАЧА: 4394.00 [00:22:33]line НСП 1% : 40.76 [00:22:33]line НДС 12% : 489.14 [00:22:33]line Наличными: 4606.00 [00:22:33]line Безнал.: 0.00 [00:22:33]line Место: АЗС № 117 "Партнер Нефть" [00:22:33]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:22:33]line СНО: Общий режим [00:22:33]line Чек 4 03.06.2024 00:22 [00:22:33]line Смена: 70 ФФД: 1.0 [00:22:33]line ЗНМ: 0300000048 [00:22:33]line РНМ: 0000000000151680 [00:22:33]line Версия ККМ: v1.0 [00:22:33]line [00:22:33]line Дисконтная программа [00:22:33]line ДТ [00:22:34]line номер 117 [00:22:34]line сэкономлено 31.81 сом [00:22:34]line ФМ: 0000000000959414 [00:22:34]line ФД: 57920 [00:22:34]line ФПД: 97570535213670 [00:22:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T002233&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57920&fm=97570535213670&tin=02508201610067®Number=0000000000151680&sum=460600 [00:22:34]Connected sock=11 [00:22:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 8A 93 04 01 DA F9 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 84 F8 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 41 07 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 07 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 BF 00 00 00 00 07 04 06 00 38 07 07 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 C9 0C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 40 E2 00 00 35 04 06 00 58 BD 69 17 8A 66 ED 68 CA 7B 1B 28 B2 5A [00:22:34]written 0, free lines is 4095 [00:22:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 75 59 47 00 7D C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 40 E2 00 00 F4 03 04 00 98 B7 5C 66 B6 04 01 00 00 BF 45 8A 6A 34 A2 04 78 [00:22:34]CommunicateWithHost err = 0 [00:22:34]CheckOFDResponse [00:22:34]1017 (14) - 77093643461234 [00:22:34]1041 (16) - 0000000000959414 [00:22:34]1040 (4) - 57920 [00:22:34]1012 (4) - 02.06.2024 18:19 [00:22:34]1206 (1) - 0 [00:22:34]OFD Sender: Remove packet 57920 [00:22:34]ProducePacketName [00:22:34]name=ofd_packets/00057920 [00:22:34]NVStorageDeleteData [00:22:34]Write to MH i2c: 01 00 00 15 16 2B [00:22:34]Write i2c OK [00:22:34]MH_I2C_Read... [00:22:34]Read from MH i2c: 01 [00:22:34]MH_I2C_Read... [00:22:34]Read from MH i2c: 01 07 00 [00:22:34]MH_I2C_Read... [00:22:34]Read from MH i2c: 01 07 00 15 16 00 00 00 00 00 43 0C 81 [00:22:34]RasterBufferAndPrint [00:22:34]line [00:22:34]line [00:22:34]line [00:22:34]line [00:22:34]line [00:22:34]written 0, free lines is 3145 [00:22:34]MH_Cut [00:22:34]Write to MH i2c: D1 01 00 1C 16 01 04 [00:22:34]Write i2c OK [00:22:34]MH_I2C_Read... [00:22:34]Read from MH i2c: D1 [00:22:34]MH_I2C_Read... [00:22:34]Read from MH i2c: D1 01 00 [00:22:34]MH_I2C_Read... [00:22:34]Read from MH i2c: D1 01 00 1C 16 00 03 [00:22:34]Write to MH i2c: 01 00 00 1D 16 33 [00:22:34]Write i2c OK [00:22:34]MH_I2C_Read... [00:22:34]OFD Sender: No OFD packet to send [00:22:35]*** Cut start [00:22:35]*** Partial cut [00:22:35]*** CUTSNS_PIN = 1 [00:22:35]*** CUTSNS_PIN = 0 [00:22:35]*** Brake cut motor [00:22:36]Read from MH i2c: 01 [00:22:36]MH_I2C_Read... [00:22:36]*** Stop cut motor [00:22:36]*** Cut end [00:22:36]Read from MH i2c: 01 07 00 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: 01 07 00 1D 16 00 00 00 00 00 FF 0F 48 [00:22:36]process_action close_receipt done [00:22:36]requested_data is exist [00:22:36]produce_requested_data [00:22:36]requested_item fm.sn is exist - process it [00:22:36]wFMCommunicate request_size=4 [00:22:36]MH_SAM_APDU [00:22:36]CAPDU: 80 11 00 00 [00:22:36]Write to MH i2c: E2 08 00 1E 16 80 11 00 00 00 00 00 00 AE [00:22:36]Write i2c OK [00:22:36]MH_I2C_Read... [00:22:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:36]Read from MH i2c: E2 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 17 00 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 17 00 1E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 01 [00:22:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:22:36]wFMCommunicate OK [00:22:36]requested_item fd.num is exist - process it [00:22:36]SAM_PROTO_GetFieldsCounters [00:22:36]wFMCommunicate request_size=4 [00:22:36]MH_SAM_APDU [00:22:36]CAPDU: 80 13 00 00 [00:22:36]Write to MH i2c: E2 08 00 1F 16 80 13 00 00 00 00 00 00 B1 [00:22:36]Write i2c OK [00:22:36]MH_I2C_Read... [00:22:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:36]Read from MH i2c: E2 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 62 00 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 62 00 1F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 40 E2 00 00 0E 04 04 00 46 00 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 42 [00:22:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 40 E2 00 00 0E 04 04 00 46 00 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 [00:22:36]wFMCommunicate OK [00:22:36]SAM_PROTO_GetFieldsCounters done [00:22:36]requested_item shift.num is exist - process it [00:22:36]requested_item shift.opened is exist - process it [00:22:36]req_shift_opened [00:22:36]FM_GetShiftState [00:22:36]SAM_PROTO_GetShiftState [00:22:36]wFMCommunicate request_size=4 [00:22:36]MH_SAM_APDU [00:22:36]CAPDU: 80 13 01 00 [00:22:36]Write to MH i2c: E2 08 00 20 16 80 13 01 00 00 00 00 00 B3 [00:22:36]Write i2c OK [00:22:36]MH_I2C_Read... [00:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:36]Read from MH i2c: E2 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 0E 00 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 0E 00 20 16 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 74 [00:22:36]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:22:36]wFMCommunicate OK [00:22:36]SAM_PROTO_GetShiftState done [00:22:36]FM_GetShiftState done [00:22:36]req_shift_opened done [00:22:36]requested_item shift.open_date is exist - process it [00:22:36]req_shift_open_date [00:22:36]req_shift_open_date done [00:22:36]produce_requested_data done [00:22:36]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57920,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:22:36]process_action_free close_receipt [00:22:36]json_value_free [00:22:36]json_value_free done [00:22:36]process_json_proto returns [00:22:36]Send response to host [00:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57920,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:22:36]free response buf [00:22:36]execute_script done [00:22:36]execute_script returns [00:22:36]free content buf [00:22:36]Sock 9.Close socket [00:22:36]Sock 9.Thread stoped [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:19]accept exits with 8 [00:30:19]New connection [00:30:19]New thread 3066735972 created [00:30:19]Thread 3066592612 joined [00:30:19]Waiting for new connection... [00:30:19] Sock 8.Parse request [00:30:19]Sock 8.Check first char [00:30:19]Sock 8.First char is OK [00:30:19]request: POST /json_proto HTTP/1.0 [00:30:19]Method: POST [00:30:19]URL: /json_proto [00:30:19]Method is POST - this is cgi request [00:30:19]url: /json_proto [00:30:19]query_string will be loaded in cgi processing [00:30:19]execute_cgi json_proto POST (null) [00:30:19]execute_cgi path=json_proto method=POST [00:30:19]POST find Content-Length [00:30:19]Host: 172.17.60.68:8080 [00:30:19]Content-Length: 677 [00:30:19]Content-Type: application/json [00:30:19] [00:30:19]POST finish read [00:30:19]Found Content-Length = 677 [00:30:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543263", "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" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:19]execute_script... [00:30: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)543263", "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" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:19]POST & json_proto [00:30:19]process_json_proto [00:30:19]json parsed OK: [00:30:19]protocol is kg_v1.0 [00:30:19]action value=close_receipt [00:30:19]process_action close_receipt [00:30:19]cmd_close_receipt [00:30:19]MH_GetDate [00:30:19]Write to MH i2c: F0 00 00 21 16 26 [00:30:19]Write i2c OK [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: F0 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: F0 09 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: F0 09 00 21 16 00 9C 0E 5D 66 8D A7 02 66 38 [00:30:19]GetLastDocTimeStamp 1717374153 [00:30:19]current date 1717374620 [00:30:19]FM_GetShiftState [00:30:19]SAM_PROTO_GetShiftState [00:30:19]wFMCommunicate request_size=4 [00:30:19]MH_SAM_APDU [00:30:19]CAPDU: 80 13 01 00 [00:30:19]Write to MH i2c: E2 08 00 22 16 80 13 01 00 00 00 00 00 B5 [00:30:19]Write i2c OK [00:30:19]MH_I2C_Read... [00:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:19]Read from MH i2c: E2 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 0E 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 0E 00 22 16 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 76 [00:30:19]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:30:19]wFMCommunicate OK [00:30:19]SAM_PROTO_GetShiftState done [00:30:19]FM_GetShiftState done [00:30:19]opened in 1717373417 [00:30:19]opened+sec_in_day 1717459817 [00:30:19]quantity*price = 50041 [00:30:19]sum+1 = 50042 [00:30:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 5 03.06.2024 00:30 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57921 ФПД: 193288629415730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T003021&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57921&fm=193288629415730&tin=02508201610067®Number=0000000000151680&sum=50000 [00:30:21]StoreToDocumentArchive [00:30:21]shift 70 fd 57921 [00:30:21]save to /storage/0070/doc_00057921 [00:30:21]save last doc name /storage/0070/doc_00057921 to /storage/kkm_last_doc_name [00:30:21]save OK [00:30:21]Clear old archive folders... [00:30:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:30:21]tlvbuf is B6E8CB10 [00:30:21]SAM_PROTO_ClearQueue [00:30:21]wFMCommunicate request_size=4 [00:30:21]MH_SAM_APDU [00:30:21]CAPDU: 80 09 00 00 [00:30:21]Write to MH i2c: E2 08 00 2F 16 80 09 00 00 00 00 00 00 B7 [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:21]Read from MH i2c: E2 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 03 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 03 00 2F 16 00 90 00 B9 [00:30:21]RAPDU: 90 00 [00:30:21]wFMCommunicate OK [00:30:21]SAM_PROTO_ClearQueue done [00:30:21]KKMCreateOFDPacket [00:30:21]OFDProtocolAddRootSTLVToBuf [00:30:21]FM_MakeSignedData [00:30:21]FM_MakeSignedData [00:30:21]SAM_PROTO_SignData [00:30:21]wFMCommunicate request_size=4 [00:30:21]MH_SAM_APDU [00:30:21]CAPDU: 80 0D 01 02 [00:30:21]Write to MH i2c: E2 08 00 30 16 80 0D 01 02 00 00 00 00 BF [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:21]Read from MH i2c: E2 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 03 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 03 00 30 16 00 90 00 BA [00:30:21]RAPDU: 90 00 [00:30:21]wFMCommunicate OK [00:30:21]wFMCommunicate request_size=255 [00:30:21]MH_SAM_APDU [00:30:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9D 0E 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 41 E2 00 00 35 04 06 00 AF [00:30:21]Write to MH i2c: E2 02 01 31 16 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9D 0E 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 41 E2 00 00 35 04 06 00 AF 00 00 D5 [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:21]Read from MH i2c: E2 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 03 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 03 00 31 16 00 90 00 BB [00:30:21]RAPDU: 90 00 [00:30:21]wFMCommunicate OK [00:30:21]wFMCommunicate request_size=10 [00:30:21]MH_SAM_APDU [00:30:21]CAPDU: 80 0D 02 02 05 CB 84 18 6F 32 [00:30:21]Write to MH i2c: E2 0D 00 32 16 80 0D 02 02 05 00 CB 84 18 6F 32 00 00 D4 [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:21]Read from MH i2c: E2 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 03 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 03 00 32 16 00 90 00 BC [00:30:21]RAPDU: 90 00 [00:30:21]wFMCommunicate OK [00:30:21]wFMCommunicate request_size=4 [00:30:21]MH_SAM_APDU [00:30:21]CAPDU: 80 0D 03 02 [00:30:21]Write to MH i2c: E2 08 00 33 16 80 0D 03 02 00 00 00 00 C4 [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:21]Read from MH i2c: E2 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 0B 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 0B 00 33 16 00 30 B8 0E EE E9 A1 AE 0F 90 00 F0 [00:30:21]RAPDU: 30 B8 0E EE E9 A1 AE 0F 90 00 [00:30:21]wFMCommunicate OK [00:30:21]SAM_PROTO_SignData done [00:30:21]FM_MakeSignedData done [00:30:21]CreateOFDProtocolMessage [00:30:21]wFMCommunicate request_size=4 [00:30:21]MH_SAM_APDU [00:30:21]CAPDU: 80 11 00 00 [00:30:21]Write to MH i2c: E2 08 00 34 16 80 11 00 00 00 00 00 00 C4 [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:21]Read from MH i2c: E2 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 17 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 17 00 34 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 17 [00:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:30:21]wFMCommunicate OK [00:30:21]CreateOFDProtocolMessage done [00:30:21]OFDSenderStorePacket 57921 [00:30:21]StoreOFDPacket docnum=57921 [00:30:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 D8 26 07 01 F7 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9D 0E 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 41 E2 00 00 35 04 06 00 AF CB 84 18 6F 32 30 B8 0E EE E9 A1 AE 0F [00:30:21]CheckFolder [00:30:21]dirname=/storage/ofd_packets [00:30:21]CheckFolder done [00:30:21]ProducePacketName [00:30:21]name=ofd_packets/00057921 [00:30:21]NVStorageSaveData ofd_packets/00057921 [00:30:21]File name is /storage/ofd_packets/00057921 [00:30:21]Write 301 bytes [00:30:21]NVStorageSaveData done [00:30:21]OFDSenderStorePacket done [00:30:21]KKMCreateOFDPacket done [00:30:21]NVStorageSaveData kkm_last_timestamp [00:30:21]File name is /storage/kkm_last_timestamp [00:30:21]Write 4 bytes [00:30:21]NVStorageSaveData done [00:30:21]ExternCall_PrintAddStr [00:30:21]wPrintStart [00:30:21]Write to MH i2c: 01 00 00 35 16 4B [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: 01 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: 01 07 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: 01 07 00 35 16 00 00 00 00 00 FF 0F 60 [00:30:21]RasterBufferAndPrint [00:30:21]line Счет N : (1)543263 [00:30:21]line ИНН: 02508201610067 [00:30:21]line Контрольно-Кассовый Чек [00:30:21]line ПРОДАЖА [00:30:21]line ТРК (МРК, ГНК) : 22 [00:30:21]line Товар: 2710124130 [00:30:21]line Аи-92-К-5 [00:30:21]line 7.480 * 66.90 [00:30:21]line = 500.41 [00:30:21]line НДС 12% НСП 1% [00:30:21]line > о реализуемом товаре [00:30:21]line ОКРУГЛЕНИЕ: -0.41 [00:30:21]line ИТОГО: 500.00 [00:30:21]line Внесено: 500.00 [00:30:21]line СДАЧА: 0.00 [00:30:21]line НСП 1% : 4.43 [00:30:21]line НДС 12% : 53.14 [00:30:21]line Наличными: 500.00 [00:30:21]line Безнал.: 0.00 [00:30:21]line Место: АЗС № 117 "Партнер Нефть" [00:30:21]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:30:21]line СНО: Общий режим [00:30:21]line Чек 5 03.06.2024 00:30 [00:30:21]line Смена: 70 ФФД: 1.0 [00:30:21]line ЗНМ: 0300000048 [00:30:21]line РНМ: 0000000000151680 [00:30:21]line Версия ККМ: v1.0 [00:30:21]line ФМ: 0000000000959414 [00:30:21]line ФД: 57921 [00:30:21]line ФПД: 193288629415730 [00:30:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T003021&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57921&fm=193288629415730&tin=02508201610067®Number=0000000000151680&sum=50000 [00:30:21]OFD Sender: Processing packet 57921 [packets to send 50, broken 49] [00:30:21]ProducePacketName [00:30:21]name=ofd_packets/00057921 [00:30:21]OFD Sender: To server: pG, [00:30:21]CommunicateWithHost lk.salyk.kg:30040 [00:30:21]ConnectInit lk.salyk.kg [00:30:21]written 0, free lines is 4095 [00:30:21]Connected sock=10 [00:30:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 D8 26 07 01 F7 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9D 0E 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 41 E2 00 00 35 04 06 00 AF CB 84 18 6F 32 30 B8 0E EE E9 A1 AE 0F [00:30:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 BB DF 47 00 98 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 41 E2 00 00 F4 03 04 00 6C B9 5C 66 B6 04 01 00 00 2A F1 EF 38 93 68 5A 5E [00:30:22]CommunicateWithHost err = 0 [00:30:22]CheckOFDResponse [00:30:22]1017 (14) - 77093643461234 [00:30:22]1041 (16) - 0000000000959414 [00:30:22]1040 (4) - 57921 [00:30:22]1012 (4) - 02.06.2024 18:26 [00:30:22]1206 (1) - 0 [00:30:22]OFD Sender: Remove packet 57921 [00:30:22]ProducePacketName [00:30:22]name=ofd_packets/00057921 [00:30:22]NVStorageDeleteData [00:30:22]Write to MH i2c: 01 00 00 60 16 76 [00:30:22]Write i2c OK [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: 01 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: 01 07 00 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: 01 07 00 60 16 00 00 00 00 00 A1 0C 2A [00:30:22]RasterBufferAndPrint [00:30:22]line [00:30:22]line [00:30:22]line [00:30:22]line [00:30:22]line [00:30:22]written 0, free lines is 3237 [00:30:22]MH_Cut [00:30:22]Write to MH i2c: D1 01 00 67 16 01 4F [00:30:22]Write i2c OK [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: D1 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: D1 01 00 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: D1 01 00 67 16 00 4E [00:30:22]Write to MH i2c: 01 00 00 68 16 7E [00:30:22]Write i2c OK [00:30:22]MH_I2C_Read... [00:30:22]OFD Sender: No OFD packet to send [00:30:23]*** Cut start [00:30:23]*** Partial cut [00:30:23]*** CUTSNS_PIN = 1 [00:30:23]*** CUTSNS_PIN = 0 [00:30:23]*** Brake cut motor [00:30:23]Read from MH i2c: 01 [00:30:23]MH_I2C_Read... [00:30:23]*** Stop cut motor [00:30:23]*** Cut end [00:30:23]Read from MH i2c: 01 07 00 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: 01 07 00 68 16 00 00 00 00 00 FF 0F 93 [00:30:23]process_action close_receipt done [00:30:23]requested_data is exist [00:30:23]produce_requested_data [00:30:23]requested_item fm.sn is exist - process it [00:30:23]wFMCommunicate request_size=4 [00:30:23]MH_SAM_APDU [00:30:23]CAPDU: 80 11 00 00 [00:30:23]Write to MH i2c: E2 08 00 69 16 80 11 00 00 00 00 00 00 F9 [00:30:23]Write i2c OK [00:30:23]MH_I2C_Read... [00:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:23]Read from MH i2c: E2 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: E2 17 00 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: E2 17 00 69 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 4C [00:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:30:23]wFMCommunicate OK [00:30:23]requested_item fd.num is exist - process it [00:30:23]SAM_PROTO_GetFieldsCounters [00:30:23]wFMCommunicate request_size=4 [00:30:23]MH_SAM_APDU [00:30:23]CAPDU: 80 13 00 00 [00:30:23]Write to MH i2c: E2 08 00 6A 16 80 13 00 00 00 00 00 00 FC [00:30:23]Write i2c OK [00:30:23]MH_I2C_Read... [00:30:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:24]Read from MH i2c: E2 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 62 00 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 62 00 6A 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 41 E2 00 00 0E 04 04 00 46 00 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 91 [00:30:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 41 E2 00 00 0E 04 04 00 46 00 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 [00:30:24]wFMCommunicate OK [00:30:24]SAM_PROTO_GetFieldsCounters done [00:30:24]requested_item shift.num is exist - process it [00:30:24]requested_item shift.opened is exist - process it [00:30:24]req_shift_opened [00:30:24]FM_GetShiftState [00:30:24]SAM_PROTO_GetShiftState [00:30:24]wFMCommunicate request_size=4 [00:30:24]MH_SAM_APDU [00:30:24]CAPDU: 80 13 01 00 [00:30:24]Write to MH i2c: E2 08 00 6B 16 80 13 01 00 00 00 00 00 FE [00:30:24]Write i2c OK [00:30:24]MH_I2C_Read... [00:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:24]Read from MH i2c: E2 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 0E 00 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 0E 00 6B 16 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 BF [00:30:24]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:30:24]wFMCommunicate OK [00:30:24]SAM_PROTO_GetShiftState done [00:30:24]FM_GetShiftState done [00:30:24]req_shift_opened done [00:30:24]requested_item shift.open_date is exist - process it [00:30:24]req_shift_open_date [00:30:24]req_shift_open_date done [00:30:24]produce_requested_data done [00:30:24]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57921,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:30:24]process_action_free close_receipt [00:30:24]json_value_free [00:30:24]json_value_free done [00:30:24]process_json_proto returns [00:30:24]Send response to host [00:30:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57921,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:30:24]free response buf [00:30:24]execute_script done [00:30:24]execute_script returns [00:30:24]free content buf [00:30:24]Sock 8.Close socket [00:30:24]Sock 8.Thread stoped [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:33]accept exits with 9 [00:32:33]New connection [00:32:33]New thread 3066592612 created [00:32:33]Thread 3066735972 joined [00:32:33]Waiting for new connection... [00:32:33] Sock 9.Parse request [00:32:33]Sock 9.Check first char [00:32:33]Sock 9.First char is OK [00:32:33]request: POST /json_proto HTTP/1.0 [00:32:33]Method: POST [00:32:33]URL: /json_proto [00:32:33]Method is POST - this is cgi request [00:32:33]url: /json_proto [00:32:33]query_string will be loaded in cgi processing [00:32:33]execute_cgi json_proto POST (null) [00:32:33]execute_cgi path=json_proto method=POST [00:32:33]POST find Content-Length [00:32:33]Host: 172.17.60.68:8080 [00:32:33]Content-Length: 674 [00:32:33]Content-Type: application/json [00:32:33] [00:32:33]POST finish read [00:32:33]Found Content-Length = 674 [00:32:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "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" ] } } [00:32:33]execute_script... [00:32:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "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" ] } } [00:32:33]POST & json_proto [00:32:33]process_json_proto [00:32:33]json parsed OK: [00:32:33]protocol is kg_v1.0 [00:32:33]action value=close_receipt [00:32:33]process_action close_receipt [00:32:33]cmd_close_receipt [00:32:33]MH_GetDate [00:32:33]Write to MH i2c: F0 00 00 6C 16 71 [00:32:33]Write i2c OK [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: F0 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: F0 09 00 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: F0 09 00 6C 16 00 22 0F 5D 66 8D A7 02 66 0A [00:32:33]GetLastDocTimeStamp 1717374621 [00:32:33]current date 1717374754 [00:32:33]FM_GetShiftState [00:32:33]SAM_PROTO_GetShiftState [00:32:33]wFMCommunicate request_size=4 [00:32:33]MH_SAM_APDU [00:32:33]CAPDU: 80 13 01 00 [00:32:33]Write to MH i2c: E2 08 00 6D 16 80 13 01 00 00 00 00 00 00 [00:32:33]Write i2c OK [00:32:33]MH_I2C_Read... [00:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:33]Read from MH i2c: E2 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: E2 0E 00 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: E2 0E 00 6D 16 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 C1 [00:32:33]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:32:33]wFMCommunicate OK [00:32:33]SAM_PROTO_GetShiftState done [00:32:33]FM_GetShiftState done [00:32:33]opened in 1717373417 [00:32:33]opened+sec_in_day 1717459817 [00:32:33]quantity*price = 60069 [00:32:33]sum+1 = 60071 [00:32:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 6 03.06.2024 00:32 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57922 ФПД: 53405308938994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T003234&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57922&fm=53405308938994&tin=02508201610067®Number=0000000000151680&sum=60000 [00:32:34]StoreToDocumentArchive [00:32:34]shift 70 fd 57922 [00:32:34]save to /storage/0070/doc_00057922 [00:32:34]save last doc name /storage/0070/doc_00057922 to /storage/kkm_last_doc_name [00:32:34]save OK [00:32:34]Clear old archive folders... [00:32:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:32:34]tlvbuf is B6E8C1B0 [00:32:34]SAM_PROTO_ClearQueue [00:32:34]wFMCommunicate request_size=4 [00:32:34]MH_SAM_APDU [00:32:34]CAPDU: 80 09 00 00 [00:32:34]Write to MH i2c: E2 08 00 7A 16 80 09 00 00 00 00 00 00 02 [00:32:34]Write i2c OK [00:32:34]MH_I2C_Read... [00:32:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:32:34]Read from MH i2c: E2 [00:32:34]MH_I2C_Read... [00:32:34]Read from MH i2c: E2 03 00 [00:32:34]MH_I2C_Read... [00:32:34]Read from MH i2c: E2 03 00 7A 16 00 90 00 04 [00:32:34]RAPDU: 90 00 [00:32:34]wFMCommunicate OK [00:32:34]SAM_PROTO_ClearQueue done [00:32:34]KKMCreateOFDPacket [00:32:34]OFDProtocolAddRootSTLVToBuf [00:32:34]FM_MakeSignedData [00:32:34]FM_MakeSignedData [00:32:34]SAM_PROTO_SignData [00:32:34]wFMCommunicate request_size=4 [00:32:34]MH_SAM_APDU [00:32:34]CAPDU: 80 0D 01 02 [00:32:34]Write to MH i2c: E2 08 00 7B 16 80 0D 01 02 00 00 00 00 0A [00:32:34]Write i2c OK [00:32:34]MH_I2C_Read... [00:32:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:32:34]Read from MH i2c: E2 [00:32:34]MH_I2C_Read... [00:32:34]Read from MH i2c: E2 03 00 [00:32:34]MH_I2C_Read... [00:32:34]Read from MH i2c: E2 03 00 7B 16 00 90 00 05 [00:32:34]RAPDU: 90 00 [00:32:34]wFMCommunicate OK [00:32:34]wFMCommunicate request_size=255 [00:32:34]MH_SAM_APDU [00:32:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 06 00 00 00 F4 03 04 00 22 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 42 E2 00 00 35 04 06 00 30 92 64 77 [00:32:34]Write to MH i2c: E2 02 01 7C 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 06 00 00 00 F4 03 04 00 22 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 42 E2 00 00 35 04 06 00 30 92 64 77 00 00 87 [00:32:34]Write i2c OK [00:32:34]MH_I2C_Read... [00:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:35]Read from MH i2c: E2 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 03 00 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 03 00 7C 16 00 90 00 06 [00:32:35]RAPDU: 90 00 [00:32:35]wFMCommunicate OK [00:32:35]wFMCommunicate request_size=7 [00:32:35]MH_SAM_APDU [00:32:35]CAPDU: 80 0D 02 02 02 EA F2 [00:32:35]Write to MH i2c: E2 0A 00 7D 16 80 0D 02 02 02 00 EA F2 00 00 ED [00:32:35]Write i2c OK [00:32:35]MH_I2C_Read... [00:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:35]Read from MH i2c: E2 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 03 00 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 03 00 7D 16 00 90 00 07 [00:32:35]RAPDU: 90 00 [00:32:35]wFMCommunicate OK [00:32:35]wFMCommunicate request_size=4 [00:32:35]MH_SAM_APDU [00:32:35]CAPDU: 80 0D 03 02 [00:32:35]Write to MH i2c: E2 08 00 7E 16 80 0D 03 02 00 00 00 00 0F [00:32:35]Write i2c OK [00:32:35]MH_I2C_Read... [00:32:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:32:35]Read from MH i2c: E2 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 0B 00 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 0B 00 7E 16 00 13 04 C8 54 2A F4 D6 C5 90 00 FC [00:32:35]RAPDU: 13 04 C8 54 2A F4 D6 C5 90 00 [00:32:35]wFMCommunicate OK [00:32:35]SAM_PROTO_SignData done [00:32:35]FM_MakeSignedData done [00:32:35]CreateOFDProtocolMessage [00:32:35]wFMCommunicate request_size=4 [00:32:35]MH_SAM_APDU [00:32:35]CAPDU: 80 11 00 00 [00:32:35]Write to MH i2c: E2 08 00 7F 16 80 11 00 00 00 00 00 00 0F [00:32:35]Write i2c OK [00:32:35]MH_I2C_Read... [00:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:35]Read from MH i2c: E2 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 17 00 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 17 00 7F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 62 [00:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:32:35]wFMCommunicate OK [00:32:35]CreateOFDProtocolMessage done [00:32:35]OFDSenderStorePacket 57922 [00:32:35]StoreOFDPacket docnum=57922 [00:32:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 B7 62 04 01 85 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 06 00 00 00 F4 03 04 00 22 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 42 E2 00 00 35 04 06 00 30 92 64 77 EA F2 13 04 C8 54 2A F4 D6 C5 [00:32:35]CheckFolder [00:32:35]dirname=/storage/ofd_packets [00:32:35]CheckFolder done [00:32:35]ProducePacketName [00:32:35]name=ofd_packets/00057922 [00:32:35]NVStorageSaveData ofd_packets/00057922 [00:32:35]File name is /storage/ofd_packets/00057922 [00:32:35]Write 298 bytes [00:32:35]NVStorageSaveData done [00:32:35]OFDSenderStorePacket done [00:32:35]KKMCreateOFDPacket done [00:32:35]NVStorageSaveData kkm_last_timestamp [00:32:35]File name is /storage/kkm_last_timestamp [00:32:35]Write 4 bytes [00:32:35]NVStorageSaveData done [00:32:35]ExternCall_PrintAddStr [00:32:35]wPrintStart [00:32:35]Write to MH i2c: 01 00 00 80 16 96 [00:32:35]Write i2c OK [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: 01 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: 01 07 00 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: 01 07 00 80 16 00 00 00 00 00 FF 0F AB [00:32:35]RasterBufferAndPrint [00:32:35]line Счет N : (1)543264 [00:32:35]line ИНН: 02508201610067 [00:32:35]line Контрольно-Кассовый Чек [00:32:35]line ПРОДАЖА [00:32:35]line ТРК (МРК, ГНК) : 41 [00:32:35]line Товар: 2710194210 [00:32:35]line ДТ-К-5 [00:32:35]line 8.240 * 72.90 [00:32:35]line = 600.70 [00:32:35]line НДС 12% НСП 1% [00:32:35]line > о реализуемом товаре [00:32:35]line ОКРУГЛЕНИЕ: -0.70 [00:32:35]line ИТОГО: 600.00 [00:32:35]line Внесено: 600.00 [00:32:35]line СДАЧА: 0.00 [00:32:35]line НСП 1% : 5.32 [00:32:35]line НДС 12% : 63.79 [00:32:35]line Наличными: 600.00 [00:32:35]line Безнал.: 0.00 [00:32:35]line Место: АЗС № 117 "Партнер Нефть" [00:32:35]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:32:35]line СНО: Общий режим [00:32:35]line Чек 6 03.06.2024 00:32 [00:32:35]line Смена: 70 ФФД: 1.0 [00:32:35]line ЗНМ: 0300000048 [00:32:35]line РНМ: 0000000000151680 [00:32:35]line Версия ККМ: v1.0 [00:32:35]line ФМ: 0000000000959414 [00:32:35]line ФД: 57922 [00:32:35]line ФПД: 53405308938994 [00:32:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T003234&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57922&fm=53405308938994&tin=02508201610067®Number=0000000000151680&sum=60000 [00:32:35]OFD Sender: Processing packet 57922 [packets to send 50, broken 49] [00:32:35]ProducePacketName [00:32:35]name=ofd_packets/00057922 [00:32:35]OFD Sender: To server: pG, [00:32:35]CommunicateWithHost lk.salyk.kg:30040 [00:32:35]ConnectInit lk.salyk.kg [00:32:35]written 0, free lines is 4095 [00:32:35]Connected sock=10 [00:32:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0C 01 00 00 B7 62 04 01 85 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 06 00 00 00 F4 03 04 00 22 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 42 E2 00 00 35 04 06 00 30 92 64 77 EA F2 13 04 C8 54 2A F4 D6 C5 [00:32:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 AE E8 47 00 77 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 42 E2 00 00 F4 03 04 00 F2 B9 5C 66 B6 04 01 00 00 11 74 D6 F2 43 E1 35 51 [00:32:35]CommunicateWithHost err = 0 [00:32:35]CheckOFDResponse [00:32:35]1017 (14) - 77093643461234 [00:32:35]1041 (16) - 0000000000959414 [00:32:35]1040 (4) - 57922 [00:32:35]1012 (4) - 02.06.2024 18:29 [00:32:35]1206 (1) - 0 [00:32:35]OFD Sender: Remove packet 57922 [00:32:35]ProducePacketName [00:32:35]name=ofd_packets/00057922 [00:32:35]NVStorageDeleteData [00:32:36]Write to MH i2c: 01 00 00 AB 16 C1 [00:32:36]Write i2c OK [00:32:36]MH_I2C_Read... [00:32:36]Read from MH i2c: 01 [00:32:36]MH_I2C_Read... [00:32:36]Read from MH i2c: 01 07 00 [00:32:36]MH_I2C_Read... [00:32:36]Read from MH i2c: 01 07 00 AB 16 00 00 00 00 00 9E 0C 72 [00:32:36]RasterBufferAndPrint [00:32:36]line [00:32:36]line [00:32:36]line [00:32:36]line [00:32:36]line [00:32:36]written 0, free lines is 3235 [00:32:36]MH_Cut [00:32:36]Write to MH i2c: D1 01 00 B2 16 01 9A [00:32:36]Write i2c OK [00:32:36]MH_I2C_Read... [00:32:36]Read from MH i2c: D1 [00:32:36]MH_I2C_Read... [00:32:36]Read from MH i2c: D1 01 00 [00:32:36]MH_I2C_Read... [00:32:36]Read from MH i2c: D1 01 00 B2 16 00 99 [00:32:36]Write to MH i2c: 01 00 00 B3 16 C9 [00:32:36]Write i2c OK [00:32:36]MH_I2C_Read... [00:32:36]OFD Sender: No OFD packet to send [00:32:37]*** Cut start [00:32:37]*** Partial cut [00:32:37]*** CUTSNS_PIN = 1 [00:32:37]*** CUTSNS_PIN = 0 [00:32:37]*** Brake cut motor [00:32:37]Read from MH i2c: 01 [00:32:37]MH_I2C_Read... [00:32:37]*** Stop cut motor [00:32:37]*** Cut end [00:32:37]Read from MH i2c: 01 07 00 [00:32:37]MH_I2C_Read... [00:32:37]Read from MH i2c: 01 07 00 B3 16 00 00 00 00 00 FF 0F DE [00:32:37]process_action close_receipt done [00:32:37]requested_data is exist [00:32:37]produce_requested_data [00:32:37]requested_item fm.sn is exist - process it [00:32:37]wFMCommunicate request_size=4 [00:32:37]MH_SAM_APDU [00:32:37]CAPDU: 80 11 00 00 [00:32:37]Write to MH i2c: E2 08 00 B4 16 80 11 00 00 00 00 00 00 44 [00:32:37]Write i2c OK [00:32:37]MH_I2C_Read... [00:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:37]Read from MH i2c: E2 [00:32:37]MH_I2C_Read... [00:32:37]Read from MH i2c: E2 17 00 [00:32:37]MH_I2C_Read... [00:32:37]Read from MH i2c: E2 17 00 B4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 97 [00:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:32:37]wFMCommunicate OK [00:32:37]requested_item fd.num is exist - process it [00:32:37]SAM_PROTO_GetFieldsCounters [00:32:37]wFMCommunicate request_size=4 [00:32:37]MH_SAM_APDU [00:32:37]CAPDU: 80 13 00 00 [00:32:37]Write to MH i2c: E2 08 00 B5 16 80 13 00 00 00 00 00 00 47 [00:32:37]Write i2c OK [00:32:37]MH_I2C_Read... [00:32:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:37]Read from MH i2c: E2 [00:32:37]MH_I2C_Read... [00:32:37]Read from MH i2c: E2 62 00 [00:32:37]MH_I2C_Read... [00:32:37]Read from MH i2c: E2 62 00 B5 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 42 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [00:32:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 42 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:37]wFMCommunicate OK [00:32:37]SAM_PROTO_GetFieldsCounters done [00:32:37]requested_item shift.num is exist - process it [00:32:37]requested_item shift.opened is exist - process it [00:32:37]req_shift_opened [00:32:37]FM_GetShiftState [00:32:37]SAM_PROTO_GetShiftState [00:32:37]wFMCommunicate request_size=4 [00:32:37]MH_SAM_APDU [00:32:37]CAPDU: 80 13 01 00 [00:32:37]Write to MH i2c: E2 08 00 B6 16 80 13 01 00 00 00 00 00 49 [00:32:37]Write i2c OK [00:32:37]MH_I2C_Read... [00:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:37]Read from MH i2c: E2 [00:32:37]MH_I2C_Read... [00:32:37]Read from MH i2c: E2 0E 00 [00:32:37]MH_I2C_Read... [00:32:37]Read from MH i2c: E2 0E 00 B6 16 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 0A [00:32:37]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:32:37]wFMCommunicate OK [00:32:37]SAM_PROTO_GetShiftState done [00:32:37]FM_GetShiftState done [00:32:37]req_shift_opened done [00:32:37]requested_item shift.open_date is exist - process it [00:32:37]req_shift_open_date [00:32:37]req_shift_open_date done [00:32:37]produce_requested_data done [00:32:37]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57922,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:32:37]process_action_free close_receipt [00:32:37]json_value_free [00:32:37]json_value_free done [00:32:37]process_json_proto returns [00:32:37]Send response to host [00:32:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57922,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:32:37]free response buf [00:32:37]execute_script done [00:32:37]execute_script returns [00:32:37]free content buf [00:32:37]Sock 9.Close socket [00:32:37]Sock 9.Thread stoped [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:04]accept exits with 8 [00:33:04]New connection [00:33:04]New thread 3066735972 created [00:33:04]Thread 3066592612 joined [00:33:04]Waiting for new connection... [00:33:04] Sock 8.Parse request [00:33:04]Sock 8.Check first char [00:33:04]Sock 8.First char is OK [00:33:04]request: POST /json_proto HTTP/1.0 [00:33:04]Method: POST [00:33:04]URL: /json_proto [00:33:04]Method is POST - this is cgi request [00:33:04]url: /json_proto [00:33:04]query_string will be loaded in cgi processing [00:33:04]execute_cgi json_proto POST (null) [00:33:04]execute_cgi path=json_proto method=POST [00:33:04]POST find Content-Length [00:33:04]Host: 172.17.60.68:8080 [00:33:04]Content-Length: 677 [00:33:04]Content-Type: application/json [00:33:04] [00:33:04]POST finish read [00:33:04]Found Content-Length = 677 [00:33:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543266", "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.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:04]execute_script... [00: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)543266", "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.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:04]POST & json_proto [00:33:04]process_json_proto [00:33:04]json parsed OK: [00:33:04]protocol is kg_v1.0 [00:33:04]action value=close_receipt [00:33:04]process_action close_receipt [00:33:04]cmd_close_receipt [00:33:04]MH_GetDate [00:33:04]Write to MH i2c: F0 00 00 B7 16 BC [00:33:04]Write i2c OK [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: F0 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: F0 09 00 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: F0 09 00 B7 16 00 41 0F 5D 66 8D A7 02 66 74 [00:33:04]GetLastDocTimeStamp 1717374754 [00:33:04]current date 1717374785 [00:33:04]FM_GetShiftState [00:33:04]SAM_PROTO_GetShiftState [00:33:04]wFMCommunicate request_size=4 [00:33:04]MH_SAM_APDU [00:33:04]CAPDU: 80 13 01 00 [00:33:04]Write to MH i2c: E2 08 00 B8 16 80 13 01 00 00 00 00 00 4B [00:33:04]Write i2c OK [00:33:04]MH_I2C_Read... [00:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:04]Read from MH i2c: E2 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: E2 0E 00 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: E2 0E 00 B8 16 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 0C [00:33:04]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:33:04]wFMCommunicate OK [00:33:04]SAM_PROTO_GetShiftState done [00:33:04]FM_GetShiftState done [00:33:04]opened in 1717373417 [00:33:04]opened+sec_in_day 1717459817 [00:33:04]quantity*price = 40006 [00:33:04]sum+1 = 40007 [00:33:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 7 03.06.2024 00:33 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57923 ФПД: 127509383120999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T003305&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57923&fm=127509383120999&tin=02508201610067®Number=0000000000151680&sum=40000 [00:33:05]StoreToDocumentArchive [00:33:05]shift 70 fd 57923 [00:33:05]save to /storage/0070/doc_00057923 [00:33:05]save last doc name /storage/0070/doc_00057923 to /storage/kkm_last_doc_name [00:33:05]save OK [00:33:05]Clear old archive folders... [00:33:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:33:05]tlvbuf is B6E8C9A0 [00:33:05]SAM_PROTO_ClearQueue [00:33:05]wFMCommunicate request_size=4 [00:33:05]MH_SAM_APDU [00:33:05]CAPDU: 80 09 00 00 [00:33:05]Write to MH i2c: E2 08 00 C5 16 80 09 00 00 00 00 00 00 4D [00:33:05]Write i2c OK [00:33:05]MH_I2C_Read... [00:33:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:05]Read from MH i2c: E2 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 03 00 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 03 00 C5 16 00 90 00 4F [00:33:05]RAPDU: 90 00 [00:33:05]wFMCommunicate OK [00:33:05]SAM_PROTO_ClearQueue done [00:33:05]KKMCreateOFDPacket [00:33:05]OFDProtocolAddRootSTLVToBuf [00:33:05]FM_MakeSignedData [00:33:05]FM_MakeSignedData [00:33:05]SAM_PROTO_SignData [00:33:05]wFMCommunicate request_size=4 [00:33:05]MH_SAM_APDU [00:33:05]CAPDU: 80 0D 01 02 [00:33:05]Write to MH i2c: E2 08 00 C6 16 80 0D 01 02 00 00 00 00 55 [00:33:05]Write i2c OK [00:33:05]MH_I2C_Read... [00:33:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:05]Read from MH i2c: E2 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 03 00 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 03 00 C6 16 00 90 00 50 [00:33:05]RAPDU: 90 00 [00:33:05]wFMCommunicate OK [00:33:05]wFMCommunicate request_size=255 [00:33:05]MH_SAM_APDU [00: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 41 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 43 E2 00 00 35 04 06 00 73 [00:33:05]Write to MH i2c: E2 02 01 C7 16 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 41 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 43 E2 00 00 35 04 06 00 73 00 00 A7 [00:33:05]Write i2c OK [00:33:05]MH_I2C_Read... [00:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:06]Read from MH i2c: E2 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 03 00 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 03 00 C7 16 00 90 00 51 [00:33:06]RAPDU: 90 00 [00:33:06]wFMCommunicate OK [00:33:06]wFMCommunicate request_size=10 [00:33:06]MH_SAM_APDU [00:33:06]CAPDU: 80 0D 02 02 05 F8 17 7C 88 67 [00:33:06]Write to MH i2c: E2 0D 00 C8 16 80 0D 02 02 05 00 F8 17 7C 88 67 00 00 DC [00:33:06]Write i2c OK [00:33:06]MH_I2C_Read... [00:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:06]Read from MH i2c: E2 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 03 00 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 03 00 C8 16 00 90 00 52 [00:33:06]RAPDU: 90 00 [00:33:06]wFMCommunicate OK [00:33:06]wFMCommunicate request_size=4 [00:33:06]MH_SAM_APDU [00:33:06]CAPDU: 80 0D 03 02 [00:33:06]Write to MH i2c: E2 08 00 C9 16 80 0D 03 02 00 00 00 00 5A [00:33:06]Write i2c OK [00:33:06]MH_I2C_Read... [00:33:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:06]Read from MH i2c: E2 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 0B 00 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 0B 00 C9 16 00 2E D3 27 89 A5 FD 80 A1 90 00 CF [00:33:06]RAPDU: 2E D3 27 89 A5 FD 80 A1 90 00 [00:33:06]wFMCommunicate OK [00:33:06]SAM_PROTO_SignData done [00:33:06]FM_MakeSignedData done [00:33:06]CreateOFDProtocolMessage [00:33:06]wFMCommunicate request_size=4 [00:33:06]MH_SAM_APDU [00:33:06]CAPDU: 80 11 00 00 [00:33:06]Write to MH i2c: E2 08 00 CA 16 80 11 00 00 00 00 00 00 5A [00:33:06]Write i2c OK [00:33:06]MH_I2C_Read... [00:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:06]Read from MH i2c: E2 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 17 00 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 17 00 CA 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 AD [00:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:33:06]wFMCommunicate OK [00:33:06]CreateOFDProtocolMessage done [00:33:06]OFDSenderStorePacket 57923 [00:33:06]StoreOFDPacket docnum=57923 [00:33:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 DA 28 07 01 7C 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 41 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 43 E2 00 00 35 04 06 00 73 F8 17 7C 88 67 2E D3 27 89 A5 FD 80 A1 [00:33:06]CheckFolder [00:33:06]dirname=/storage/ofd_packets [00:33:06]CheckFolder done [00:33:06]ProducePacketName [00:33:06]name=ofd_packets/00057923 [00:33:06]NVStorageSaveData ofd_packets/00057923 [00:33:06]File name is /storage/ofd_packets/00057923 [00:33:06]Write 301 bytes [00:33:06]NVStorageSaveData done [00:33:06]OFDSenderStorePacket done [00:33:06]KKMCreateOFDPacket done [00:33:06]NVStorageSaveData kkm_last_timestamp [00:33:06]File name is /storage/kkm_last_timestamp [00:33:06]Write 4 bytes [00:33:06]NVStorageSaveData done [00:33:06]ExternCall_PrintAddStr [00:33:06]wPrintStart [00:33:06]Write to MH i2c: 01 00 00 CB 16 E1 [00:33:06]Write i2c OK [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: 01 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: 01 07 00 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: 01 07 00 CB 16 00 00 00 00 00 FF 0F F6 [00:33:06]RasterBufferAndPrint [00:33:06]line Счет N : (1)543266 [00:33:06]line ИНН: 02508201610067 [00:33:06]line Контрольно-Кассовый Чек [00:33:06]line ПРОДАЖА [00:33:06]line ТРК (МРК, ГНК) : 12 [00:33:06]line Товар: 2710124130 [00:33:06]line Аи-92-К-5 [00:33:06]line 5.980 * 66.90 [00:33:06]line = 400.06 [00:33:06]line НДС 12% НСП 1% [00:33:06]line > о реализуемом товаре [00:33:06]line ОКРУГЛЕНИЕ: -0.06 [00:33:06]line ИТОГО: 400.00 [00:33:06]line Внесено: 400.00 [00:33:06]line СДАЧА: 0.00 [00:33:06]line НСП 1% : 3.54 [00:33:06]line НДС 12% : 42.48 [00:33:06]line Наличными: 400.00 [00:33:06]line Безнал.: 0.00 [00:33:06]line Место: АЗС № 117 "Партнер Нефть" [00:33:06]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:33:06]line СНО: Общий режим [00:33:06]line Чек 7 03.06.2024 00:33 [00:33:06]line Смена: 70 ФФД: 1.0 [00:33:06]line ЗНМ: 0300000048 [00:33:06]line РНМ: 0000000000151680 [00:33:06]line Версия ККМ: v1.0 [00:33:06]line ФМ: 0000000000959414 [00:33:06]line ФД: 57923 [00:33:06]line ФПД: 127509383120999 [00:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T003305&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57923&fm=127509383120999&tin=02508201610067®Number=0000000000151680&sum=40000 [00:33:06]OFD Sender: Processing packet 57923 [packets to send 50, broken 49] [00:33:06]ProducePacketName [00:33:06]name=ofd_packets/00057923 [00:33:06]OFD Sender: To server: pG, [00:33:06]CommunicateWithHost lk.salyk.kg:30040 [00:33:06]ConnectInit lk.salyk.kg [00:33:06]written 0, free lines is 4095 [00:33:06]Connected sock=11 [00:33:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 DA 28 07 01 7C 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 41 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 43 E2 00 00 35 04 06 00 73 F8 17 7C 88 67 2E D3 27 89 A5 FD 80 A1 [00:33:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 53 9E 47 00 B4 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 43 E2 00 00 F4 03 04 00 11 BA 5C 66 B6 04 01 00 00 8F DF AD EF 60 91 3F 2F [00:33:06]CommunicateWithHost err = 0 [00:33:06]CheckOFDResponse [00:33:06]1017 (14) - 77093643461234 [00:33:06]1041 (16) - 0000000000959414 [00:33:06]1040 (4) - 57923 [00:33:06]1012 (4) - 02.06.2024 18:29 [00:33:06]1206 (1) - 0 [00:33:06]OFD Sender: Remove packet 57923 [00:33:06]ProducePacketName [00:33:06]name=ofd_packets/00057923 [00:33:06]NVStorageDeleteData [00:33:07]Write to MH i2c: 01 00 00 F6 16 0C [00:33:07]Write i2c OK [00:33:07]MH_I2C_Read... [00:33:07]Read from MH i2c: 01 [00:33:07]MH_I2C_Read... [00:33:07]Read from MH i2c: 01 07 00 [00:33:07]MH_I2C_Read... [00:33:07]Read from MH i2c: 01 07 00 F6 16 00 00 00 00 00 9D 0C BC [00:33:07]RasterBufferAndPrint [00:33:07]line [00:33:07]line [00:33:07]line [00:33:07]line [00:33:07]line [00:33:07]written 0, free lines is 3233 [00:33:07]MH_Cut [00:33:07]Write to MH i2c: D1 01 00 FD 16 01 E5 [00:33:07]Write i2c OK [00:33:07]MH_I2C_Read... [00:33:07]Read from MH i2c: D1 [00:33:07]MH_I2C_Read... [00:33:07]Read from MH i2c: D1 01 00 [00:33:07]MH_I2C_Read... [00:33:07]Read from MH i2c: D1 01 00 FD 16 00 E4 [00:33:07]Write to MH i2c: 01 00 00 FE 16 14 [00:33:07]Write i2c OK [00:33:07]MH_I2C_Read... [00:33:07]OFD Sender: No OFD packet to send [00:33:07]*** Cut start [00:33:07]*** Partial cut [00:33:07]*** CUTSNS_PIN = 1 [00:33:07]*** CUTSNS_PIN = 0 [00:33:08]*** Brake cut motor [00:33:08]Read from MH i2c: 01 [00:33:08]MH_I2C_Read... [00:33:08]*** Stop cut motor [00:33:08]*** Cut end [00:33:08]Read from MH i2c: 01 07 00 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: 01 07 00 FE 16 00 00 00 00 00 FF 0F 29 [00:33:08]process_action close_receipt done [00:33:08]requested_data is exist [00:33:08]produce_requested_data [00:33:08]requested_item fm.sn is exist - process it [00:33:08]wFMCommunicate request_size=4 [00:33:08]MH_SAM_APDU [00:33:08]CAPDU: 80 11 00 00 [00:33:08]Write to MH i2c: E2 08 00 FF 16 80 11 00 00 00 00 00 00 8F [00:33:08]Write i2c OK [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 [00:33:08]MH_I2C_Read... [00:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:08]Read from MH i2c: E2 17 00 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 17 00 FF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 E2 [00:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:33:08]wFMCommunicate OK [00:33:08]requested_item fd.num is exist - process it [00:33:08]SAM_PROTO_GetFieldsCounters [00:33:08]wFMCommunicate request_size=4 [00:33:08]MH_SAM_APDU [00:33:08]CAPDU: 80 13 00 00 [00:33:08]Write to MH i2c: E2 08 00 00 17 80 13 00 00 00 00 00 00 93 [00:33:08]Write i2c OK [00:33:08]MH_I2C_Read... [00:33:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:08]Read from MH i2c: E2 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 62 00 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 62 00 00 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 43 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [00:33:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 43 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:08]wFMCommunicate OK [00:33:08]SAM_PROTO_GetFieldsCounters done [00:33:08]requested_item shift.num is exist - process it [00:33:08]requested_item shift.opened is exist - process it [00:33:08]req_shift_opened [00:33:08]FM_GetShiftState [00:33:08]SAM_PROTO_GetShiftState [00:33:08]wFMCommunicate request_size=4 [00:33:08]MH_SAM_APDU [00:33:08]CAPDU: 80 13 01 00 [00:33:08]Write to MH i2c: E2 08 00 01 17 80 13 01 00 00 00 00 00 95 [00:33:08]Write i2c OK [00:33:08]MH_I2C_Read... [00:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:08]Read from MH i2c: E2 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 0E 00 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 0E 00 01 17 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 56 [00:33:08]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:33:08]wFMCommunicate OK [00:33:08]SAM_PROTO_GetShiftState done [00:33:08]FM_GetShiftState done [00:33:08]req_shift_opened done [00:33:08]requested_item shift.open_date is exist - process it [00:33:08]req_shift_open_date [00:33:08]req_shift_open_date done [00:33:08]produce_requested_data done [00:33:08]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57923,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:33:08]process_action_free close_receipt [00:33:08]json_value_free [00:33:08]json_value_free done [00:33:08]process_json_proto returns [00:33:08]Send response to host [00:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57923,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:33:08]free response buf [00:33:08]execute_script done [00:33:08]execute_script returns [00:33:08]free content buf [00:33:08]Sock 8.Close socket [00:33:08]Sock 8.Thread stoped [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:34:57]accept exits with 9 [00:34:57]New connection [00:34:57]New thread 3066592612 created [00:34:57]Thread 3066735972 joined [00:34:57]Waiting for new connection... [00:34:57] Sock 9.Parse request [00:34:57]Sock 9.Check first char [00:34:57]Sock 9.First char is OK [00:34:57]request: POST /json_proto HTTP/1.0 [00:34:57]Method: POST [00:34:57]URL: /json_proto [00:34:57]Method is POST - this is cgi request [00:34:57]url: /json_proto [00:34:57]query_string will be loaded in cgi processing [00:34:57]execute_cgi json_proto POST (null) [00:34:57]execute_cgi path=json_proto method=POST [00:34:57]POST find Content-Length [00:34:57]Host: 172.17.60.68:8080 [00:34:57]Content-Length: 990 [00:34:57]Content-Type: application/json [00:34:57] [00:34:57]POST finish read [00:34:57]Found Content-Length = 990 [00:34:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.90, "quantity" : 44.250, "sum" : 1500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 44.25 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:57]execute_script... [00:34: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)543265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.90, "quantity" : 44.250, "sum" : 1500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 44.25 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:57]POST & json_proto [00:34:57]process_json_proto [00:34:57]json parsed OK: [00:34:57]protocol is kg_v1.0 [00:34:57]action value=close_receipt [00:34:57]process_action close_receipt [00:34:57]cmd_close_receipt [00:34:57]MH_GetDate [00:34:57]Write to MH i2c: F0 00 00 02 17 08 [00:34:57]Write i2c OK [00:34:57]MH_I2C_Read... [00:34:57]Read from MH i2c: F0 [00:34:57]MH_I2C_Read... [00:34:57]Read from MH i2c: F0 09 00 [00:34:57]MH_I2C_Read... [00:34:57]Read from MH i2c: F0 09 00 02 17 00 B3 0F 5D 66 8D A7 02 66 32 [00:34:57]GetLastDocTimeStamp 1717374785 [00:34:57]current date 1717374899 [00:34:57]FM_GetShiftState [00:34:57]SAM_PROTO_GetShiftState [00:34:57]wFMCommunicate request_size=4 [00:34:57]MH_SAM_APDU [00:34:57]CAPDU: 80 13 01 00 [00:34:57]Write to MH i2c: E2 08 00 03 17 80 13 01 00 00 00 00 00 97 [00:34:57]Write i2c OK [00:34:57]MH_I2C_Read... [00:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:57]Read from MH i2c: E2 [00:34:57]MH_I2C_Read... [00:34:57]Read from MH i2c: E2 0E 00 [00:34:57]MH_I2C_Read... [00:34:57]Read from MH i2c: E2 0E 00 03 17 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 58 [00:34:57]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:34:57]wFMCommunicate OK [00:34:57]SAM_PROTO_GetShiftState done [00:34:57]FM_GetShiftState done [00:34:57]opened in 1717373417 [00:34:57]opened+sec_in_day 1717459817 [00:34:57]quantity*price = 150007 [00:34:57]sum+1 = 150009 [00:34:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 8 03.06.2024 00:34 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Дисконтная программа СУГ номер 117 сэкономлено 44.25 сом ФМ: 0000000000959414 ФД: 57924 ФПД: 100970839654799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T003459&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57924&fm=100970839654799&tin=02508201610067®Number=0000000000151680&sum=150000 [00:34:59]StoreToDocumentArchive [00:34:59]shift 70 fd 57924 [00:34:59]save to /storage/0070/doc_00057924 [00:34:59]save last doc name /storage/0070/doc_00057924 to /storage/kkm_last_doc_name [00:34:59]save OK [00:34:59]Clear old archive folders... [00:34:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:34:59]tlvbuf is 01B1D130 [00:34:59]SAM_PROTO_ClearQueue [00:34:59]wFMCommunicate request_size=4 [00:34:59]MH_SAM_APDU [00:34:59]CAPDU: 80 09 00 00 [00:34:59]Write to MH i2c: E2 08 00 10 17 80 09 00 00 00 00 00 00 99 [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:34:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:34:59]Read from MH i2c: E2 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 03 00 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 03 00 10 17 00 90 00 9B [00:34:59]RAPDU: 90 00 [00:34:59]wFMCommunicate OK [00:34:59]SAM_PROTO_ClearQueue done [00:34:59]KKMCreateOFDPacket [00:34:59]OFDProtocolAddRootSTLVToBuf [00:34:59]FM_MakeSignedData [00:34:59]FM_MakeSignedData [00:34:59]SAM_PROTO_SignData [00:34:59]wFMCommunicate request_size=4 [00:34:59]MH_SAM_APDU [00:34:59]CAPDU: 80 0D 01 02 [00:34:59]Write to MH i2c: E2 08 00 11 17 80 0D 01 02 00 00 00 00 A1 [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:34:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:34:59]Read from MH i2c: E2 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 03 00 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 03 00 11 17 00 90 00 9C [00:34:59]RAPDU: 90 00 [00:34:59]wFMCommunicate OK [00:34:59]wFMCommunicate request_size=255 [00:34:59]MH_SAM_APDU [00:34:59]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 F8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 B3 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 44 E2 00 00 35 04 06 00 5B D5 [00:34:59]Write to MH i2c: E2 02 01 12 17 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 F8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 B3 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 44 E2 00 00 35 04 06 00 5B D5 00 00 AD [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:59]Read from MH i2c: E2 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 03 00 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 03 00 12 17 00 90 00 9D [00:34:59]RAPDU: 90 00 [00:34:59]wFMCommunicate OK [00:34:59]wFMCommunicate request_size=9 [00:34:59]MH_SAM_APDU [00:34:59]CAPDU: 80 0D 02 02 04 1B 07 C1 8F [00:34:59]Write to MH i2c: E2 0C 00 13 17 80 0D 02 02 04 00 1B 07 C1 8F 00 00 1E [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:59]Read from MH i2c: E2 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 03 00 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 03 00 13 17 00 90 00 9E [00:34:59]RAPDU: 90 00 [00:34:59]wFMCommunicate OK [00:34:59]wFMCommunicate request_size=4 [00:34:59]MH_SAM_APDU [00:34:59]CAPDU: 80 0D 03 02 [00:34:59]Write to MH i2c: E2 08 00 14 17 80 0D 03 02 00 00 00 00 A6 [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:34:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:34:59]Read from MH i2c: E2 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 0B 00 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 0B 00 14 17 00 FB 4C A1 75 F5 90 13 18 90 00 B4 [00:34:59]RAPDU: FB 4C A1 75 F5 90 13 18 90 00 [00:34:59]wFMCommunicate OK [00:34:59]SAM_PROTO_SignData done [00:34:59]FM_MakeSignedData done [00:34:59]CreateOFDProtocolMessage [00:34:59]wFMCommunicate request_size=4 [00:34:59]MH_SAM_APDU [00:34:59]CAPDU: 80 11 00 00 [00:34:59]Write to MH i2c: E2 08 00 15 17 80 11 00 00 00 00 00 00 A6 [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:59]Read from MH i2c: E2 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 17 00 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 17 00 15 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 F9 [00:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:34:59]wFMCommunicate OK [00:34:59]CreateOFDProtocolMessage done [00:34:59]OFDSenderStorePacket 57924 [00:34:59]StoreOFDPacket docnum=57924 [00:34:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 15 07 06 01 C3 BC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 F8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 B3 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 44 E2 00 00 35 04 06 00 5B D5 1B 07 C1 8F FB 4C A1 75 F5 90 13 18 [00:34:59]CheckFolder [00:34:59]dirname=/storage/ofd_packets [00:34:59]CheckFolder done [00:34:59]ProducePacketName [00:34:59]name=ofd_packets/00057924 [00:34:59]NVStorageSaveData ofd_packets/00057924 [00:34:59]File name is /storage/ofd_packets/00057924 [00:34:59]Write 300 bytes [00:34:59]NVStorageSaveData done [00:34:59]OFDSenderStorePacket done [00:34:59]KKMCreateOFDPacket done [00:34:59]NVStorageSaveData kkm_last_timestamp [00:34:59]File name is /storage/kkm_last_timestamp [00:34:59]Write 4 bytes [00:34:59]NVStorageSaveData done [00:34:59]ExternCall_PrintAddStr [00:34:59]wPrintStart [00:34:59]Write to MH i2c: 01 00 00 16 17 2D [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: 01 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: 01 07 00 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: 01 07 00 16 17 00 00 00 00 00 FF 0F 42 [00:34:59]RasterBufferAndPrint [00:34:59]line Счет N : (1)543265 [00:34:59]line ИНН: 02508201610067 [00:34:59]line Контрольно-Кассовый Чек [00:34:59]line ПРОДАЖА [00:34:59]line ТРК (МРК, ГНК) : 71 [00:34:59]line Товар: 2711190000 [00:34:59]line ГАЗ-К-5 [00:34:59]line 44.250 * 33.90 [00:34:59]line = 1500.08 [00:34:59]line НДС 12% НСП 1% [00:34:59]line > о реализуемом товаре [00:34:59]line ОКРУГЛЕНИЕ: -0.08 [00:34:59]line ИТОГО: 1500.00 [00:34:59]line Внесено: 1500.00 [00:34:59]line СДАЧА: 0.00 [00:34:59]line НСП 1% : 13.27 [00:34:59]line НДС 12% : 159.30 [00:34:59]line Наличными: 1500.00 [00:34:59]line Безнал.: 0.00 [00:34:59]line Место: АЗС № 117 "Партнер Нефть" [00:34:59]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:34:59]line СНО: Общий режим [00:34:59]line Чек 8 03.06.2024 00:34 [00:34:59]line Смена: 70 ФФД: 1.0 [00:34:59]line ЗНМ: 0300000048 [00:34:59]line РНМ: 0000000000151680 [00:34:59]line Версия ККМ: v1.0 [00:34:59]line [00:34:59]line Дисконтная программа [00:34:59]line СУГ [00:34:59]line номер 117 [00:34:59]line сэкономлено 44.25 сом [00:34:59]line ФМ: 0000000000959414 [00:34:59]line ФД: 57924 [00:34:59]line ФПД: 100970839654799 [00:34:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T003459&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57924&fm=100970839654799&tin=02508201610067®Number=0000000000151680&sum=150000 [00:34:59]OFD Sender: Processing packet 57924 [packets to send 50, broken 49] [00:34:59]ProducePacketName [00:34:59]name=ofd_packets/00057924 [00:34:59]OFD Sender: To server: pG, [00:34:59]CommunicateWithHost lk.salyk.kg:30040 [00:34:59]ConnectInit lk.salyk.kg [00:34:59]written 0, free lines is 4095 [00:35:00]Connected sock=10 [00:35:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 15 07 06 01 C3 BC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 3E 0D 00 00 00 00 13 04 06 00 F8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 B3 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 44 E2 00 00 35 04 06 00 5B D5 1B 07 C1 8F FB 4C A1 75 F5 90 13 18 [00:35:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 34 C0 47 00 4F 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 44 E2 00 00 F4 03 04 00 82 BA 5C 66 B6 04 01 00 00 E2 D9 E5 92 F9 90 DD 4F [00:35:00]CommunicateWithHost err = 0 [00:35:00]CheckOFDResponse [00:35:00]1017 (14) - 77093643461234 [00:35:00]1041 (16) - 0000000000959414 [00:35:00]1040 (4) - 57924 [00:35:00]1012 (4) - 02.06.2024 18:31 [00:35:00]1206 (1) - 0 [00:35:00]OFD Sender: Remove packet 57924 [00:35:00]ProducePacketName [00:35:00]name=ofd_packets/00057924 [00:35:00]NVStorageDeleteData [00:35:00]Write to MH i2c: 01 00 00 46 17 5D [00:35:00]Write i2c OK [00:35:00]MH_I2C_Read... [00:35:00]Read from MH i2c: 01 [00:35:00]MH_I2C_Read... [00:35:00]Read from MH i2c: 01 07 00 [00:35:00]MH_I2C_Read... [00:35:00]Read from MH i2c: 01 07 00 46 17 00 00 00 00 00 3E 0C AE [00:35:00]RasterBufferAndPrint [00:35:00]line [00:35:00]line [00:35:00]line [00:35:00]line [00:35:00]line [00:35:00]written 0, free lines is 3138 [00:35:00]MH_Cut [00:35:00]Write to MH i2c: D1 01 00 4D 17 01 36 [00:35:00]Write i2c OK [00:35:00]MH_I2C_Read... [00:35:00]Read from MH i2c: D1 [00:35:00]MH_I2C_Read... [00:35:00]Read from MH i2c: D1 01 00 [00:35:00]MH_I2C_Read... [00:35:00]Read from MH i2c: D1 01 00 4D 17 00 35 [00:35:00]Write to MH i2c: 01 00 00 4E 17 65 [00:35:00]Write i2c OK [00:35:00]MH_I2C_Read... [00:35:00]OFD Sender: No OFD packet to send [00:35:01]*** Cut start [00:35:01]*** Partial cut [00:35:01]*** CUTSNS_PIN = 1 [00:35:01]*** CUTSNS_PIN = 0 [00:35:01]*** Brake cut motor [00:35:02]Read from MH i2c: 01 [00:35:02]MH_I2C_Read... [00:35:02]*** Stop cut motor [00:35:02]*** Cut end [00:35:02]Read from MH i2c: 01 07 00 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: 01 07 00 4E 17 00 00 00 00 00 FF 0F 7A [00:35:02]process_action close_receipt done [00:35:02]requested_data is exist [00:35:02]produce_requested_data [00:35:02]requested_item fm.sn is exist - process it [00:35:02]wFMCommunicate request_size=4 [00:35:02]MH_SAM_APDU [00:35:02]CAPDU: 80 11 00 00 [00:35:02]Write to MH i2c: E2 08 00 4F 17 80 11 00 00 00 00 00 00 E0 [00:35:02]Write i2c OK [00:35:02]MH_I2C_Read... [00:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:02]Read from MH i2c: E2 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: E2 17 00 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: E2 17 00 4F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 33 [00:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:35:02]wFMCommunicate OK [00:35:02]requested_item fd.num is exist - process it [00:35:02]SAM_PROTO_GetFieldsCounters [00:35:02]wFMCommunicate request_size=4 [00:35:02]MH_SAM_APDU [00:35:02]CAPDU: 80 13 00 00 [00:35:02]Write to MH i2c: E2 08 00 50 17 80 13 00 00 00 00 00 00 E3 [00:35:02]Write i2c OK [00:35:02]MH_I2C_Read... [00:35:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:02]Read from MH i2c: E2 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: E2 62 00 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: E2 62 00 50 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 44 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [00:35:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 44 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:02]wFMCommunicate OK [00:35:02]SAM_PROTO_GetFieldsCounters done [00:35:02]requested_item shift.num is exist - process it [00:35:02]requested_item shift.opened is exist - process it [00:35:02]req_shift_opened [00:35:02]FM_GetShiftState [00:35:02]SAM_PROTO_GetShiftState [00:35:02]wFMCommunicate request_size=4 [00:35:02]MH_SAM_APDU [00:35:02]CAPDU: 80 13 01 00 [00:35:02]Write to MH i2c: E2 08 00 51 17 80 13 01 00 00 00 00 00 E5 [00:35:02]Write i2c OK [00:35:02]MH_I2C_Read... [00:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:02]Read from MH i2c: E2 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: E2 0E 00 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: E2 0E 00 51 17 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 A6 [00:35:02]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:35:02]wFMCommunicate OK [00:35:02]SAM_PROTO_GetShiftState done [00:35:02]FM_GetShiftState done [00:35:02]req_shift_opened done [00:35:02]requested_item shift.open_date is exist - process it [00:35:02]req_shift_open_date [00:35:02]req_shift_open_date done [00:35:02]produce_requested_data done [00:35:02]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57924,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:35:02]process_action_free close_receipt [00:35:02]json_value_free [00:35:02]json_value_free done [00:35:02]process_json_proto returns [00:35:02]Send response to host [00:35:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57924,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:35:02]free response buf [00:35:02]execute_script done [00:35:02]execute_script returns [00:35:02]free content buf [00:35:02]Sock 9.Close socket [00:35:02]Sock 9.Thread stoped [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]accept exits with 8 [00:35:20]New connection [00:35:20]New thread 3066735972 created [00:35:20]Thread 3066592612 joined [00:35:20]Waiting for new connection... [00:35:20] Sock 8.Parse request [00:35:20]Sock 8.Check first char [00:35:20]Sock 8.First char is OK [00:35:20]request: POST /json_proto HTTP/1.0 [00:35:20]Method: POST [00:35:20]URL: /json_proto [00:35:20]Method is POST - this is cgi request [00:35:20]url: /json_proto [00:35:20]query_string will be loaded in cgi processing [00:35:20]execute_cgi json_proto POST (null) [00:35:20]execute_cgi path=json_proto method=POST [00:35:20]POST find Content-Length [00:35:20]Host: 172.17.60.68:8080 [00:35:20]Content-Length: 670 [00:35:20]Content-Type: application/json [00:35:20] [00:35:20]POST finish read [00:35:20]Found Content-Length = 670 [00:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 2.950, "sum" : 200.31, "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" ] } } [00:35:20]execute_script... [00:35:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 2.950, "sum" : 200.31, "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" ] } } [00:35:20]POST & json_proto [00:35:20]process_json_proto [00:35:20]json parsed OK: [00:35:20]protocol is kg_v1.0 [00:35:20]action value=close_receipt [00:35:20]process_action close_receipt [00:35:20]cmd_close_receipt [00:35:20]MH_GetDate [00:35:20]Write to MH i2c: F0 00 00 52 17 58 [00:35:20]Write i2c OK [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: F0 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: F0 09 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: F0 09 00 52 17 00 C9 0F 5D 66 8D A7 02 66 98 [00:35:20]GetLastDocTimeStamp 1717374899 [00:35:20]current date 1717374921 [00:35:20]FM_GetShiftState [00:35:20]SAM_PROTO_GetShiftState [00:35:20]wFMCommunicate request_size=4 [00:35:20]MH_SAM_APDU [00:35:20]CAPDU: 80 13 01 00 [00:35:20]Write to MH i2c: E2 08 00 53 17 80 13 01 00 00 00 00 00 E7 [00:35:20]Write i2c OK [00:35:20]MH_I2C_Read... [00:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:20]Read from MH i2c: E2 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 0E 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 0E 00 53 17 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 A8 [00:35:20]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:35:20]wFMCommunicate OK [00:35:20]SAM_PROTO_GetShiftState done [00:35:20]FM_GetShiftState done [00:35:20]opened in 1717373417 [00:35:20]opened+sec_in_day 1717459817 [00:35:20]quantity*price = 20030 [00:35:20]sum+1 = 20032 [00:35:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 9 03.06.2024 00:35 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57925 ФПД: 69409335133069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T003521&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57925&fm=69409335133069&tin=02508201610067®Number=0000000000151680&sum=20000 [00:35:21]StoreToDocumentArchive [00:35:21]shift 70 fd 57925 [00:35:21]save to /storage/0070/doc_00057925 [00:35:21]save last doc name /storage/0070/doc_00057925 to /storage/kkm_last_doc_name [00:35:21]save OK [00:35:21]Clear old archive folders... [00:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:35:21]tlvbuf is B6E73B50 [00:35:21]SAM_PROTO_ClearQueue [00:35:21]wFMCommunicate request_size=4 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 09 00 00 [00:35:21]Write to MH i2c: E2 08 00 60 17 80 09 00 00 00 00 00 00 E9 [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 60 17 00 90 00 EB [00:35:21]RAPDU: 90 00 [00:35:21]wFMCommunicate OK [00:35:21]SAM_PROTO_ClearQueue done [00:35:21]KKMCreateOFDPacket [00:35:21]OFDProtocolAddRootSTLVToBuf [00:35:21]FM_MakeSignedData [00:35:21]FM_MakeSignedData [00:35:21]SAM_PROTO_SignData [00:35:21]wFMCommunicate request_size=4 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 0D 01 02 [00:35:21]Write to MH i2c: E2 08 00 61 17 80 0D 01 02 00 00 00 00 F1 [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 61 17 00 90 00 EC [00:35:21]RAPDU: 90 00 [00:35:21]wFMCommunicate OK [00:35:21]wFMCommunicate request_size=255 [00:35:21]MH_SAM_APDU [00:35: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 86 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 4F 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 09 00 00 00 F4 03 04 00 C9 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 45 E2 00 00 35 04 06 00 [00:35:21]Write to MH i2c: E2 02 01 62 17 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 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 4F 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 09 00 00 00 F4 03 04 00 C9 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 45 E2 00 00 35 04 06 00 00 00 47 [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 62 17 00 90 00 ED [00:35:21]RAPDU: 90 00 [00:35:21]wFMCommunicate OK [00:35:21]wFMCommunicate request_size=11 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 0D 02 02 06 3F 20 9E C3 C3 8D [00:35:21]Write to MH i2c: E2 0E 00 63 17 80 0D 02 02 06 00 3F 20 9E C3 C3 8D 00 00 10 [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 63 17 00 90 00 EE [00:35:21]RAPDU: 90 00 [00:35:21]wFMCommunicate OK [00:35:21]wFMCommunicate request_size=4 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 0D 03 02 [00:35:21]Write to MH i2c: E2 08 00 64 17 80 0D 03 02 00 00 00 00 F6 [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 0B 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 0B 00 64 17 00 E4 7B 21 3C BC 72 BE BD 90 00 5C [00:35:21]RAPDU: E4 7B 21 3C BC 72 BE BD 90 00 [00:35:21]wFMCommunicate OK [00:35:21]SAM_PROTO_SignData done [00:35:21]FM_MakeSignedData done [00:35:21]CreateOFDProtocolMessage [00:35:21]wFMCommunicate request_size=4 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 11 00 00 [00:35:21]Write to MH i2c: E2 08 00 65 17 80 11 00 00 00 00 00 00 F6 [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 17 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 17 00 65 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 49 [00:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:35:21]wFMCommunicate OK [00:35:21]CreateOFDProtocolMessage done [00:35:21]OFDSenderStorePacket 57925 [00:35:21]StoreOFDPacket docnum=57925 [00:35:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 29 EA 08 01 A3 62 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 4F 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 09 00 00 00 F4 03 04 00 C9 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 45 E2 00 00 35 04 06 00 3F 20 9E C3 C3 8D E4 7B 21 3C BC 72 BE BD [00:35:21]CheckFolder [00:35:21]dirname=/storage/ofd_packets [00:35:21]CheckFolder done [00:35:21]ProducePacketName [00:35:21]name=ofd_packets/00057925 [00:35:21]NVStorageSaveData ofd_packets/00057925 [00:35:21]File name is /storage/ofd_packets/00057925 [00:35:21]Write 302 bytes [00:35:21]NVStorageSaveData done [00:35:21]OFDSenderStorePacket done [00:35:21]KKMCreateOFDPacket done [00:35:21]NVStorageSaveData kkm_last_timestamp [00:35:21]File name is /storage/kkm_last_timestamp [00:35:21]Write 4 bytes [00:35:21]NVStorageSaveData done [00:35:21]ExternCall_PrintAddStr [00:35:21]wPrintStart [00:35:21]Write to MH i2c: 01 00 00 66 17 7D [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: 01 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: 01 07 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: 01 07 00 66 17 00 00 00 00 00 FF 0F 92 [00:35:21]RasterBufferAndPrint [00:35:21]line Счет N : (1)543267 [00:35:21]line ИНН: 02508201610067 [00:35:21]line Контрольно-Кассовый Чек [00:35:21]line ПРОДАЖА [00:35:21]line ТРК (МРК, ГНК) : 24 [00:35:21]line Товар: 2710124130 [00:35:21]line SUPER 92-К-5 [00:35:21]line 2.950 * 67.90 [00:35:21]line = 200.31 [00:35:21]line НДС 12% НСП 1% [00:35:21]line > о реализуемом товаре [00:35:21]line ОКРУГЛЕНИЕ: -0.31 [00:35:21]line ИТОГО: 200.00 [00:35:21]line Внесено: 200.00 [00:35:21]line СДАЧА: 0.00 [00:35:21]line НСП 1% : 1.77 [00:35:21]line НДС 12% : 21.27 [00:35:21]line Наличными: 200.00 [00:35:21]line Безнал.: 0.00 [00:35:21]line Место: АЗС № 117 "Партнер Нефть" [00:35:21]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:35:21]line СНО: Общий режим [00:35:21]line Чек 9 03.06.2024 00:35 [00:35:21]line Смена: 70 ФФД: 1.0 [00:35:21]line ЗНМ: 0300000048 [00:35:21]line РНМ: 0000000000151680 [00:35:21]line Версия ККМ: v1.0 [00:35:21]line ФМ: 0000000000959414 [00:35:21]line ФД: 57925 [00:35:21]line ФПД: 69409335133069 [00:35:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T003521&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57925&fm=69409335133069&tin=02508201610067®Number=0000000000151680&sum=20000 [00:35:22]OFD Sender: Processing packet 57925 [packets to send 50, broken 49] [00:35:22]ProducePacketName [00:35:22]name=ofd_packets/00057925 [00:35:22]OFD Sender: To server: pG, [00:35:22]CommunicateWithHost lk.salyk.kg:30040 [00:35:22]ConnectInit lk.salyk.kg [00:35:22]written 0, free lines is 4095 [00:35:22]Connected sock=10 [00:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 29 EA 08 01 A3 62 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 4F 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 09 00 00 00 F4 03 04 00 C9 0F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 45 E2 00 00 35 04 06 00 3F 20 9E C3 C3 8D E4 7B 21 3C BC 72 BE BD [00:35:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 F0 C7 47 00 00 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 45 E2 00 00 F4 03 04 00 98 BA 5C 66 B6 04 01 00 00 E7 4E A4 C9 D6 86 92 BA [00:35:22]CommunicateWithHost err = 0 [00:35:22]CheckOFDResponse [00:35:22]1017 (14) - 77093643461234 [00:35:22]1041 (16) - 0000000000959414 [00:35:22]1040 (4) - 57925 [00:35:22]1012 (4) - 02.06.2024 18:31 [00:35:22]1206 (1) - 0 [00:35:22]OFD Sender: Remove packet 57925 [00:35:22]ProducePacketName [00:35:22]name=ofd_packets/00057925 [00:35:22]NVStorageDeleteData [00:35:22]Write to MH i2c: 01 00 00 91 17 A8 [00:35:22]Write i2c OK [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: 01 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: 01 07 00 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: 01 07 00 91 17 00 00 00 00 00 AF 0C 6A [00:35:22]RasterBufferAndPrint [00:35:22]line [00:35:22]line [00:35:22]line [00:35:22]line [00:35:22]line [00:35:22]written 0, free lines is 3253 [00:35:22]MH_Cut [00:35:22]Write to MH i2c: D1 01 00 98 17 01 81 [00:35:22]Write i2c OK [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: D1 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: D1 01 00 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: D1 01 00 98 17 00 80 [00:35:22]Write to MH i2c: 01 00 00 99 17 B0 [00:35:22]Write i2c OK [00:35:22]MH_I2C_Read... [00:35:23]OFD Sender: No OFD packet to send [00:35:23]*** Cut start [00:35:23]*** Partial cut [00:35:23]*** CUTSNS_PIN = 1 [00:35:23]*** CUTSNS_PIN = 0 [00:35:23]*** Brake cut motor [00:35:24]Read from MH i2c: 01 [00:35:24]MH_I2C_Read... [00:35:24]*** Stop cut motor [00:35:24]*** Cut end [00:35:24]Read from MH i2c: 01 07 00 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: 01 07 00 99 17 00 00 00 00 00 FF 0F C5 [00:35:24]process_action close_receipt done [00:35:24]requested_data is exist [00:35:24]produce_requested_data [00:35:24]requested_item fm.sn is exist - process it [00:35:24]wFMCommunicate request_size=4 [00:35:24]MH_SAM_APDU [00:35:24]CAPDU: 80 11 00 00 [00:35:24]Write to MH i2c: E2 08 00 9A 17 80 11 00 00 00 00 00 00 2B [00:35:24]Write i2c OK [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 [00:35:24]MH_I2C_Read... [00:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:24]Read from MH i2c: E2 17 00 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 17 00 9A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 7E [00:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:35:24]wFMCommunicate OK [00:35:24]requested_item fd.num is exist - process it [00:35:24]SAM_PROTO_GetFieldsCounters [00:35:24]wFMCommunicate request_size=4 [00:35:24]MH_SAM_APDU [00:35:24]CAPDU: 80 13 00 00 [00:35:24]Write to MH i2c: E2 08 00 9B 17 80 13 00 00 00 00 00 00 2E [00:35:24]Write i2c OK [00:35:24]MH_I2C_Read... [00:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:24]Read from MH i2c: E2 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 62 00 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 62 00 9B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 45 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [00:35:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 45 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:24]wFMCommunicate OK [00:35:24]SAM_PROTO_GetFieldsCounters done [00:35:24]requested_item shift.num is exist - process it [00:35:24]requested_item shift.opened is exist - process it [00:35:24]req_shift_opened [00:35:24]FM_GetShiftState [00:35:24]SAM_PROTO_GetShiftState [00:35:24]wFMCommunicate request_size=4 [00:35:24]MH_SAM_APDU [00:35:24]CAPDU: 80 13 01 00 [00:35:24]Write to MH i2c: E2 08 00 9C 17 80 13 01 00 00 00 00 00 30 [00:35:24]Write i2c OK [00:35:24]MH_I2C_Read... [00:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:24]Read from MH i2c: E2 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 0E 00 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 0E 00 9C 17 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 F1 [00:35:24]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:35:24]wFMCommunicate OK [00:35:24]SAM_PROTO_GetShiftState done [00:35:24]FM_GetShiftState done [00:35:24]req_shift_opened done [00:35:24]requested_item shift.open_date is exist - process it [00:35:24]req_shift_open_date [00:35:24]req_shift_open_date done [00:35:24]produce_requested_data done [00:35:24]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57925,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:35:24]process_action_free close_receipt [00:35:24]json_value_free [00:35:24]json_value_free done [00:35:24]process_json_proto returns [00:35:24]Send response to host [00:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57925,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:35:24]free response buf [00:35:24]execute_script done [00:35:24]execute_script returns [00:35:24]free content buf [00:35:24]Sock 8.Close socket [00:35:24]Sock 8.Thread stoped [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:53]OFD Sender: No OFD packet to send [00:37:58]OFD Sender: No OFD packet to send [00:38:03]OFD Sender: No OFD packet to send [00:38:08]OFD Sender: No OFD packet to send [00:38:13]OFD Sender: No OFD packet to send [00:38:18]OFD Sender: No OFD packet to send [00:38:23]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:49]accept exits with 9 [00:40:49]New connection [00:40:49]New thread 3066592612 created [00:40:49]Thread 3066735972 joined [00:40:49]Waiting for new connection... [00:40:49] Sock 9.Parse request [00:40:49]Sock 9.Check first char [00:40:49]Sock 9.First char is OK [00:40:49]request: POST /json_proto HTTP/1.0 [00:40:49]Method: POST [00:40:49]URL: /json_proto [00:40:49]Method is POST - this is cgi request [00:40:49]url: /json_proto [00:40:49]query_string will be loaded in cgi processing [00:40:49]execute_cgi json_proto POST (null) [00:40:49]execute_cgi path=json_proto method=POST [00:40:49]POST find Content-Length [00:40:49]Host: 172.17.60.68:8080 [00:40:49]Content-Length: 677 [00:40:49]Content-Type: application/json [00:40:49] [00:40:49]POST finish read [00:40:49]Found Content-Length = 677 [00:40:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543269", "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" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:49]execute_script... [00:40: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)543269", "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" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:49]POST & json_proto [00:40:49]process_json_proto [00:40:49]json parsed OK: [00:40:49]protocol is kg_v1.0 [00:40:49]action value=close_receipt [00:40:49]process_action close_receipt [00:40:49]cmd_close_receipt [00:40:49]MH_GetDate [00:40:49]Write to MH i2c: F0 00 00 9D 17 A3 [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: F0 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: F0 09 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: F0 09 00 9D 17 00 13 11 5D 66 8D A7 02 66 2F [00:40:49]GetLastDocTimeStamp 1717374921 [00:40:49]current date 1717375251 [00:40:49]FM_GetShiftState [00:40:49]SAM_PROTO_GetShiftState [00:40:49]wFMCommunicate request_size=4 [00:40:49]MH_SAM_APDU [00:40:49]CAPDU: 80 13 01 00 [00:40:49]Write to MH i2c: E2 08 00 9E 17 80 13 01 00 00 00 00 00 32 [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:49]Read from MH i2c: E2 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 0E 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 0E 00 9E 17 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 F3 [00:40:49]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:40:49]wFMCommunicate OK [00:40:49]SAM_PROTO_GetShiftState done [00:40:49]FM_GetShiftState done [00:40:49]opened in 1717373417 [00:40:49]opened+sec_in_day 1717459817 [00:40:49]quantity*price = 20003 [00:40:49]sum+1 = 20004 [00:40:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 10 03.06.2024 00:40 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57926 ФПД: 232684210311988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T004051&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57926&fm=232684210311988&tin=02508201610067®Number=0000000000151680&sum=20000 [00:40:51]StoreToDocumentArchive [00:40:51]shift 70 fd 57926 [00:40:51]save to /storage/0070/doc_00057926 [00:40:51]save last doc name /storage/0070/doc_00057926 to /storage/kkm_last_doc_name [00:40:51]save OK [00:40:51]Clear old archive folders... [00:40:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:40:51]tlvbuf is 01879740 [00:40:51]SAM_PROTO_ClearQueue [00:40:51]wFMCommunicate request_size=4 [00:40:51]MH_SAM_APDU [00:40:51]CAPDU: 80 09 00 00 [00:40:51]Write to MH i2c: E2 08 00 AB 17 80 09 00 00 00 00 00 00 34 [00:40:51]Write i2c OK [00:40:51]MH_I2C_Read... [00:40:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:40:51]Read from MH i2c: E2 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 03 00 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 03 00 AB 17 00 90 00 36 [00:40:51]RAPDU: 90 00 [00:40:51]wFMCommunicate OK [00:40:51]SAM_PROTO_ClearQueue done [00:40:51]KKMCreateOFDPacket [00:40:51]OFDProtocolAddRootSTLVToBuf [00:40:51]FM_MakeSignedData [00:40:51]FM_MakeSignedData [00:40:51]SAM_PROTO_SignData [00:40:51]wFMCommunicate request_size=4 [00:40:51]MH_SAM_APDU [00:40:51]CAPDU: 80 0D 01 02 [00:40:51]Write to MH i2c: E2 08 00 AC 17 80 0D 01 02 00 00 00 00 3C [00:40:51]Write i2c OK [00:40:51]MH_I2C_Read... [00:40:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:40:51]Read from MH i2c: E2 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 03 00 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 03 00 AC 17 00 90 00 37 [00:40:51]RAPDU: 90 00 [00:40:51]wFMCommunicate OK [00:40:51]wFMCommunicate request_size=255 [00:40:51]MH_SAM_APDU [00:40: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 13 11 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 46 E2 00 00 35 04 06 00 D3 [00:40:51]Write to MH i2c: E2 02 01 AD 17 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 13 11 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 46 E2 00 00 35 04 06 00 D3 00 00 BB [00:40:51]Write i2c OK [00:40:51]MH_I2C_Read... [00:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:51]Read from MH i2c: E2 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 03 00 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 03 00 AD 17 00 90 00 38 [00:40:51]RAPDU: 90 00 [00:40:51]wFMCommunicate OK [00:40:51]wFMCommunicate request_size=10 [00:40:51]MH_SAM_APDU [00:40:51]CAPDU: 80 0D 02 02 05 A0 03 B3 53 34 [00:40:51]Write to MH i2c: E2 0D 00 AE 17 80 0D 02 02 05 00 A0 03 B3 53 34 00 00 26 [00:40:51]Write i2c OK [00:40:51]MH_I2C_Read... [00:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:51]Read from MH i2c: E2 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 03 00 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 03 00 AE 17 00 90 00 39 [00:40:51]RAPDU: 90 00 [00:40:51]wFMCommunicate OK [00:40:51]wFMCommunicate request_size=4 [00:40:51]MH_SAM_APDU [00:40:51]CAPDU: 80 0D 03 02 [00:40:51]Write to MH i2c: E2 08 00 AF 17 80 0D 03 02 00 00 00 00 41 [00:40:51]Write i2c OK [00:40:51]MH_I2C_Read... [00:40:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:40:51]Read from MH i2c: E2 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 0B 00 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 0B 00 AF 17 00 1B E0 16 C5 1C 9D 1A E2 90 00 CD [00:40:51]RAPDU: 1B E0 16 C5 1C 9D 1A E2 90 00 [00:40:51]wFMCommunicate OK [00:40:51]SAM_PROTO_SignData done [00:40:51]FM_MakeSignedData done [00:40:51]CreateOFDProtocolMessage [00:40:51]wFMCommunicate request_size=4 [00:40:51]MH_SAM_APDU [00:40:51]CAPDU: 80 11 00 00 [00:40:51]Write to MH i2c: E2 08 00 B0 17 80 11 00 00 00 00 00 00 41 [00:40:51]Write i2c OK [00:40:51]MH_I2C_Read... [00:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:51]Read from MH i2c: E2 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 17 00 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 17 00 B0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 94 [00:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:40:51]wFMCommunicate OK [00:40:51]CreateOFDProtocolMessage done [00:40:51]OFDSenderStorePacket 57926 [00:40:51]StoreOFDPacket docnum=57926 [00:40:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 DB 45 07 01 DA 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 13 11 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 46 E2 00 00 35 04 06 00 D3 A0 03 B3 53 34 1B E0 16 C5 1C 9D 1A E2 [00:40:51]CheckFolder [00:40:51]dirname=/storage/ofd_packets [00:40:51]CheckFolder done [00:40:51]ProducePacketName [00:40:51]name=ofd_packets/00057926 [00:40:51]NVStorageSaveData ofd_packets/00057926 [00:40:51]File name is /storage/ofd_packets/00057926 [00:40:51]Write 301 bytes [00:40:51]NVStorageSaveData done [00:40:51]OFDSenderStorePacket done [00:40:51]KKMCreateOFDPacket done [00:40:51]NVStorageSaveData kkm_last_timestamp [00:40:51]File name is /storage/kkm_last_timestamp [00:40:51]Write 4 bytes [00:40:51]NVStorageSaveData done [00:40:51]ExternCall_PrintAddStr [00:40:51]wPrintStart [00:40:51]Write to MH i2c: 01 00 00 B1 17 C8 [00:40:51]Write i2c OK [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: 01 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: 01 07 00 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: 01 07 00 B1 17 00 00 00 00 00 FF 0F DD [00:40:51]RasterBufferAndPrint [00:40:51]line Счет N : (1)543269 [00:40:51]line ИНН: 02508201610067 [00:40:51]line Контрольно-Кассовый Чек [00:40:51]line ПРОДАЖА [00:40:51]line ТРК (МРК, ГНК) : 22 [00:40:51]line Товар: 2710124130 [00:40:51]line Аи-92-К-5 [00:40:51]line 2.990 * 66.90 [00:40:51]line = 200.03 [00:40:51]line НДС 12% НСП 1% [00:40:51]line > о реализуемом товаре [00:40:51]line ОКРУГЛЕНИЕ: -0.03 [00:40:51]line ИТОГО: 200.00 [00:40:51]line Внесено: 200.00 [00:40:51]line СДАЧА: 0.00 [00:40:51]line НСП 1% : 1.77 [00:40:51]line НДС 12% : 21.24 [00:40:51]line Наличными: 200.00 [00:40:51]line Безнал.: 0.00 [00:40:51]line Место: АЗС № 117 "Партнер Нефть" [00:40:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:40:51]line СНО: Общий режим [00:40:51]line Чек 10 03.06.2024 00:40 [00:40:51]line Смена: 70 ФФД: 1.0 [00:40:51]line ЗНМ: 0300000048 [00:40:51]line РНМ: 0000000000151680 [00:40:51]line Версия ККМ: v1.0 [00:40:51]line ФМ: 0000000000959414 [00:40:51]line ФД: 57926 [00:40:51]line ФПД: 232684210311988 [00:40:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T004051&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57926&fm=232684210311988&tin=02508201610067®Number=0000000000151680&sum=20000 [00:40:51]OFD Sender: Processing packet 57926 [packets to send 50, broken 49] [00:40:51]ProducePacketName [00:40:51]name=ofd_packets/00057926 [00:40:51]OFD Sender: To server: pG, [00:40:51]CommunicateWithHost lk.salyk.kg:30040 [00:40:51]ConnectInit lk.salyk.kg [00:40:51]written 0, free lines is 4095 [00:40:52]Connected sock=10 [00:40:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 DB 45 07 01 DA 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 13 11 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 46 E2 00 00 35 04 06 00 D3 A0 03 B3 53 34 1B E0 16 C5 1C 9D 1A E2 [00:40:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 C6 75 47 00 BB 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 39 35 39 34 31 34 10 04 04 00 46 E2 00 00 F4 03 04 00 E2 BB 5C 66 B6 04 01 00 00 4B 9D B8 4B AE FC A9 70 [00:40:52]CommunicateWithHost err = 0 [00:40:52]CheckOFDResponse [00:40:52]1017 (14) - 77093643461234 [00:40:52]1041 (16) - 0000000000959414 [00:40:52]1040 (4) - 57926 [00:40:52]1012 (4) - 02.06.2024 18:37 [00:40:52]1206 (1) - 0 [00:40:52]OFD Sender: Remove packet 57926 [00:40:52]ProducePacketName [00:40:52]name=ofd_packets/00057926 [00:40:52]NVStorageDeleteData [00:40:52]Write to MH i2c: 01 00 00 DC 17 F3 [00:40:52]Write i2c OK [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: 01 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: 01 07 00 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: 01 07 00 DC 17 00 00 00 00 00 A5 0C AB [00:40:52]RasterBufferAndPrint [00:40:52]line [00:40:52]line [00:40:52]line [00:40:52]line [00:40:52]line [00:40:52]written 0, free lines is 3243 [00:40:52]MH_Cut [00:40:52]Write to MH i2c: D1 01 00 E3 17 01 CC [00:40:52]Write i2c OK [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: D1 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: D1 01 00 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: D1 01 00 E3 17 00 CB [00:40:52]Write to MH i2c: 01 00 00 E4 17 FB [00:40:52]Write i2c OK [00:40:52]MH_I2C_Read... [00:40:52]OFD Sender: No OFD packet to send [00:40:53]*** Cut start [00:40:53]*** Partial cut [00:40:53]*** CUTSNS_PIN = 1 [00:40:53]*** CUTSNS_PIN = 0 [00:40:53]*** Brake cut motor [00:40:53]Read from MH i2c: 01 [00:40:53]MH_I2C_Read... [00:40:53]*** Stop cut motor [00:40:53]*** Cut end [00:40:53]Read from MH i2c: 01 07 00 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: 01 07 00 E4 17 00 00 00 00 00 FF 0F 10 [00:40:53]process_action close_receipt done [00:40:53]requested_data is exist [00:40:53]produce_requested_data [00:40:53]requested_item fm.sn is exist - process it [00:40:53]wFMCommunicate request_size=4 [00:40:53]MH_SAM_APDU [00:40:53]CAPDU: 80 11 00 00 [00:40:53]Write to MH i2c: E2 08 00 E5 17 80 11 00 00 00 00 00 00 76 [00:40:53]Write i2c OK [00:40:53]MH_I2C_Read... [00:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:53]Read from MH i2c: E2 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: E2 17 00 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: E2 17 00 E5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 C9 [00:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:40:53]wFMCommunicate OK [00:40:53]requested_item fd.num is exist - process it [00:40:53]SAM_PROTO_GetFieldsCounters [00:40:53]wFMCommunicate request_size=4 [00:40:53]MH_SAM_APDU [00:40:53]CAPDU: 80 13 00 00 [00:40:53]Write to MH i2c: E2 08 00 E6 17 80 13 00 00 00 00 00 00 79 [00:40:53]Write i2c OK [00:40:53]MH_I2C_Read... [00:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:40:54]Read from MH i2c: E2 [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: E2 62 00 [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: E2 62 00 E6 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 46 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [00:40:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 46 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:40:54]wFMCommunicate OK [00:40:54]SAM_PROTO_GetFieldsCounters done [00:40:54]requested_item shift.num is exist - process it [00:40:54]requested_item shift.opened is exist - process it [00:40:54]req_shift_opened [00:40:54]FM_GetShiftState [00:40:54]SAM_PROTO_GetShiftState [00:40:54]wFMCommunicate request_size=4 [00:40:54]MH_SAM_APDU [00:40:54]CAPDU: 80 13 01 00 [00:40:54]Write to MH i2c: E2 08 00 E7 17 80 13 01 00 00 00 00 00 7B [00:40:54]Write i2c OK [00:40:54]MH_I2C_Read... [00:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:54]Read from MH i2c: E2 [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: E2 0E 00 [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: E2 0E 00 E7 17 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 3C [00:40:54]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:40:54]wFMCommunicate OK [00:40:54]SAM_PROTO_GetShiftState done [00:40:54]FM_GetShiftState done [00:40:54]req_shift_opened done [00:40:54]requested_item shift.open_date is exist - process it [00:40:54]req_shift_open_date [00:40:54]req_shift_open_date done [00:40:54]produce_requested_data done [00:40:54]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57926,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:40:54]process_action_free close_receipt [00:40:54]json_value_free [00:40:54]json_value_free done [00:40:54]process_json_proto returns [00:40:54]Send response to host [00:40:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57926,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:40:54]free response buf [00:40:54]execute_script done [00:40:54]execute_script returns [00:40:54]free content buf [00:40:54]Sock 9.Close socket [00:40:54]Sock 9.Thread stoped [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:14]accept exits with 8 [00:41:14]New connection [00:41:14]New thread 3066735972 created [00:41:14]Thread 3066592612 joined [00:41:14]Waiting for new connection... [00:41:14] Sock 8.Parse request [00:41:14]Sock 8.Check first char [00:41:14]Sock 8.First char is OK [00:41:14]request: POST /json_proto HTTP/1.0 [00:41:14]Method: POST [00:41:14]URL: /json_proto [00:41:14]Method is POST - this is cgi request [00:41:14]url: /json_proto [00:41:14]query_string will be loaded in cgi processing [00:41:14]execute_cgi json_proto POST (null) [00:41:14]execute_cgi path=json_proto method=POST [00:41:14]POST find Content-Length [00:41:14]Host: 172.17.60.68:8080 [00:41:14]Content-Length: 846 [00:41:14]Content-Type: application/json [00:41:14] [00:41:14]POST finish read [00:41:14]Found Content-Length = 846 [00:41:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 28.660, "sum" : 1000.23, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:14]execute_script... [00:41:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 28.660, "sum" : 1000.23, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:14]POST & json_proto [00:41:14]process_json_proto [00:41:14]json parsed OK: [00:41:14]protocol is kg_v1.0 [00:41:14]action value=close_receipt [00:41:14]process_action close_receipt [00:41:14]cmd_close_receipt [00:41:14]MH_GetDate [00:41:14]Write to MH i2c: F0 00 00 E8 17 EE [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: F0 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: F0 09 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: F0 09 00 E8 17 00 2B 11 5D 66 8D A7 02 66 92 [00:41:14]GetLastDocTimeStamp 1717375251 [00:41:14]current date 1717375275 [00:41:14]FM_GetShiftState [00:41:14]SAM_PROTO_GetShiftState [00:41:14]wFMCommunicate request_size=4 [00:41:14]MH_SAM_APDU [00:41:14]CAPDU: 80 13 01 00 [00:41:14]Write to MH i2c: E2 08 00 E9 17 80 13 01 00 00 00 00 00 7D [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:14]Read from MH i2c: E2 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 0E 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 0E 00 E9 17 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 3E [00:41:14]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:41:14]wFMCommunicate OK [00:41:14]SAM_PROTO_GetShiftState done [00:41:14]FM_GetShiftState done [00:41:14]opened in 1717373417 [00:41:14]opened+sec_in_day 1717459817 [00:41:14]quantity*price = 100023 [00:41:14]sum+1 = 100024 [00:41:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 11 03.06.2024 00:41 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000000959414 ФД: 57927 ФПД: 4031186889936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T004115&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57927&fm=4031186889936&tin=02508201610067®Number=0000000000151680&sum=100023 [00:41:15]StoreToDocumentArchive [00:41:15]shift 70 fd 57927 [00:41:15]save to /storage/0070/doc_00057927 [00:41:15]save last doc name /storage/0070/doc_00057927 to /storage/kkm_last_doc_name [00:41:15]save OK [00:41:15]Clear old archive folders... [00:41:15]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:41:15]tlvbuf is 01AD1950 [00:41:15]SAM_PROTO_ClearQueue [00:41:15]wFMCommunicate request_size=4 [00:41:15]MH_SAM_APDU [00:41:15]CAPDU: 80 09 00 00 [00:41:15]Write to MH i2c: E2 08 00 F6 17 80 09 00 00 00 00 00 00 7F [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:15]Read from MH i2c: E2 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 03 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 03 00 F6 17 00 90 00 81 [00:41:15]RAPDU: 90 00 [00:41:15]wFMCommunicate OK [00:41:15]SAM_PROTO_ClearQueue done [00:41:15]KKMCreateOFDPacket [00:41:15]OFDProtocolAddRootSTLVToBuf [00:41:15]FM_MakeSignedData [00:41:15]FM_MakeSignedData [00:41:15]SAM_PROTO_SignData [00:41:15]wFMCommunicate request_size=4 [00:41:15]MH_SAM_APDU [00:41:15]CAPDU: 80 0D 01 02 [00:41:15]Write to MH i2c: E2 08 00 F7 17 80 0D 01 02 00 00 00 00 87 [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:15]Read from MH i2c: E2 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 03 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 03 00 F7 17 00 90 00 82 [00:41:15]RAPDU: 90 00 [00:41:15]wFMCommunicate OK [00:41:15]wFMCommunicate request_size=255 [00:41:15]MH_SAM_APDU [00:41:15]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 6F 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 2B 11 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 47 E2 00 00 35 04 06 00 03 AA [00:41:15]Write to MH i2c: E2 02 01 F8 17 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 6F 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 2B 11 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 47 E2 00 00 35 04 06 00 03 AA 00 00 45 [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:15]Read from MH i2c: E2 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 03 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 03 00 F8 17 00 90 00 83 [00:41:15]RAPDU: 90 00 [00:41:15]wFMCommunicate OK [00:41:15]wFMCommunicate request_size=9 [00:41:15]MH_SAM_APDU [00:41:15]CAPDU: 80 0D 02 02 04 95 76 6C D0 [00:41:15]Write to MH i2c: E2 0C 00 F9 17 80 0D 02 02 04 00 95 76 6C D0 00 00 D9 [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 [00:41:15]MH_I2C_Read... [00:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:15]Read from MH i2c: E2 03 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 03 00 F9 17 00 90 00 84 [00:41:15]RAPDU: 90 00 [00:41:15]wFMCommunicate OK [00:41:15]wFMCommunicate request_size=4 [00:41:15]MH_SAM_APDU [00:41:15]CAPDU: 80 0D 03 02 [00:41:15]Write to MH i2c: E2 08 00 FA 17 80 0D 03 02 00 00 00 00 8C [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:15]Read from MH i2c: E2 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 0B 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 0B 00 FA 17 00 C8 64 D7 BA 7B 6C E7 CC 90 00 E4 [00:41:15]RAPDU: C8 64 D7 BA 7B 6C E7 CC 90 00 [00:41:15]wFMCommunicate OK [00:41:15]SAM_PROTO_SignData done [00:41:15]FM_MakeSignedData done [00:41:15]CreateOFDProtocolMessage [00:41:15]wFMCommunicate request_size=4 [00:41:15]MH_SAM_APDU [00:41:15]CAPDU: 80 11 00 00 [00:41:15]Write to MH i2c: E2 08 00 FB 17 80 11 00 00 00 00 00 00 8C [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:15]Read from MH i2c: E2 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 17 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 17 00 FB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 DF [00:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:41:15]wFMCommunicate OK [00:41:15]CreateOFDProtocolMessage done [00:41:15]OFDSenderStorePacket 57927 [00:41:15]StoreOFDPacket docnum=57927 [00:41:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 A9 D8 06 01 68 5E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 6F 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 2B 11 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 47 E2 00 00 35 04 06 00 03 AA 95 76 6C D0 C8 64 D7 BA 7B 6C E7 CC [00:41:15]CheckFolder [00:41:15]dirname=/storage/ofd_packets [00:41:15]CheckFolder done [00:41:15]ProducePacketName [00:41:15]name=ofd_packets/00057927 [00:41:15]NVStorageSaveData ofd_packets/00057927 [00:41:15]File name is /storage/ofd_packets/00057927 [00:41:15]Write 300 bytes [00:41:15]NVStorageSaveData done [00:41:15]OFDSenderStorePacket done [00:41:15]KKMCreateOFDPacket done [00:41:15]NVStorageSaveData kkm_last_timestamp [00:41:15]File name is /storage/kkm_last_timestamp [00:41:15]Write 4 bytes [00:41:15]NVStorageSaveData done [00:41:15]ExternCall_PrintAddStr [00:41:15]wPrintStart [00:41:15]Write to MH i2c: 01 00 00 FC 17 13 [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: 01 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: 01 07 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: 01 07 00 FC 17 00 00 00 00 00 FF 0F 28 [00:41:15]RasterBufferAndPrint [00:41:15]line Счет N : (1)543268 [00:41:15]line ИНН: 02508201610067 [00:41:15]line Контрольно-Кассовый Чек [00:41:15]line ПРОДАЖА [00:41:15]line ТРК (МРК, ГНК) : 72 [00:41:15]line Товар: 2711190000 [00:41:15]line ГАЗ-К-5 [00:41:15]line 28.660 * 34.90 [00:41:15]line = 1000.23 [00:41:15]line НДС 12% НСП 1% [00:41:15]line > о реализуемом товаре [00:41:15]line ИТОГО: 1000.23 [00:41:15]line НСП 1% : 8.85 [00:41:15]line НДС 12% : 106.22 [00:41:15]line Наличными: 0.00 [00:41:15]line Безнал.: 1000.23 [00:41:15]line Место: АЗС № 117 "Партнер Нефть" [00:41:15]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:41:15]line СНО: Общий режим [00:41:15]line Чек 11 03.06.2024 00:41 [00:41:15]line Смена: 70 ФФД: 1.0 [00:41:15]line ЗНМ: 0300000048 [00:41:15]line РНМ: 0000000000151680 [00:41:15]line Версия ККМ: v1.0 [00:41:15]line Платежная система: АКБ Кыргызстан [00:41:15]line ФМ: 0000000000959414 [00:41:15]line ФД: 57927 [00:41:15]line ФПД: 4031186889936 [00:41:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T004115&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57927&fm=4031186889936&tin=02508201610067®Number=0000000000151680&sum=100023 [00:41:16]written 0, free lines is 4095 [00:41:16]OFD Sender: Processing packet 57927 [packets to send 50, broken 49] [00:41:16]ProducePacketName [00:41:16]name=ofd_packets/00057927 [00:41:16]OFD Sender: To server: pG, [00:41:16]CommunicateWithHost lk.salyk.kg:30040 [00:41:16]ConnectInit lk.salyk.kg [00:41:16]Connected sock=10 [00:41:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 A9 D8 06 01 68 5E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 6F 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 2B 11 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 47 E2 00 00 35 04 06 00 03 AA 95 76 6C D0 C8 64 D7 BA 7B 6C E7 CC [00:41:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 A8 7B 47 00 CF 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 47 E2 00 00 F4 03 04 00 FB BB 5C 66 B6 04 01 00 00 33 7B AC 4E E4 A2 86 24 [00:41:16]CommunicateWithHost err = 0 [00:41:16]CheckOFDResponse [00:41:16]1017 (14) - 77093643461234 [00:41:16]1041 (16) - 0000000000959414 [00:41:16]1040 (4) - 57927 [00:41:16]1012 (4) - 02.06.2024 18:37 [00:41:16]1206 (1) - 0 [00:41:16]OFD Sender: Remove packet 57927 [00:41:16]ProducePacketName [00:41:16]name=ofd_packets/00057927 [00:41:16]NVStorageDeleteData [00:41:16]Write to MH i2c: 01 00 00 26 18 3E [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: 01 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: 01 07 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: 01 07 00 26 18 00 00 00 00 00 CA 0C 1B [00:41:16]RasterBufferAndPrint [00:41:16]line [00:41:16]line [00:41:16]line [00:41:16]line [00:41:16]line [00:41:16]written 0, free lines is 3280 [00:41:16]MH_Cut [00:41:16]Write to MH i2c: D1 01 00 2D 18 01 17 [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: D1 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: D1 01 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: D1 01 00 2D 18 00 16 [00:41:16]Write to MH i2c: 01 00 00 2E 18 46 [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:17]OFD Sender: No OFD packet to send [00:41:17]*** Cut start [00:41:17]*** Partial cut [00:41:17]*** CUTSNS_PIN = 1 [00:41:17]*** CUTSNS_PIN = 0 [00:41:17]*** Brake cut motor [00:41:18]Read from MH i2c: 01 [00:41:18]MH_I2C_Read... [00:41:18]*** Stop cut motor [00:41:18]*** Cut end [00:41:18]Read from MH i2c: 01 07 00 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: 01 07 00 2E 18 00 00 00 00 00 FF 0F 5B [00:41:18]process_action close_receipt done [00:41:18]requested_data is exist [00:41:18]produce_requested_data [00:41:18]requested_item fm.sn is exist - process it [00:41:18]wFMCommunicate request_size=4 [00:41:18]MH_SAM_APDU [00:41:18]CAPDU: 80 11 00 00 [00:41:18]Write to MH i2c: E2 08 00 2F 18 80 11 00 00 00 00 00 00 C1 [00:41:18]Write i2c OK [00:41:18]MH_I2C_Read... [00:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:18]Read from MH i2c: E2 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: E2 17 00 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: E2 17 00 2F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 14 [00:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:41:18]wFMCommunicate OK [00:41:18]requested_item fd.num is exist - process it [00:41:18]SAM_PROTO_GetFieldsCounters [00:41:18]wFMCommunicate request_size=4 [00:41:18]MH_SAM_APDU [00:41:18]CAPDU: 80 13 00 00 [00:41:18]Write to MH i2c: E2 08 00 30 18 80 13 00 00 00 00 00 00 C4 [00:41:18]Write i2c OK [00:41:18]MH_I2C_Read... [00:41:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:18]Read from MH i2c: E2 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: E2 62 00 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: E2 62 00 30 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 47 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [00:41:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 47 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:18]wFMCommunicate OK [00:41:18]SAM_PROTO_GetFieldsCounters done [00:41:18]requested_item shift.num is exist - process it [00:41:18]requested_item shift.opened is exist - process it [00:41:18]req_shift_opened [00:41:18]FM_GetShiftState [00:41:18]SAM_PROTO_GetShiftState [00:41:18]wFMCommunicate request_size=4 [00:41:18]MH_SAM_APDU [00:41:18]CAPDU: 80 13 01 00 [00:41:18]Write to MH i2c: E2 08 00 31 18 80 13 01 00 00 00 00 00 C6 [00:41:18]Write i2c OK [00:41:18]MH_I2C_Read... [00:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:18]Read from MH i2c: E2 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: E2 0E 00 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: E2 0E 00 31 18 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 87 [00:41:18]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:41:18]wFMCommunicate OK [00:41:18]SAM_PROTO_GetShiftState done [00:41:18]FM_GetShiftState done [00:41:18]req_shift_opened done [00:41:18]requested_item shift.open_date is exist - process it [00:41:18]req_shift_open_date [00:41:18]req_shift_open_date done [00:41:18]produce_requested_data done [00:41:18]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57927,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:41:18]process_action_free close_receipt [00:41:18]json_value_free [00:41:18]json_value_free done [00:41:18]process_json_proto returns [00:41:18]Send response to host [00:41:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57927,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:41:18]free response buf [00:41:18]execute_script done [00:41:18]execute_script returns [00:41:18]free content buf [00:41:18]Sock 8.Close socket [00:41:18]Sock 8.Thread stoped [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]accept exits with 9 [00:45:52]New connection [00:45:52]New thread 3066592612 created [00:45:52]Thread 3066735972 joined [00:45:52]Waiting for new connection... [00:45:52] Sock 9.Parse request [00:45:52]Sock 9.Check first char [00:45:52]Sock 9.First char is OK [00:45:52]request: POST /json_proto HTTP/1.0 [00:45:52]Method: POST [00:45:52]URL: /json_proto [00:45:52]Method is POST - this is cgi request [00:45:52]url: /json_proto [00:45:52]query_string will be loaded in cgi processing [00:45:52]execute_cgi json_proto POST (null) [00:45:52]execute_cgi path=json_proto method=POST [00:45:52]POST find Content-Length [00:45:52]Host: 172.17.60.68:8080 [00:45:52]Content-Length: 846 [00:45:52]Content-Type: application/json [00:45:52] [00:45:52]POST finish read [00:45:52]Found Content-Length = 846 [00:45:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 49.300, "sum" : 1720.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1720.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:52]execute_script... [00:45:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 49.300, "sum" : 1720.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1720.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:52]POST & json_proto [00:45:52]process_json_proto [00:45:52]json parsed OK: [00:45:52]protocol is kg_v1.0 [00:45:52]action value=close_receipt [00:45:52]process_action close_receipt [00:45:52]cmd_close_receipt [00:45:52]MH_GetDate [00:45:52]Write to MH i2c: F0 00 00 32 18 39 [00:45:52]Write i2c OK [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: F0 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: F0 09 00 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: F0 09 00 32 18 00 41 12 5D 66 8D A7 02 66 F4 [00:45:52]GetLastDocTimeStamp 1717375275 [00:45:52]current date 1717375553 [00:45:52]FM_GetShiftState [00:45:52]SAM_PROTO_GetShiftState [00:45:52]wFMCommunicate request_size=4 [00:45:52]MH_SAM_APDU [00:45:52]CAPDU: 80 13 01 00 [00:45:52]Write to MH i2c: E2 08 00 33 18 80 13 01 00 00 00 00 00 C8 [00:45:52]Write i2c OK [00:45:52]MH_I2C_Read... [00:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:52]Read from MH i2c: E2 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: E2 0E 00 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: E2 0E 00 33 18 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 89 [00:45:52]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:45:52]wFMCommunicate OK [00:45:52]SAM_PROTO_GetShiftState done [00:45:52]FM_GetShiftState done [00:45:52]opened in 1717373417 [00:45:52]opened+sec_in_day 1717459817 [00:45:52]quantity*price = 172057 [00:45:52]sum+1 = 172058 [00:45:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1720.57 НСП 1% : 15.23 НДС 12% : 182.71 Наличными: 0.00 Безнал.: 1720.57 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 12 03.06.2024 00:45 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000000959414 ФД: 57928 ФПД: 259643788349233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T004553&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57928&fm=259643788349233&tin=02508201610067®Number=0000000000151680&sum=172057 [00:45:53]StoreToDocumentArchive [00:45:53]shift 70 fd 57928 [00:45:53]save to /storage/0070/doc_00057928 [00:45:53]save last doc name /storage/0070/doc_00057928 to /storage/kkm_last_doc_name [00:45:53]save OK [00:45:53]Clear old archive folders... [00:45:53]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:45:53]tlvbuf is 01AD5A10 [00:45:53]SAM_PROTO_ClearQueue [00:45:53]wFMCommunicate request_size=4 [00:45:53]MH_SAM_APDU [00:45:53]CAPDU: 80 09 00 00 [00:45:53]Write to MH i2c: E2 08 00 40 18 80 09 00 00 00 00 00 00 CA [00:45:53]Write i2c OK [00:45:53]MH_I2C_Read... [00:45:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:53]Read from MH i2c: E2 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 03 00 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 03 00 40 18 00 90 00 CC [00:45:53]RAPDU: 90 00 [00:45:53]wFMCommunicate OK [00:45:53]SAM_PROTO_ClearQueue done [00:45:53]KKMCreateOFDPacket [00:45:53]OFDProtocolAddRootSTLVToBuf [00:45:53]FM_MakeSignedData [00:45:53]FM_MakeSignedData [00:45:53]SAM_PROTO_SignData [00:45:53]wFMCommunicate request_size=4 [00:45:53]MH_SAM_APDU [00:45:53]CAPDU: 80 0D 01 02 [00:45:53]Write to MH i2c: E2 08 00 41 18 80 0D 01 02 00 00 00 00 D2 [00:45:53]Write i2c OK [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 [00:45:53]MH_I2C_Read... [00:45:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:53]Read from MH i2c: E2 03 00 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 03 00 41 18 00 90 00 CD [00:45:53]RAPDU: 90 00 [00:45:53]wFMCommunicate OK [00:45:53]wFMCommunicate request_size=255 [00:45:53]MH_SAM_APDU [00:45:53]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 C0 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 19 A0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 A0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 47 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 A0 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 41 12 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 48 E2 00 00 35 04 06 00 EC 25 [00:45:53]Write to MH i2c: E2 02 01 42 18 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 C0 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 19 A0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 A0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 47 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 A0 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 41 12 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 48 E2 00 00 35 04 06 00 EC 25 00 00 F4 [00:45:53]Write i2c OK [00:45:53]MH_I2C_Read... [00:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:53]Read from MH i2c: E2 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 03 00 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 03 00 42 18 00 90 00 CE [00:45:53]RAPDU: 90 00 [00:45:53]wFMCommunicate OK [00:45:53]wFMCommunicate request_size=9 [00:45:53]MH_SAM_APDU [00:45:53]CAPDU: 80 0D 02 02 04 07 C5 CF 31 [00:45:53]Write to MH i2c: E2 0C 00 43 18 80 0D 02 02 04 00 07 C5 CF 31 00 00 A9 [00:45:53]Write i2c OK [00:45:53]MH_I2C_Read... [00:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:53]Read from MH i2c: E2 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 03 00 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 03 00 43 18 00 90 00 CF [00:45:53]RAPDU: 90 00 [00:45:53]wFMCommunicate OK [00:45:53]wFMCommunicate request_size=4 [00:45:53]MH_SAM_APDU [00:45:53]CAPDU: 80 0D 03 02 [00:45:53]Write to MH i2c: E2 08 00 44 18 80 0D 03 02 00 00 00 00 D7 [00:45:53]Write i2c OK [00:45:53]MH_I2C_Read... [00:45:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:53]Read from MH i2c: E2 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 0B 00 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 0B 00 44 18 00 6E 32 1E 77 34 4D FA D3 90 00 5B [00:45:53]RAPDU: 6E 32 1E 77 34 4D FA D3 90 00 [00:45:53]wFMCommunicate OK [00:45:53]SAM_PROTO_SignData done [00:45:53]FM_MakeSignedData done [00:45:53]CreateOFDProtocolMessage [00:45:53]wFMCommunicate request_size=4 [00:45:53]MH_SAM_APDU [00:45:53]CAPDU: 80 11 00 00 [00:45:53]Write to MH i2c: E2 08 00 45 18 80 11 00 00 00 00 00 00 D7 [00:45:53]Write i2c OK [00:45:53]MH_I2C_Read... [00:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:53]Read from MH i2c: E2 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 17 00 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 17 00 45 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 2A [00:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:45:53]wFMCommunicate OK [00:45:53]CreateOFDProtocolMessage done [00:45:53]OFDSenderStorePacket 57928 [00:45:53]StoreOFDPacket docnum=57928 [00:45:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 02 DA 06 01 EC C2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 C0 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 19 A0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 A0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 47 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 A0 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 41 12 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 48 E2 00 00 35 04 06 00 EC 25 07 C5 CF 31 6E 32 1E 77 34 4D FA D3 [00:45:53]CheckFolder [00:45:53]dirname=/storage/ofd_packets [00:45:53]CheckFolder done [00:45:53]ProducePacketName [00:45:53]name=ofd_packets/00057928 [00:45:53]NVStorageSaveData ofd_packets/00057928 [00:45:53]File name is /storage/ofd_packets/00057928 [00:45:53]Write 300 bytes [00:45:53]NVStorageSaveData done [00:45:53]OFDSenderStorePacket done [00:45:53]KKMCreateOFDPacket done [00:45:53]NVStorageSaveData kkm_last_timestamp [00:45:53]File name is /storage/kkm_last_timestamp [00:45:53]Write 4 bytes [00:45:53]NVStorageSaveData done [00:45:53]ExternCall_PrintAddStr [00:45:53]wPrintStart [00:45:53]Write to MH i2c: 01 00 00 46 18 5E [00:45:53]Write i2c OK [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: 01 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: 01 07 00 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: 01 07 00 46 18 00 00 00 00 00 FF 0F 73 [00:45:53]RasterBufferAndPrint [00:45:53]line Счет N : (1)543270 [00:45:53]line ИНН: 02508201610067 [00:45:53]line Контрольно-Кассовый Чек [00:45:53]line ПРОДАЖА [00:45:53]line ТРК (МРК, ГНК) : 71 [00:45:53]line Товар: 2711190000 [00:45:53]line ГАЗ-К-5 [00:45:53]line 49.300 * 34.90 [00:45:53]line = 1720.57 [00:45:53]line НДС 12% НСП 1% [00:45:53]line > о реализуемом товаре [00:45:53]line ИТОГО: 1720.57 [00:45:53]line НСП 1% : 15.23 [00:45:53]line НДС 12% : 182.71 [00:45:53]line Наличными: 0.00 [00:45:53]line Безнал.: 1720.57 [00:45:53]line Место: АЗС № 117 "Партнер Нефть" [00:45:53]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:45:53]line СНО: Общий режим [00:45:53]line Чек 12 03.06.2024 00:45 [00:45:53]line Смена: 70 ФФД: 1.0 [00:45:53]line ЗНМ: 0300000048 [00:45:53]line РНМ: 0000000000151680 [00:45:53]line Версия ККМ: v1.0 [00:45:53]line Платежная система: АКБ Кыргызстан [00:45:53]line ФМ: 0000000000959414 [00:45:53]line ФД: 57928 [00:45:53]line ФПД: 259643788349233 [00:45:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T004553&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57928&fm=259643788349233&tin=02508201610067®Number=0000000000151680&sum=172057 [00:45:53]written 0, free lines is 4095 [00:45:53]OFD Sender: Processing packet 57928 [packets to send 50, broken 49] [00:45:53]ProducePacketName [00:45:53]name=ofd_packets/00057928 [00:45:53]OFD Sender: To server: pG, [00:45:53]CommunicateWithHost lk.salyk.kg:30040 [00:45:53]ConnectInit lk.salyk.kg [00:45:53]Connected sock=10 [00:45:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 02 DA 06 01 EC C2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 C0 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 19 A0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 A0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 47 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 A0 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 41 12 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 48 E2 00 00 35 04 06 00 EC 25 07 C5 CF 31 6E 32 1E 77 34 4D FA D3 [00:45:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 79 A5 47 00 2B E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 48 E2 00 00 F4 03 04 00 10 BD 5C 66 B6 04 01 00 00 B0 36 BE 7F C1 01 36 49 [00:45:54]CommunicateWithHost err = 0 [00:45:54]CheckOFDResponse [00:45:54]1017 (14) - 77093643461234 [00:45:54]1041 (16) - 0000000000959414 [00:45:54]1040 (4) - 57928 [00:45:54]1012 (4) - 02.06.2024 18:42 [00:45:54]1206 (1) - 0 [00:45:54]OFD Sender: Remove packet 57928 [00:45:54]ProducePacketName [00:45:54]name=ofd_packets/00057928 [00:45:54]NVStorageDeleteData [00:45:54]Write to MH i2c: 01 00 00 70 18 88 [00:45:54]Write i2c OK [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: 01 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: 01 07 00 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: 01 07 00 70 18 00 00 00 00 00 CA 0C 65 [00:45:54]RasterBufferAndPrint [00:45:54]line [00:45:54]line [00:45:54]line [00:45:54]line [00:45:54]line [00:45:54]written 0, free lines is 3281 [00:45:54]MH_Cut [00:45:54]Write to MH i2c: D1 01 00 77 18 01 61 [00:45:54]Write i2c OK [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: D1 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: D1 01 00 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: D1 01 00 77 18 00 60 [00:45:54]Write to MH i2c: 01 00 00 78 18 90 [00:45:54]Write i2c OK [00:45:54]MH_I2C_Read... [00:45:54]OFD Sender: No OFD packet to send [00:45:55]*** Cut start [00:45:55]*** Partial cut [00:45:55]*** CUTSNS_PIN = 1 [00:45:55]*** CUTSNS_PIN = 0 [00:45:55]*** Brake cut motor [00:45:55]Read from MH i2c: 01 [00:45:55]MH_I2C_Read... [00:45:55]*** Stop cut motor [00:45:55]*** Cut end [00:45:55]Read from MH i2c: 01 07 00 [00:45:55]MH_I2C_Read... [00:45:55]Read from MH i2c: 01 07 00 78 18 00 00 00 00 00 FF 0F A5 [00:45:55]process_action close_receipt done [00:45:55]requested_data is exist [00:45:55]produce_requested_data [00:45:55]requested_item fm.sn is exist - process it [00:45:55]wFMCommunicate request_size=4 [00:45:55]MH_SAM_APDU [00:45:55]CAPDU: 80 11 00 00 [00:45:55]Write to MH i2c: E2 08 00 79 18 80 11 00 00 00 00 00 00 0B [00:45:55]Write i2c OK [00:45:55]MH_I2C_Read... [00:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:55]Read from MH i2c: E2 [00:45:55]MH_I2C_Read... [00:45:55]Read from MH i2c: E2 17 00 [00:45:55]MH_I2C_Read... [00:45:55]Read from MH i2c: E2 17 00 79 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 5E [00:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:45:55]wFMCommunicate OK [00:45:55]requested_item fd.num is exist - process it [00:45:55]SAM_PROTO_GetFieldsCounters [00:45:55]wFMCommunicate request_size=4 [00:45:55]MH_SAM_APDU [00:45:55]CAPDU: 80 13 00 00 [00:45:55]Write to MH i2c: E2 08 00 7A 18 80 13 00 00 00 00 00 00 0E [00:45:55]Write i2c OK [00:45:55]MH_I2C_Read... [00:45:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:55]Read from MH i2c: E2 [00:45:55]MH_I2C_Read... [00:45:55]Read from MH i2c: E2 62 00 [00:45:55]MH_I2C_Read... [00:45:55]Read from MH i2c: E2 62 00 7A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 48 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [00:45:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 48 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:45:55]wFMCommunicate OK [00:45:55]SAM_PROTO_GetFieldsCounters done [00:45:55]requested_item shift.num is exist - process it [00:45:55]requested_item shift.opened is exist - process it [00:45:55]req_shift_opened [00:45:55]FM_GetShiftState [00:45:55]SAM_PROTO_GetShiftState [00:45:55]wFMCommunicate request_size=4 [00:45:55]MH_SAM_APDU [00:45:55]CAPDU: 80 13 01 00 [00:45:55]Write to MH i2c: E2 08 00 7B 18 80 13 01 00 00 00 00 00 10 [00:45:55]Write i2c OK [00:45:55]MH_I2C_Read... [00:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:55]Read from MH i2c: E2 [00:45:55]MH_I2C_Read... [00:45:55]Read from MH i2c: E2 0E 00 [00:45:55]MH_I2C_Read... [00:45:55]Read from MH i2c: E2 0E 00 7B 18 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 D1 [00:45:55]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:45:55]wFMCommunicate OK [00:45:55]SAM_PROTO_GetShiftState done [00:45:55]FM_GetShiftState done [00:45:55]req_shift_opened done [00:45:55]requested_item shift.open_date is exist - process it [00:45:55]req_shift_open_date [00:45:55]req_shift_open_date done [00:45:55]produce_requested_data done [00:45:55]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57928,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:45:55]process_action_free close_receipt [00:45:55]json_value_free [00:45:55]json_value_free done [00:45:55]process_json_proto returns [00:45:55]Send response to host [00:45:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57928,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:45:55]free response buf [00:45:55]execute_script done [00:45:55]execute_script returns [00:45:55]free content buf [00:45:55]Sock 9.Close socket [00:45:55]Sock 9.Thread stoped [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]accept exits with 8 [00:49:14]New connection [00:49:14]New thread 3066735972 created [00:49:14]Thread 3066592612 joined [00:49:14]Waiting for new connection... [00:49:14] Sock 8.Parse request [00:49:14]Sock 8.Check first char [00:49:14]Sock 8.First char is OK [00:49:14]request: POST /json_proto HTTP/1.0 [00:49:14]Method: POST [00:49:14]URL: /json_proto [00:49:14]Method is POST - this is cgi request [00:49:14]url: /json_proto [00:49:14]query_string will be loaded in cgi processing [00:49:14]execute_cgi json_proto POST (null) [00:49:14]execute_cgi path=json_proto method=POST [00:49:14]POST find Content-Length [00:49:14]Host: 172.17.60.68:8080 [00:49:14]Content-Length: 670 [00:49:14]Content-Type: application/json [00:49:14] [00:49:14]POST finish read [00:49:14]Found Content-Length = 670 [00:49:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 2.950, "sum" : 200.31, "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" ] } } [00:49:14]execute_script... [00:49: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)543271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 2.950, "sum" : 200.31, "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" ] } } [00:49:14]POST & json_proto [00:49:14]process_json_proto [00:49:14]json parsed OK: [00:49:14]protocol is kg_v1.0 [00:49:14]action value=close_receipt [00:49:14]process_action close_receipt [00:49:14]cmd_close_receipt [00:49:14]MH_GetDate [00:49:14]Write to MH i2c: F0 00 00 7C 18 83 [00:49:14]Write i2c OK [00:49:14]MH_I2C_Read... [00:49:14]Read from MH i2c: F0 [00:49:14]MH_I2C_Read... [00:49:14]Read from MH i2c: F0 09 00 [00:49:14]MH_I2C_Read... [00:49:14]Read from MH i2c: F0 09 00 7C 18 00 0B 13 5D 66 8D A7 02 66 09 [00:49:14]GetLastDocTimeStamp 1717375553 [00:49:14]current date 1717375755 [00:49:14]FM_GetShiftState [00:49:14]SAM_PROTO_GetShiftState [00:49:14]wFMCommunicate request_size=4 [00:49:14]MH_SAM_APDU [00:49:14]CAPDU: 80 13 01 00 [00:49:14]Write to MH i2c: E2 08 00 7D 18 80 13 01 00 00 00 00 00 12 [00:49:14]Write i2c OK [00:49:14]MH_I2C_Read... [00:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:14]Read from MH i2c: E2 [00:49:14]MH_I2C_Read... [00:49:14]Read from MH i2c: E2 0E 00 [00:49:14]MH_I2C_Read... [00:49:14]Read from MH i2c: E2 0E 00 7D 18 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 D3 [00:49:14]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:49:14]wFMCommunicate OK [00:49:14]SAM_PROTO_GetShiftState done [00:49:14]FM_GetShiftState done [00:49:14]opened in 1717373417 [00:49:14]opened+sec_in_day 1717459817 [00:49:14]quantity*price = 20030 [00:49:14]sum+1 = 20032 [00:49:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 13 03.06.2024 00:49 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57929 ФПД: 98827498941756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T004915&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57929&fm=98827498941756&tin=02508201610067®Number=0000000000151680&sum=20000 [00:49:15]StoreToDocumentArchive [00:49:15]shift 70 fd 57929 [00:49:15]save to /storage/0070/doc_00057929 [00:49:15]save last doc name /storage/0070/doc_00057929 to /storage/kkm_last_doc_name [00:49:15]save OK [00:49:15]Clear old archive folders... [00:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:49:15]tlvbuf is 019CF050 [00:49:15]SAM_PROTO_ClearQueue [00:49:15]wFMCommunicate request_size=4 [00:49:15]MH_SAM_APDU [00:49:15]CAPDU: 80 09 00 00 [00:49:15]Write to MH i2c: E2 08 00 8A 18 80 09 00 00 00 00 00 00 14 [00:49:15]Write i2c OK [00:49:15]MH_I2C_Read... [00:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:49:15]Read from MH i2c: E2 [00:49:15]MH_I2C_Read... [00:49:15]Read from MH i2c: E2 03 00 [00:49:15]MH_I2C_Read... [00:49:15]Read from MH i2c: E2 03 00 8A 18 00 90 00 16 [00:49:15]RAPDU: 90 00 [00:49:15]wFMCommunicate OK [00:49:15]SAM_PROTO_ClearQueue done [00:49:15]KKMCreateOFDPacket [00:49:15]OFDProtocolAddRootSTLVToBuf [00:49:15]FM_MakeSignedData [00:49:15]FM_MakeSignedData [00:49:15]SAM_PROTO_SignData [00:49:15]wFMCommunicate request_size=4 [00:49:15]MH_SAM_APDU [00:49:15]CAPDU: 80 0D 01 02 [00:49:15]Write to MH i2c: E2 08 00 8B 18 80 0D 01 02 00 00 00 00 1C [00:49:15]Write i2c OK [00:49:15]MH_I2C_Read... [00:49:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:49:15]Read from MH i2c: E2 [00:49:15]MH_I2C_Read... [00:49:15]Read from MH i2c: E2 03 00 [00:49:15]MH_I2C_Read... [00:49:15]Read from MH i2c: E2 03 00 8B 18 00 90 00 17 [00:49:15]RAPDU: 90 00 [00:49:15]wFMCommunicate OK [00:49:15]wFMCommunicate request_size=255 [00:49:15]MH_SAM_APDU [00:49:15]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 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 4F 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 0D 00 00 00 F4 03 04 00 0B 13 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 49 E2 00 00 35 04 06 00 [00:49:15]Write to MH i2c: E2 02 01 8C 18 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 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 4F 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 0D 00 00 00 F4 03 04 00 0B 13 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 49 E2 00 00 35 04 06 00 00 00 C0 [00:49:15]Write i2c OK [00:49:15]MH_I2C_Read... [00:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:16]Read from MH i2c: E2 [00:49:16]MH_I2C_Read... [00:49:16]Read from MH i2c: E2 03 00 [00:49:16]MH_I2C_Read... [00:49:16]Read from MH i2c: E2 03 00 8C 18 00 90 00 18 [00:49:16]RAPDU: 90 00 [00:49:16]wFMCommunicate OK [00:49:16]wFMCommunicate request_size=11 [00:49:16]MH_SAM_APDU [00:49:16]CAPDU: 80 0D 02 02 06 59 E2 11 F7 ED 3C [00:49:16]Write to MH i2c: E2 0E 00 8D 18 80 0D 02 02 06 00 59 E2 11 F7 ED 3C 00 00 97 [00:49:16]Write i2c OK [00:49:16]MH_I2C_Read... [00:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:16]Read from MH i2c: E2 [00:49:16]MH_I2C_Read... [00:49:16]Read from MH i2c: E2 03 00 [00:49:16]MH_I2C_Read... [00:49:16]Read from MH i2c: E2 03 00 8D 18 00 90 00 19 [00:49:16]RAPDU: 90 00 [00:49:16]wFMCommunicate OK [00:49:16]wFMCommunicate request_size=4 [00:49:16]MH_SAM_APDU [00:49:16]CAPDU: 80 0D 03 02 [00:49:16]Write to MH i2c: E2 08 00 8E 18 80 0D 03 02 00 00 00 00 21 [00:49:16]Write i2c OK [00:49:16]MH_I2C_Read... [00:49:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:49:16]Read from MH i2c: E2 [00:49:16]MH_I2C_Read... [00:49:16]Read from MH i2c: E2 0B 00 [00:49:16]MH_I2C_Read... [00:49:16]Read from MH i2c: E2 0B 00 8E 18 00 3A 25 1C 30 ED 71 40 9B 90 00 06 [00:49:16]RAPDU: 3A 25 1C 30 ED 71 40 9B 90 00 [00:49:16]wFMCommunicate OK [00:49:16]SAM_PROTO_SignData done [00:49:16]FM_MakeSignedData done [00:49:16]CreateOFDProtocolMessage [00:49:16]wFMCommunicate request_size=4 [00:49:16]MH_SAM_APDU [00:49:16]CAPDU: 80 11 00 00 [00:49:16]Write to MH i2c: E2 08 00 8F 18 80 11 00 00 00 00 00 00 21 [00:49:16]Write i2c OK [00:49:16]MH_I2C_Read... [00:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:16]Read from MH i2c: E2 [00:49:16]MH_I2C_Read... [00:49:16]Read from MH i2c: E2 17 00 [00:49:16]MH_I2C_Read... [00:49:16]Read from MH i2c: E2 17 00 8F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 74 [00:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:49:16]wFMCommunicate OK [00:49:16]CreateOFDProtocolMessage done [00:49:16]OFDSenderStorePacket 57929 [00:49:16]StoreOFDPacket docnum=57929 [00:49:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 85 D0 08 01 23 29 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 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 4F 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 0D 00 00 00 F4 03 04 00 0B 13 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 49 E2 00 00 35 04 06 00 59 E2 11 F7 ED 3C 3A 25 1C 30 ED 71 40 9B [00:49:16]CheckFolder [00:49:16]dirname=/storage/ofd_packets [00:49:16]CheckFolder done [00:49:16]ProducePacketName [00:49:16]name=ofd_packets/00057929 [00:49:16]NVStorageSaveData ofd_packets/00057929 [00:49:16]File name is /storage/ofd_packets/00057929 [00:49:16]Write 302 bytes [00:49:16]NVStorageSaveData done [00:49:16]OFDSenderStorePacket done [00:49:16]KKMCreateOFDPacket done [00:49:16]NVStorageSaveData kkm_last_timestamp [00:49:16]File name is /storage/kkm_last_timestamp [00:49:16]Write 4 bytes [00:49:16]NVStorageSaveData done [00:49:16]ExternCall_PrintAddStr [00:49:16]wPrintStart [00:49:16]Write to MH i2c: 01 00 00 90 18 A8 [00:49:16]Write i2c OK [00:49:16]MH_I2C_Read... [00:49:16]Read from MH i2c: 01 [00:49:16]MH_I2C_Read... [00:49:16]Read from MH i2c: 01 07 00 [00:49:16]MH_I2C_Read... [00:49:16]Read from MH i2c: 01 07 00 90 18 00 00 00 00 00 FF 0F BD [00:49:16]RasterBufferAndPrint [00:49:16]line Счет N : (1)543271 [00:49:16]line ИНН: 02508201610067 [00:49:16]line Контрольно-Кассовый Чек [00:49:16]line ПРОДАЖА [00:49:16]line ТРК (МРК, ГНК) : 24 [00:49:16]line Товар: 2710124130 [00:49:16]line SUPER 92-К-5 [00:49:16]line 2.950 * 67.90 [00:49:16]line = 200.31 [00:49:16]line НДС 12% НСП 1% [00:49:16]line > о реализуемом товаре [00:49:16]line ОКРУГЛЕНИЕ: -0.31 [00:49:16]line ИТОГО: 200.00 [00:49:16]line Внесено: 200.00 [00:49:16]line СДАЧА: 0.00 [00:49:16]line НСП 1% : 1.77 [00:49:16]line НДС 12% : 21.27 [00:49:16]line Наличными: 200.00 [00:49:16]line Безнал.: 0.00 [00:49:16]line Место: АЗС № 117 "Партнер Нефть" [00:49:16]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:49:16]line СНО: Общий режим [00:49:16]line Чек 13 03.06.2024 00:49 [00:49:16]line Смена: 70 ФФД: 1.0 [00:49:16]line ЗНМ: 0300000048 [00:49:16]line РНМ: 0000000000151680 [00:49:16]line Версия ККМ: v1.0 [00:49:16]line ФМ: 0000000000959414 [00:49:16]line ФД: 57929 [00:49:16]line ФПД: 98827498941756 [00:49:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T004915&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57929&fm=98827498941756&tin=02508201610067®Number=0000000000151680&sum=20000 [00:49:16]OFD Sender: Processing packet 57929 [packets to send 50, broken 49] [00:49:16]ProducePacketName [00:49:16]name=ofd_packets/00057929 [00:49:16]OFD Sender: To server: pG, [00:49:16]CommunicateWithHost lk.salyk.kg:30040 [00:49:16]ConnectInit lk.salyk.kg [00:49:16]written 0, free lines is 4095 [00:49:16]Connected sock=10 [00:49:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 85 D0 08 01 23 29 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 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 4F 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 0D 00 00 00 F4 03 04 00 0B 13 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 49 E2 00 00 35 04 06 00 59 E2 11 F7 ED 3C 3A 25 1C 30 ED 71 40 9B [00:49:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 77 40 47 00 BA D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 49 E2 00 00 F4 03 04 00 DB BD 5C 66 B6 04 01 00 00 58 89 76 DB 18 71 B2 3F [00:49:17]CommunicateWithHost err = 0 [00:49:17]CheckOFDResponse [00:49:17]1017 (14) - 77093643461234 [00:49:17]1041 (16) - 0000000000959414 [00:49:17]1040 (4) - 57929 [00:49:17]1012 (4) - 02.06.2024 18:45 [00:49:17]1206 (1) - 0 [00:49:17]OFD Sender: Remove packet 57929 [00:49:17]ProducePacketName [00:49:17]name=ofd_packets/00057929 [00:49:17]NVStorageDeleteData [00:49:17]Write to MH i2c: 01 00 00 BB 18 D3 [00:49:17]Write i2c OK [00:49:17]MH_I2C_Read... [00:49:17]Read from MH i2c: 01 [00:49:17]MH_I2C_Read... [00:49:17]Read from MH i2c: 01 07 00 [00:49:17]MH_I2C_Read... [00:49:17]Read from MH i2c: 01 07 00 BB 18 00 00 00 00 00 AA 0C 90 [00:49:17]RasterBufferAndPrint [00:49:17]line [00:49:17]line [00:49:17]line [00:49:17]line [00:49:17]line [00:49:17]written 0, free lines is 3247 [00:49:17]MH_Cut [00:49:17]Write to MH i2c: D1 01 00 C2 18 01 AC [00:49:17]Write i2c OK [00:49:17]MH_I2C_Read... [00:49:17]Read from MH i2c: D1 [00:49:17]MH_I2C_Read... [00:49:17]Read from MH i2c: D1 01 00 [00:49:17]MH_I2C_Read... [00:49:17]Read from MH i2c: D1 01 00 C2 18 00 AB [00:49:17]Write to MH i2c: 01 00 00 C3 18 DB [00:49:17]Write i2c OK [00:49:17]MH_I2C_Read... [00:49:17]OFD Sender: No OFD packet to send [00:49:18]*** Cut start [00:49:18]*** Partial cut [00:49:18]*** CUTSNS_PIN = 1 [00:49:18]*** CUTSNS_PIN = 0 [00:49:18]*** Brake cut motor [00:49:18]Read from MH i2c: 01 [00:49:18]MH_I2C_Read... [00:49:18]*** Stop cut motor [00:49:18]*** Cut end [00:49:18]Read from MH i2c: 01 07 00 [00:49:18]MH_I2C_Read... [00:49:18]Read from MH i2c: 01 07 00 C3 18 00 00 00 00 00 FF 0F F0 [00:49:18]process_action close_receipt done [00:49:18]requested_data is exist [00:49:18]produce_requested_data [00:49:18]requested_item fm.sn is exist - process it [00:49:18]wFMCommunicate request_size=4 [00:49:18]MH_SAM_APDU [00:49:18]CAPDU: 80 11 00 00 [00:49:18]Write to MH i2c: E2 08 00 C4 18 80 11 00 00 00 00 00 00 56 [00:49:18]Write i2c OK [00:49:18]MH_I2C_Read... [00:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:18]Read from MH i2c: E2 [00:49:18]MH_I2C_Read... [00:49:18]Read from MH i2c: E2 17 00 [00:49:18]MH_I2C_Read... [00:49:18]Read from MH i2c: E2 17 00 C4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 A9 [00:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:49:18]wFMCommunicate OK [00:49:18]requested_item fd.num is exist - process it [00:49:18]SAM_PROTO_GetFieldsCounters [00:49:18]wFMCommunicate request_size=4 [00:49:18]MH_SAM_APDU [00:49:18]CAPDU: 80 13 00 00 [00:49:18]Write to MH i2c: E2 08 00 C5 18 80 13 00 00 00 00 00 00 59 [00:49:18]Write i2c OK [00:49:18]MH_I2C_Read... [00:49:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:49:18]Read from MH i2c: E2 [00:49:18]MH_I2C_Read... [00:49:18]Read from MH i2c: E2 62 00 [00:49:18]MH_I2C_Read... [00:49:18]Read from MH i2c: E2 62 00 C5 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 49 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [00:49:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 49 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:49:18]wFMCommunicate OK [00:49:18]SAM_PROTO_GetFieldsCounters done [00:49:18]requested_item shift.num is exist - process it [00:49:18]requested_item shift.opened is exist - process it [00:49:18]req_shift_opened [00:49:18]FM_GetShiftState [00:49:18]SAM_PROTO_GetShiftState [00:49:18]wFMCommunicate request_size=4 [00:49:18]MH_SAM_APDU [00:49:18]CAPDU: 80 13 01 00 [00:49:18]Write to MH i2c: E2 08 00 C6 18 80 13 01 00 00 00 00 00 5B [00:49:18]Write i2c OK [00:49:18]MH_I2C_Read... [00:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:19]Read from MH i2c: E2 [00:49:19]MH_I2C_Read... [00:49:19]Read from MH i2c: E2 0E 00 [00:49:19]MH_I2C_Read... [00:49:19]Read from MH i2c: E2 0E 00 C6 18 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 1C [00:49:19]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:49:19]wFMCommunicate OK [00:49:19]SAM_PROTO_GetShiftState done [00:49:19]FM_GetShiftState done [00:49:19]req_shift_opened done [00:49:19]requested_item shift.open_date is exist - process it [00:49:19]req_shift_open_date [00:49:19]req_shift_open_date done [00:49:19]produce_requested_data done [00:49:19]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57929,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:49:19]process_action_free close_receipt [00:49:19]json_value_free [00:49:19]json_value_free done [00:49:19]process_json_proto returns [00:49:19]Send response to host [00:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57929,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:49:19]free response buf [00:49:19]execute_script done [00:49:19]execute_script returns [00:49:19]free content buf [00:49:19]Sock 8.Close socket [00:49:19]Sock 8.Thread stoped [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:54]accept exits with 9 [00:55:54]New connection [00:55:54]New thread 3066592612 created [00:55:54]Thread 3066735972 joined [00:55:54]Waiting for new connection... [00:55:54] Sock 9.Parse request [00:55:54]Sock 9.Check first char [00:55:54]Sock 9.First char is OK [00:55:54]request: POST /json_proto HTTP/1.0 [00:55:54]Method: POST [00:55:54]URL: /json_proto [00:55:54]Method is POST - this is cgi request [00:55:54]url: /json_proto [00:55:54]query_string will be loaded in cgi processing [00:55:54]execute_cgi json_proto POST (null) [00:55:54]execute_cgi path=json_proto method=POST [00:55:54]POST find Content-Length [00:55:54]Host: 172.17.60.68:8080 [00:55:54]Content-Length: 796 [00:55:54]Content-Type: application/json [00:55:54] [00:55:54]POST finish read [00:55:54]Found Content-Length = 796 [00:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 17.680, "sum" : 1200.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:54]execute_script... [00:55:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 17.680, "sum" : 1200.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:54]POST & json_proto [00:55:54]process_json_proto [00:55:54]json parsed OK: [00:55:54]protocol is kg_v1.0 [00:55:54]action value=close_receipt [00:55:54]process_action close_receipt [00:55:54]cmd_close_receipt [00:55:54]MH_GetDate [00:55:54]Write to MH i2c: F0 00 00 C7 18 CE [00:55:54]Write i2c OK [00:55:54]MH_I2C_Read... [00:55:54]Read from MH i2c: F0 [00:55:54]MH_I2C_Read... [00:55:54]Read from MH i2c: F0 09 00 [00:55:54]MH_I2C_Read... [00:55:54]Read from MH i2c: F0 09 00 C7 18 00 9B 14 5D 66 8D A7 02 66 E5 [00:55:54]GetLastDocTimeStamp 1717375755 [00:55:54]current date 1717376155 [00:55:54]FM_GetShiftState [00:55:54]SAM_PROTO_GetShiftState [00:55:54]wFMCommunicate request_size=4 [00:55:54]MH_SAM_APDU [00:55:54]CAPDU: 80 13 01 00 [00:55:54]Write to MH i2c: E2 08 00 C8 18 80 13 01 00 00 00 00 00 5D [00:55:54]Write i2c OK [00:55:54]MH_I2C_Read... [00:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:54]Read from MH i2c: E2 [00:55:54]MH_I2C_Read... [00:55:54]Read from MH i2c: E2 0E 00 [00:55:54]MH_I2C_Read... [00:55:54]Read from MH i2c: E2 0E 00 C8 18 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 1E [00:55:54]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:55:54]wFMCommunicate OK [00:55:54]SAM_PROTO_GetShiftState done [00:55:54]FM_GetShiftState done [00:55:54]opened in 1717373417 [00:55:54]opened+sec_in_day 1717459817 [00:55:54]quantity*price = 120047 [00:55:54]sum+1 = 120048 [00:55:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.47 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.47 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 14 03.06.2024 00:55 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57930 ФПД: 117922196070139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T005555&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57930&fm=117922196070139&tin=02508201610067®Number=0000000000151680&sum=120047 [00:55:55]StoreToDocumentArchive [00:55:55]shift 70 fd 57930 [00:55:55]save to /storage/0070/doc_00057930 [00:55:55]save last doc name /storage/0070/doc_00057930 to /storage/kkm_last_doc_name [00:55:55]save OK [00:55:55]Clear old archive folders... [00:55:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:55:55]tlvbuf is B6EA55C0 [00:55:55]SAM_PROTO_ClearQueue [00:55:55]wFMCommunicate request_size=4 [00:55:55]MH_SAM_APDU [00:55:55]CAPDU: 80 09 00 00 [00:55:55]Write to MH i2c: E2 08 00 D5 18 80 09 00 00 00 00 00 00 5F [00:55:55]Write i2c OK [00:55:55]MH_I2C_Read... [00:55:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:55]Read from MH i2c: E2 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: E2 03 00 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: E2 03 00 D5 18 00 90 00 61 [00:55:55]RAPDU: 90 00 [00:55:55]wFMCommunicate OK [00:55:55]SAM_PROTO_ClearQueue done [00:55:55]KKMCreateOFDPacket [00:55:55]OFDProtocolAddRootSTLVToBuf [00:55:55]FM_MakeSignedData [00:55:55]FM_MakeSignedData [00:55:55]SAM_PROTO_SignData [00:55:55]wFMCommunicate request_size=4 [00:55:55]MH_SAM_APDU [00:55:55]CAPDU: 80 0D 01 02 [00:55:55]Write to MH i2c: E2 08 00 D6 18 80 0D 01 02 00 00 00 00 67 [00:55:55]Write i2c OK [00:55:55]MH_I2C_Read... [00:55:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:55]Read from MH i2c: E2 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: E2 03 00 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: E2 03 00 D6 18 00 90 00 62 [00:55:55]RAPDU: 90 00 [00:55:55]wFMCommunicate OK [00:55:55]wFMCommunicate request_size=255 [00:55:55]MH_SAM_APDU [00:55:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 10 45 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 EF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9B 14 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4A E2 00 00 35 04 06 00 [00:55:55]Write to MH i2c: E2 02 01 D7 18 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 10 45 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 EF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9B 14 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4A E2 00 00 35 04 06 00 00 00 64 [00:55:55]Write i2c OK [00:55:55]MH_I2C_Read... [00:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:55]Read from MH i2c: E2 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: E2 03 00 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: E2 03 00 D7 18 00 90 00 63 [00:55:55]RAPDU: 90 00 [00:55:55]wFMCommunicate OK [00:55:55]wFMCommunicate request_size=11 [00:55:55]MH_SAM_APDU [00:55:55]CAPDU: 80 0D 02 02 06 6B 3F E6 9B 9E FB [00:55:55]Write to MH i2c: E2 0E 00 D8 18 80 0D 02 02 06 00 6B 3F E6 9B 9E FB 00 00 3A [00:55:55]Write i2c OK [00:55:55]MH_I2C_Read... [00:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:55]Read from MH i2c: E2 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: E2 03 00 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: E2 03 00 D8 18 00 90 00 64 [00:55:55]RAPDU: 90 00 [00:55:55]wFMCommunicate OK [00:55:55]wFMCommunicate request_size=4 [00:55:55]MH_SAM_APDU [00:55:55]CAPDU: 80 0D 03 02 [00:55:55]Write to MH i2c: E2 08 00 D9 18 80 0D 03 02 00 00 00 00 6C [00:55:55]Write i2c OK [00:55:55]MH_I2C_Read... [00:55:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:55]Read from MH i2c: E2 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: E2 0B 00 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: E2 0B 00 D9 18 00 7B 8E 25 3C 23 65 AB 2A 90 00 34 [00:55:55]RAPDU: 7B 8E 25 3C 23 65 AB 2A 90 00 [00:55:55]wFMCommunicate OK [00:55:55]SAM_PROTO_SignData done [00:55:55]FM_MakeSignedData done [00:55:55]CreateOFDProtocolMessage [00:55:55]wFMCommunicate request_size=4 [00:55:55]MH_SAM_APDU [00:55:55]CAPDU: 80 11 00 00 [00:55:55]Write to MH i2c: E2 08 00 DA 18 80 11 00 00 00 00 00 00 6C [00:55:55]Write i2c OK [00:55:55]MH_I2C_Read... [00:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:55]Read from MH i2c: E2 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: E2 17 00 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: E2 17 00 DA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 BF [00:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:55:55]wFMCommunicate OK [00:55:55]CreateOFDProtocolMessage done [00:55:55]OFDSenderStorePacket 57930 [00:55:55]StoreOFDPacket docnum=57930 [00:55:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 C1 75 08 01 82 00 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 10 45 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 EF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9B 14 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4A E2 00 00 35 04 06 00 6B 3F E6 9B 9E FB 7B 8E 25 3C 23 65 AB 2A [00:55:55]CheckFolder [00:55:55]dirname=/storage/ofd_packets [00:55:55]CheckFolder done [00:55:55]ProducePacketName [00:55:55]name=ofd_packets/00057930 [00:55:55]NVStorageSaveData ofd_packets/00057930 [00:55:55]File name is /storage/ofd_packets/00057930 [00:55:55]Write 302 bytes [00:55:55]NVStorageSaveData done [00:55:55]OFDSenderStorePacket done [00:55:55]KKMCreateOFDPacket done [00:55:55]NVStorageSaveData kkm_last_timestamp [00:55:55]File name is /storage/kkm_last_timestamp [00:55:55]Write 4 bytes [00:55:55]NVStorageSaveData done [00:55:55]ExternCall_PrintAddStr [00:55:55]wPrintStart [00:55:55]Write to MH i2c: 01 00 00 DB 18 F3 [00:55:55]Write i2c OK [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: 01 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: 01 07 00 [00:55:55]MH_I2C_Read... [00:55:55]Read from MH i2c: 01 07 00 DB 18 00 00 00 00 00 FF 0F 08 [00:55:55]RasterBufferAndPrint [00:55:55]line Счет N : (1)543272 [00:55:55]line ИНН: 02508201610067 [00:55:55]line Контрольно-Кассовый Чек [00:55:55]line ПРОДАЖА [00:55:55]line ТРК (МРК, ГНК) : 24 [00:55:55]line Товар: 2710124130 [00:55:55]line SUPER 92-К-5 [00:55:55]line 17.680 * 67.90 [00:55:55]line = 1200.47 [00:55:55]line НДС 12% НСП 1% [00:55:55]line > о реализуемом товаре [00:55:55]line ИТОГО: 1200.47 [00:55:55]line НСП 1% : 10.62 [00:55:55]line НДС 12% : 127.48 [00:55:55]line Наличными: 0.00 [00:55:55]line Безнал.: 1200.47 [00:55:55]line Место: АЗС № 117 "Партнер Нефть" [00:55:55]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:55:55]line СНО: Общий режим [00:55:55]line Чек 14 03.06.2024 00:55 [00:55:55]line Смена: 70 ФФД: 1.0 [00:55:55]line ЗНМ: 0300000048 [00:55:55]line РНМ: 0000000000151680 [00:55:55]line Версия ККМ: v1.0 [00:55:55]line Платежная система: O! деньги [00:55:55]line ФМ: 0000000000959414 [00:55:55]line ФД: 57930 [00:55:55]line ФПД: 117922196070139 [00:55:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T005555&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57930&fm=117922196070139&tin=02508201610067®Number=0000000000151680&sum=120047 [00:55:56]OFD Sender: Processing packet 57930 [packets to send 50, broken 49] [00:55:56]ProducePacketName [00:55:56]name=ofd_packets/00057930 [00:55:56]OFD Sender: To server: pG, [00:55:56]CommunicateWithHost lk.salyk.kg:30040 [00:55:56]ConnectInit lk.salyk.kg [00:55:56]written 0, free lines is 4095 [00:55:56]Connected sock=10 [00:55:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 C1 75 08 01 82 00 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 10 45 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 EF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9B 14 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4A E2 00 00 35 04 06 00 6B 3F E6 9B 9E FB 7B 8E 25 3C 23 65 AB 2A [00:55:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 B9 03 47 00 D0 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4A E2 00 00 F4 03 04 00 6A BF 5C 66 B6 04 01 00 00 E7 7B 62 90 4A 23 21 B2 [00:55:56]CommunicateWithHost err = 0 [00:55:56]CheckOFDResponse [00:55:56]1017 (14) - 77093643461234 [00:55:56]1041 (16) - 0000000000959414 [00:55:56]1040 (4) - 57930 [00:55:56]1012 (4) - 02.06.2024 18:52 [00:55:56]1206 (1) - 0 [00:55:56]OFD Sender: Remove packet 57930 [00:55:56]ProducePacketName [00:55:56]name=ofd_packets/00057930 [00:55:56]NVStorageDeleteData [00:55:56]Write to MH i2c: 01 00 00 05 19 1E [00:55:56]Write i2c OK [00:55:56]MH_I2C_Read... [00:55:56]Read from MH i2c: 01 [00:55:56]MH_I2C_Read... [00:55:56]Read from MH i2c: 01 07 00 [00:55:56]MH_I2C_Read... [00:55:56]Read from MH i2c: 01 07 00 05 19 00 00 00 00 00 C4 0C F5 [00:55:56]RasterBufferAndPrint [00:55:56]line [00:55:56]line [00:55:56]line [00:55:56]line [00:55:56]line [00:55:56]written 0, free lines is 3273 [00:55:56]MH_Cut [00:55:56]Write to MH i2c: D1 01 00 0C 19 01 F7 [00:55:56]Write i2c OK [00:55:56]MH_I2C_Read... [00:55:56]Read from MH i2c: D1 [00:55:56]MH_I2C_Read... [00:55:56]Read from MH i2c: D1 01 00 [00:55:56]MH_I2C_Read... [00:55:56]Read from MH i2c: D1 01 00 0C 19 00 F6 [00:55:56]Write to MH i2c: 01 00 00 0D 19 26 [00:55:56]Write i2c OK [00:55:56]MH_I2C_Read... [00:55:56]OFD Sender: No OFD packet to send [00:55:57]*** Cut start [00:55:57]*** Partial cut [00:55:57]*** CUTSNS_PIN = 1 [00:55:57]*** CUTSNS_PIN = 0 [00:55:57]*** Brake cut motor [00:55:58]Read from MH i2c: 01 [00:55:58]MH_I2C_Read... [00:55:58]*** Stop cut motor [00:55:58]*** Cut end [00:55:58]Read from MH i2c: 01 07 00 [00:55:58]MH_I2C_Read... [00:55:58]Read from MH i2c: 01 07 00 0D 19 00 00 00 00 00 FF 0F 3B [00:55:58]process_action close_receipt done [00:55:58]requested_data is exist [00:55:58]produce_requested_data [00:55:58]requested_item fm.sn is exist - process it [00:55:58]wFMCommunicate request_size=4 [00:55:58]MH_SAM_APDU [00:55:58]CAPDU: 80 11 00 00 [00:55:58]Write to MH i2c: E2 08 00 0E 19 80 11 00 00 00 00 00 00 A1 [00:55:58]Write i2c OK [00:55:58]MH_I2C_Read... [00:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:58]Read from MH i2c: E2 [00:55:58]MH_I2C_Read... [00:55:58]Read from MH i2c: E2 17 00 [00:55:58]MH_I2C_Read... [00:55:58]Read from MH i2c: E2 17 00 0E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 F4 [00:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:55:58]wFMCommunicate OK [00:55:58]requested_item fd.num is exist - process it [00:55:58]SAM_PROTO_GetFieldsCounters [00:55:58]wFMCommunicate request_size=4 [00:55:58]MH_SAM_APDU [00:55:58]CAPDU: 80 13 00 00 [00:55:58]Write to MH i2c: E2 08 00 0F 19 80 13 00 00 00 00 00 00 A4 [00:55:58]Write i2c OK [00:55:58]MH_I2C_Read... [00:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:58]Read from MH i2c: E2 [00:55:58]MH_I2C_Read... [00:55:58]Read from MH i2c: E2 62 00 [00:55:58]MH_I2C_Read... [00:55:58]Read from MH i2c: E2 62 00 0F 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 4A E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [00:55:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 4A E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:55:58]wFMCommunicate OK [00:55:58]SAM_PROTO_GetFieldsCounters done [00:55:58]requested_item shift.num is exist - process it [00:55:58]requested_item shift.opened is exist - process it [00:55:58]req_shift_opened [00:55:58]FM_GetShiftState [00:55:58]SAM_PROTO_GetShiftState [00:55:58]wFMCommunicate request_size=4 [00:55:58]MH_SAM_APDU [00:55:58]CAPDU: 80 13 01 00 [00:55:58]Write to MH i2c: E2 08 00 10 19 80 13 01 00 00 00 00 00 A6 [00:55:58]Write i2c OK [00:55:58]MH_I2C_Read... [00:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:58]Read from MH i2c: E2 [00:55:58]MH_I2C_Read... [00:55:58]Read from MH i2c: E2 0E 00 [00:55:58]MH_I2C_Read... [00:55:58]Read from MH i2c: E2 0E 00 10 19 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 67 [00:55:58]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:55:58]wFMCommunicate OK [00:55:58]SAM_PROTO_GetShiftState done [00:55:58]FM_GetShiftState done [00:55:58]req_shift_opened done [00:55:58]requested_item shift.open_date is exist - process it [00:55:58]req_shift_open_date [00:55:58]req_shift_open_date done [00:55:58]produce_requested_data done [00:55:58]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57930,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:55:58]process_action_free close_receipt [00:55:58]json_value_free [00:55:58]json_value_free done [00:55:58]process_json_proto returns [00:55:58]Send response to host [00:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57930,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:55:58]free response buf [00:55:58]execute_script done [00:55:58]execute_script returns [00:55:58]free content buf [00:55:58]Sock 9.Close socket [00:55:58]Sock 9.Thread stoped [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:24]accept exits with 8 [00:57:24]New connection [00:57:24]New thread 3066735972 created [00:57:24]Thread 3066592612 joined [00:57:24]Waiting for new connection... [00:57:24] Sock 8.Parse request [00:57:24]Sock 8.Check first char [00:57:24]Sock 8.First char is OK [00:57:24]request: POST /json_proto HTTP/1.0 [00:57:24]Method: POST [00:57:24]URL: /json_proto [00:57:24]Method is POST - this is cgi request [00:57:24]url: /json_proto [00:57:24]query_string will be loaded in cgi processing [00:57:24]execute_cgi json_proto POST (null) [00:57:24]execute_cgi path=json_proto method=POST [00:57:24]POST find Content-Length [00:57:24]Host: 172.17.60.68:8080 [00:57:24]Content-Length: 800 [00:57:24]Content-Type: application/json [00:57:24] [00:57:24]POST finish read [00:57:24]Found Content-Length = 800 [00:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543273", "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.90, "quantity" : 8.450, "sum" : 565.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 565.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:57:24]execute_script... [00:57: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)543273", "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.90, "quantity" : 8.450, "sum" : 565.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 565.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:57:24]POST & json_proto [00:57:24]process_json_proto [00:57:24]json parsed OK: [00:57:24]protocol is kg_v1.0 [00:57:24]action value=close_receipt [00:57:24]process_action close_receipt [00:57:24]cmd_close_receipt [00:57:24]MH_GetDate [00:57:24]Write to MH i2c: F0 00 00 11 19 19 [00:57:24]Write i2c OK [00:57:24]MH_I2C_Read... [00:57:24]Read from MH i2c: F0 [00:57:24]MH_I2C_Read... [00:57:24]Read from MH i2c: F0 09 00 [00:57:24]MH_I2C_Read... [00:57:24]Read from MH i2c: F0 09 00 11 19 00 F5 14 5D 66 8D A7 02 66 8A [00:57:24]GetLastDocTimeStamp 1717376155 [00:57:24]current date 1717376245 [00:57:24]FM_GetShiftState [00:57:24]SAM_PROTO_GetShiftState [00:57:24]wFMCommunicate request_size=4 [00:57:24]MH_SAM_APDU [00:57:24]CAPDU: 80 13 01 00 [00:57:24]Write to MH i2c: E2 08 00 12 19 80 13 01 00 00 00 00 00 A8 [00:57:24]Write i2c OK [00:57:24]MH_I2C_Read... [00:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:24]Read from MH i2c: E2 [00:57:24]MH_I2C_Read... [00:57:24]Read from MH i2c: E2 0E 00 [00:57:24]MH_I2C_Read... [00:57:24]Read from MH i2c: E2 0E 00 12 19 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 69 [00:57:24]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:57:24]wFMCommunicate OK [00:57:24]SAM_PROTO_GetShiftState done [00:57:24]FM_GetShiftState done [00:57:24]opened in 1717373417 [00:57:24]opened+sec_in_day 1717459817 [00:57:24]quantity*price = 56530 [00:57:24]sum+1 = 56532 [00:57:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 565.31 НСП 1% : 5.00 НДС 12% : 60.03 Наличными: 0.00 Безнал.: 565.31 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 15 03.06.2024 00:57 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57931 ФПД: 205270240548124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T005725&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57931&fm=205270240548124&tin=02508201610067®Number=0000000000151680&sum=56531 [00:57:25]StoreToDocumentArchive [00:57:25]shift 70 fd 57931 [00:57:25]save to /storage/0070/doc_00057931 [00:57:25]save last doc name /storage/0070/doc_00057931 to /storage/kkm_last_doc_name [00:57:25]save OK [00:57:25]Clear old archive folders... [00:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:57:25]tlvbuf is B6D73560 [00:57:25]SAM_PROTO_ClearQueue [00:57:25]wFMCommunicate request_size=4 [00:57:25]MH_SAM_APDU [00:57:25]CAPDU: 80 09 00 00 [00:57:25]Write to MH i2c: E2 08 00 1F 19 80 09 00 00 00 00 00 00 AA [00:57:25]Write i2c OK [00:57:25]MH_I2C_Read... [00:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:57:25]Read from MH i2c: E2 [00:57:25]MH_I2C_Read... [00:57:25]Read from MH i2c: E2 03 00 [00:57:25]MH_I2C_Read... [00:57:25]Read from MH i2c: E2 03 00 1F 19 00 90 00 AC [00:57:25]RAPDU: 90 00 [00:57:25]wFMCommunicate OK [00:57:25]SAM_PROTO_ClearQueue done [00:57:25]KKMCreateOFDPacket [00:57:25]OFDProtocolAddRootSTLVToBuf [00:57:25]FM_MakeSignedData [00:57:25]FM_MakeSignedData [00:57:25]SAM_PROTO_SignData [00:57:25]wFMCommunicate request_size=4 [00:57:25]MH_SAM_APDU [00:57:25]CAPDU: 80 0D 01 02 [00:57:25]Write to MH i2c: E2 08 00 20 19 80 0D 01 02 00 00 00 00 B2 [00:57:25]Write i2c OK [00:57:25]MH_I2C_Read... [00:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:57:25]Read from MH i2c: E2 [00:57:25]MH_I2C_Read... [00:57:25]Read from MH i2c: E2 03 00 [00:57:25]MH_I2C_Read... [00:57:25]Read from MH i2c: E2 03 00 20 19 00 90 00 AD [00:57:25]RAPDU: 90 00 [00:57:25]wFMCommunicate OK [00:57:25]wFMCommunicate request_size=255 [00:57:25]MH_SAM_APDU [00:57: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 02 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 DC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 DC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 DC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F5 14 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4B E2 00 00 35 04 06 00 BA [00:57:25]Write to MH i2c: E2 02 01 21 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 DC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 DC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 DC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F5 14 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4B E2 00 00 35 04 06 00 BA 00 00 AB [00:57:25]Write i2c OK [00:57:25]MH_I2C_Read... [00:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:25]Read from MH i2c: E2 [00:57:25]MH_I2C_Read... [00:57:25]Read from MH i2c: E2 03 00 [00:57:25]MH_I2C_Read... [00:57:25]Read from MH i2c: E2 03 00 21 19 00 90 00 AE [00:57:25]RAPDU: 90 00 [00:57:25]wFMCommunicate OK [00:57:25]wFMCommunicate request_size=10 [00:57:25]MH_SAM_APDU [00:57:25]CAPDU: 80 0D 02 02 05 B1 33 C5 55 1C [00:57:25]Write to MH i2c: E2 0D 00 22 19 80 0D 02 02 05 00 B1 33 C5 55 1C 00 00 D9 [00:57:25]Write i2c OK [00:57:25]MH_I2C_Read... [00:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:25]Read from MH i2c: E2 [00:57:25]MH_I2C_Read... [00:57:25]Read from MH i2c: E2 03 00 [00:57:25]MH_I2C_Read... [00:57:25]Read from MH i2c: E2 03 00 22 19 00 90 00 AF [00:57:25]RAPDU: 90 00 [00:57:25]wFMCommunicate OK [00:57:25]wFMCommunicate request_size=4 [00:57:25]MH_SAM_APDU [00:57:25]CAPDU: 80 0D 03 02 [00:57:25]Write to MH i2c: E2 08 00 23 19 80 0D 03 02 00 00 00 00 B7 [00:57:25]Write i2c OK [00:57:25]MH_I2C_Read... [00:57:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:57:26]Read from MH i2c: E2 [00:57:26]MH_I2C_Read... [00:57:26]Read from MH i2c: E2 0B 00 [00:57:26]MH_I2C_Read... [00:57:26]Read from MH i2c: E2 0B 00 23 19 00 EF AA A3 8D 0E 80 E1 97 90 00 87 [00:57:26]RAPDU: EF AA A3 8D 0E 80 E1 97 90 00 [00:57:26]wFMCommunicate OK [00:57:26]SAM_PROTO_SignData done [00:57:26]FM_MakeSignedData done [00:57:26]CreateOFDProtocolMessage [00:57:26]wFMCommunicate request_size=4 [00:57:26]MH_SAM_APDU [00:57:26]CAPDU: 80 11 00 00 [00:57:26]Write to MH i2c: E2 08 00 24 19 80 11 00 00 00 00 00 00 B7 [00:57:26]Write i2c OK [00:57:26]MH_I2C_Read... [00:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:26]Read from MH i2c: E2 [00:57:26]MH_I2C_Read... [00:57:26]Read from MH i2c: E2 17 00 [00:57:26]MH_I2C_Read... [00:57:26]Read from MH i2c: E2 17 00 24 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 0A [00:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:57:26]wFMCommunicate OK [00:57:26]CreateOFDProtocolMessage done [00:57:26]OFDSenderStorePacket 57931 [00:57:26]StoreOFDPacket docnum=57931 [00:57:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 70 47 07 01 04 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 DC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 DC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 DC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F5 14 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4B E2 00 00 35 04 06 00 BA B1 33 C5 55 1C EF AA A3 8D 0E 80 E1 97 [00:57:26]CheckFolder [00:57:26]dirname=/storage/ofd_packets [00:57:26]CheckFolder done [00:57:26]ProducePacketName [00:57:26]name=ofd_packets/00057931 [00:57:26]NVStorageSaveData ofd_packets/00057931 [00:57:26]File name is /storage/ofd_packets/00057931 [00:57:26]Write 301 bytes [00:57:26]NVStorageSaveData done [00:57:26]OFDSenderStorePacket done [00:57:26]KKMCreateOFDPacket done [00:57:26]NVStorageSaveData kkm_last_timestamp [00:57:26]File name is /storage/kkm_last_timestamp [00:57:26]Write 4 bytes [00:57:26]NVStorageSaveData done [00:57:26]ExternCall_PrintAddStr [00:57:26]wPrintStart [00:57:26]Write to MH i2c: 01 00 00 25 19 3E [00:57:26]Write i2c OK [00:57:26]MH_I2C_Read... [00:57:26]Read from MH i2c: 01 [00:57:26]MH_I2C_Read... [00:57:26]Read from MH i2c: 01 07 00 [00:57:26]MH_I2C_Read... [00:57:26]Read from MH i2c: 01 07 00 25 19 00 00 00 00 00 FF 0F 53 [00:57:26]RasterBufferAndPrint [00:57:26]line Счет N : (1)543273 [00:57:26]line ИНН: 02508201610067 [00:57:26]line Контрольно-Кассовый Чек [00:57:26]line ПРОДАЖА [00:57:26]line ТРК (МРК, ГНК) : 12 [00:57:26]line Товар: 2710124130 [00:57:26]line Аи-92-К-5 [00:57:26]line 8.450 * 66.90 [00:57:26]line = 565.31 [00:57:26]line НДС 12% НСП 1% [00:57:26]line > о реализуемом товаре [00:57:26]line ИТОГО: 565.31 [00:57:26]line НСП 1% : 5.00 [00:57:26]line НДС 12% : 60.03 [00:57:26]line Наличными: 0.00 [00:57:26]line Безнал.: 565.31 [00:57:26]line Место: АЗС № 117 "Партнер Нефть" [00:57:26]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [00:57:26]line СНО: Общий режим [00:57:26]line Чек 15 03.06.2024 00:57 [00:57:26]line Смена: 70 ФФД: 1.0 [00:57:26]line ЗНМ: 0300000048 [00:57:26]line РНМ: 0000000000151680 [00:57:26]line Версия ККМ: v1.0 [00:57:26]line Платежная система: O! деньги [00:57:26]line ФМ: 0000000000959414 [00:57:26]line ФД: 57931 [00:57:26]line ФПД: 205270240548124 [00:57:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T005725&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57931&fm=205270240548124&tin=02508201610067®Number=0000000000151680&sum=56531 [00:57:26]OFD Sender: Processing packet 57931 [packets to send 50, broken 49] [00:57:26]ProducePacketName [00:57:26]name=ofd_packets/00057931 [00:57:26]OFD Sender: To server: pG, [00:57:26]CommunicateWithHost lk.salyk.kg:30040 [00:57:26]ConnectInit lk.salyk.kg [00:57:26]written 0, free lines is 4095 [00:57:26]Connected sock=10 [00:57:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 70 47 07 01 04 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 DC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 DC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 DC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F5 14 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4B E2 00 00 35 04 06 00 BA B1 33 C5 55 1C EF AA A3 8D 0E 80 E1 97 [00:57:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 DC 81 47 00 06 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4B E2 00 00 F4 03 04 00 C5 BF 5C 66 B6 04 01 00 00 F1 44 6B B1 5F 10 B5 0B [00:57:26]CommunicateWithHost err = 0 [00:57:26]CheckOFDResponse [00:57:26]1017 (14) - 77093643461234 [00:57:26]1041 (16) - 0000000000959414 [00:57:26]1040 (4) - 57931 [00:57:26]1012 (4) - 02.06.2024 18:53 [00:57:26]1206 (1) - 0 [00:57:26]OFD Sender: Remove packet 57931 [00:57:26]ProducePacketName [00:57:26]name=ofd_packets/00057931 [00:57:26]NVStorageDeleteData [00:57:26]Write to MH i2c: 01 00 00 4F 19 68 [00:57:26]Write i2c OK [00:57:26]MH_I2C_Read... [00:57:26]Read from MH i2c: 01 [00:57:26]MH_I2C_Read... [00:57:26]Read from MH i2c: 01 07 00 [00:57:26]MH_I2C_Read... [00:57:26]Read from MH i2c: 01 07 00 4F 19 00 00 00 00 00 C3 0C 3E [00:57:26]RasterBufferAndPrint [00:57:26]line [00:57:26]line [00:57:26]line [00:57:26]line [00:57:26]line [00:57:26]written 0, free lines is 3274 [00:57:26]MH_Cut [00:57:26]Write to MH i2c: D1 01 00 56 19 01 41 [00:57:26]Write i2c OK [00:57:26]MH_I2C_Read... [00:57:26]Read from MH i2c: D1 [00:57:26]MH_I2C_Read... [00:57:26]Read from MH i2c: D1 01 00 [00:57:26]MH_I2C_Read... [00:57:26]Read from MH i2c: D1 01 00 56 19 00 40 [00:57:26]Write to MH i2c: 01 00 00 57 19 70 [00:57:26]Write i2c OK [00:57:26]MH_I2C_Read... [00:57:27]OFD Sender: No OFD packet to send [00:57:27]*** Cut start [00:57:27]*** Partial cut [00:57:27]*** CUTSNS_PIN = 1 [00:57:27]*** CUTSNS_PIN = 0 [00:57:28]*** Brake cut motor [00:57:28]Read from MH i2c: 01 [00:57:28]MH_I2C_Read... [00:57:28]*** Stop cut motor [00:57:28]*** Cut end [00:57:28]Read from MH i2c: 01 07 00 [00:57:28]MH_I2C_Read... [00:57:28]Read from MH i2c: 01 07 00 57 19 00 00 00 00 00 FF 0F 85 [00:57:28]process_action close_receipt done [00:57:28]requested_data is exist [00:57:28]produce_requested_data [00:57:28]requested_item fm.sn is exist - process it [00:57:28]wFMCommunicate request_size=4 [00:57:28]MH_SAM_APDU [00:57:28]CAPDU: 80 11 00 00 [00:57:28]Write to MH i2c: E2 08 00 58 19 80 11 00 00 00 00 00 00 EB [00:57:28]Write i2c OK [00:57:28]MH_I2C_Read... [00:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:28]Read from MH i2c: E2 [00:57:28]MH_I2C_Read... [00:57:28]Read from MH i2c: E2 17 00 [00:57:28]MH_I2C_Read... [00:57:28]Read from MH i2c: E2 17 00 58 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 3E [00:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [00:57:28]wFMCommunicate OK [00:57:28]requested_item fd.num is exist - process it [00:57:28]SAM_PROTO_GetFieldsCounters [00:57:28]wFMCommunicate request_size=4 [00:57:28]MH_SAM_APDU [00:57:28]CAPDU: 80 13 00 00 [00:57:28]Write to MH i2c: E2 08 00 59 19 80 13 00 00 00 00 00 00 EE [00:57:28]Write i2c OK [00:57:28]MH_I2C_Read... [00:57:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:57:28]Read from MH i2c: E2 [00:57:28]MH_I2C_Read... [00:57:28]Read from MH i2c: E2 62 00 [00:57:28]MH_I2C_Read... [00:57:28]Read from MH i2c: E2 62 00 59 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 4B E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [00:57:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 4B E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:57:28]wFMCommunicate OK [00:57:28]SAM_PROTO_GetFieldsCounters done [00:57:28]requested_item shift.num is exist - process it [00:57:28]requested_item shift.opened is exist - process it [00:57:28]req_shift_opened [00:57:28]FM_GetShiftState [00:57:28]SAM_PROTO_GetShiftState [00:57:28]wFMCommunicate request_size=4 [00:57:28]MH_SAM_APDU [00:57:28]CAPDU: 80 13 01 00 [00:57:28]Write to MH i2c: E2 08 00 5A 19 80 13 01 00 00 00 00 00 F0 [00:57:28]Write i2c OK [00:57:28]MH_I2C_Read... [00:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:28]Read from MH i2c: E2 [00:57:28]MH_I2C_Read... [00:57:28]Read from MH i2c: E2 0E 00 [00:57:28]MH_I2C_Read... [00:57:28]Read from MH i2c: E2 0E 00 5A 19 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 B1 [00:57:28]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [00:57:28]wFMCommunicate OK [00:57:28]SAM_PROTO_GetShiftState done [00:57:28]FM_GetShiftState done [00:57:28]req_shift_opened done [00:57:28]requested_item shift.open_date is exist - process it [00:57:28]req_shift_open_date [00:57:28]req_shift_open_date done [00:57:28]produce_requested_data done [00:57:28]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57931,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [00:57:28]process_action_free close_receipt [00:57:28]json_value_free [00:57:28]json_value_free done [00:57:28]process_json_proto returns [00:57:28]Send response to host [00:57:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57931,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [00:57:28]free response buf [00:57:28]execute_script done [00:57:28]execute_script returns [00:57:28]free content buf [00:57:28]Sock 8.Close socket [00:57:28]Sock 8.Thread stoped [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:31]accept exits with 9 [01:04:31]New connection [01:04:31]New thread 3066592612 created [01:04:31]Thread 3066735972 joined [01:04:31]Waiting for new connection... [01:04:31] Sock 9.Parse request [01:04:31]Sock 9.Check first char [01:04:31]Sock 9.First char is OK [01:04:31]request: POST /json_proto HTTP/1.0 [01:04:31]Method: POST [01:04:31]URL: /json_proto [01:04:31]Method is POST - this is cgi request [01:04:31]url: /json_proto [01:04:31]query_string will be loaded in cgi processing [01:04:31]execute_cgi json_proto POST (null) [01:04:31]execute_cgi path=json_proto method=POST [01:04:31]POST find Content-Length [01:04:31]Host: 172.17.60.68:8080 [01:04:31]Content-Length: 677 [01:04:31]Content-Type: application/json [01:04:31] [01:04:31]POST finish read [01:04:31]Found Content-Length = 677 [01:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543274", "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" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:04:31]execute_script... [01:04:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543274", "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" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:04:31]POST & json_proto [01:04:31]process_json_proto [01:04:31]json parsed OK: [01:04:31]protocol is kg_v1.0 [01:04:31]action value=close_receipt [01:04:31]process_action close_receipt [01:04:31]cmd_close_receipt [01:04:31]MH_GetDate [01:04:31]Write to MH i2c: F0 00 00 5B 19 63 [01:04:31]Write i2c OK [01:04:31]MH_I2C_Read... [01:04:31]Read from MH i2c: F0 [01:04:31]MH_I2C_Read... [01:04:31]Read from MH i2c: F0 09 00 [01:04:31]MH_I2C_Read... [01:04:31]Read from MH i2c: F0 09 00 5B 19 00 A1 16 5D 66 8D A7 02 66 82 [01:04:31]GetLastDocTimeStamp 1717376245 [01:04:31]current date 1717376673 [01:04:31]FM_GetShiftState [01:04:31]SAM_PROTO_GetShiftState [01:04:31]wFMCommunicate request_size=4 [01:04:31]MH_SAM_APDU [01:04:31]CAPDU: 80 13 01 00 [01:04:31]Write to MH i2c: E2 08 00 5C 19 80 13 01 00 00 00 00 00 F2 [01:04:31]Write i2c OK [01:04:31]MH_I2C_Read... [01:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:04:31]Read from MH i2c: E2 [01:04:31]MH_I2C_Read... [01:04:31]Read from MH i2c: E2 0E 00 [01:04:31]MH_I2C_Read... [01:04:31]Read from MH i2c: E2 0E 00 5C 19 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 B3 [01:04:31]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:04:31]wFMCommunicate OK [01:04:31]SAM_PROTO_GetShiftState done [01:04:31]FM_GetShiftState done [01:04:31]opened in 1717373417 [01:04:31]opened+sec_in_day 1717459817 [01:04:31]quantity*price = 15052 [01:04:31]sum+1 = 15054 [01:04:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 16 03.06.2024 01:04 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57932 ФПД: 161638042612716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T010433&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57932&fm=161638042612716&tin=02508201610067®Number=0000000000151680&sum=15000 [01:04:33]StoreToDocumentArchive [01:04:33]shift 70 fd 57932 [01:04:33]save to /storage/0070/doc_00057932 [01:04:33]save last doc name /storage/0070/doc_00057932 to /storage/kkm_last_doc_name [01:04:33]save OK [01:04:33]Clear old archive folders... [01:04:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:04:33]tlvbuf is 01A2B600 [01:04:33]SAM_PROTO_ClearQueue [01:04:33]wFMCommunicate request_size=4 [01:04:33]MH_SAM_APDU [01:04:33]CAPDU: 80 09 00 00 [01:04:33]Write to MH i2c: E2 08 00 69 19 80 09 00 00 00 00 00 00 F4 [01:04:33]Write i2c OK [01:04:33]MH_I2C_Read... [01:04:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:04:33]Read from MH i2c: E2 [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: E2 03 00 [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: E2 03 00 69 19 00 90 00 F6 [01:04:33]RAPDU: 90 00 [01:04:33]wFMCommunicate OK [01:04:33]SAM_PROTO_ClearQueue done [01:04:33]KKMCreateOFDPacket [01:04:33]OFDProtocolAddRootSTLVToBuf [01:04:33]FM_MakeSignedData [01:04:33]FM_MakeSignedData [01:04:33]SAM_PROTO_SignData [01:04:33]wFMCommunicate request_size=4 [01:04:33]MH_SAM_APDU [01:04:33]CAPDU: 80 0D 01 02 [01:04:33]Write to MH i2c: E2 08 00 6A 19 80 0D 01 02 00 00 00 00 FC [01:04:33]Write i2c OK [01:04:33]MH_I2C_Read... [01:04:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:04:33]Read from MH i2c: E2 [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: E2 03 00 [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: E2 03 00 6A 19 00 90 00 F7 [01:04:33]RAPDU: 90 00 [01:04:33]wFMCommunicate OK [01:04:33]wFMCommunicate request_size=255 [01:04:33]MH_SAM_APDU [01:04:33]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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A1 16 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4C E2 00 00 35 04 06 00 93 [01:04:33]Write to MH i2c: E2 02 01 6B 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A1 16 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4C E2 00 00 35 04 06 00 93 00 00 15 [01:04:33]Write i2c OK [01:04:33]MH_I2C_Read... [01:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:04:33]Read from MH i2c: E2 [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: E2 03 00 [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: E2 03 00 6B 19 00 90 00 F8 [01:04:33]RAPDU: 90 00 [01:04:33]wFMCommunicate OK [01:04:33]wFMCommunicate request_size=10 [01:04:33]MH_SAM_APDU [01:04:33]CAPDU: 80 0D 02 02 05 02 4A 1C B3 EC [01:04:33]Write to MH i2c: E2 0D 00 6C 19 80 0D 02 02 05 00 02 4A 1C B3 EC 00 00 10 [01:04:33]Write i2c OK [01:04:33]MH_I2C_Read... [01:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:04:33]Read from MH i2c: E2 [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: E2 03 00 [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: E2 03 00 6C 19 00 90 00 F9 [01:04:33]RAPDU: 90 00 [01:04:33]wFMCommunicate OK [01:04:33]wFMCommunicate request_size=4 [01:04:33]MH_SAM_APDU [01:04:33]CAPDU: 80 0D 03 02 [01:04:33]Write to MH i2c: E2 08 00 6D 19 80 0D 03 02 00 00 00 00 01 [01:04:33]Write i2c OK [01:04:33]MH_I2C_Read... [01:04:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:04:33]Read from MH i2c: E2 [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: E2 0B 00 [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: E2 0B 00 6D 19 00 1A BD A8 92 92 2F AC 03 90 00 83 [01:04:33]RAPDU: 1A BD A8 92 92 2F AC 03 90 00 [01:04:33]wFMCommunicate OK [01:04:33]SAM_PROTO_SignData done [01:04:33]FM_MakeSignedData done [01:04:33]CreateOFDProtocolMessage [01:04:33]wFMCommunicate request_size=4 [01:04:33]MH_SAM_APDU [01:04:33]CAPDU: 80 11 00 00 [01:04:33]Write to MH i2c: E2 08 00 6E 19 80 11 00 00 00 00 00 00 01 [01:04:33]Write i2c OK [01:04:33]MH_I2C_Read... [01:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:04:33]Read from MH i2c: E2 [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: E2 17 00 [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: E2 17 00 6E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 54 [01:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:04:33]wFMCommunicate OK [01:04:33]CreateOFDProtocolMessage done [01:04:33]OFDSenderStorePacket 57932 [01:04:33]StoreOFDPacket docnum=57932 [01:04:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 3A 7C 07 01 45 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A1 16 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4C E2 00 00 35 04 06 00 93 02 4A 1C B3 EC 1A BD A8 92 92 2F AC 03 [01:04:33]CheckFolder [01:04:33]dirname=/storage/ofd_packets [01:04:33]CheckFolder done [01:04:33]ProducePacketName [01:04:33]name=ofd_packets/00057932 [01:04:33]NVStorageSaveData ofd_packets/00057932 [01:04:33]File name is /storage/ofd_packets/00057932 [01:04:33]Write 301 bytes [01:04:33]NVStorageSaveData done [01:04:33]OFDSenderStorePacket done [01:04:33]KKMCreateOFDPacket done [01:04:33]NVStorageSaveData kkm_last_timestamp [01:04:33]File name is /storage/kkm_last_timestamp [01:04:33]Write 4 bytes [01:04:33]NVStorageSaveData done [01:04:33]ExternCall_PrintAddStr [01:04:33]wPrintStart [01:04:33]Write to MH i2c: 01 00 00 6F 19 88 [01:04:33]Write i2c OK [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: 01 [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: 01 07 00 [01:04:33]MH_I2C_Read... [01:04:33]Read from MH i2c: 01 07 00 6F 19 00 00 00 00 00 FF 0F 9D [01:04:33]RasterBufferAndPrint [01:04:33]line Счет N : (1)543274 [01:04:33]line ИНН: 02508201610067 [01:04:33]line Контрольно-Кассовый Чек [01:04:33]line ПРОДАЖА [01:04:33]line ТРК (МРК, ГНК) : 22 [01:04:33]line Товар: 2710124130 [01:04:33]line Аи-92-К-5 [01:04:33]line 2.250 * 66.90 [01:04:33]line = 150.53 [01:04:33]line НДС 12% НСП 1% [01:04:33]line > о реализуемом товаре [01:04:33]line ОКРУГЛЕНИЕ: -0.53 [01:04:33]line ИТОГО: 150.00 [01:04:33]line Внесено: 150.00 [01:04:33]line СДАЧА: 0.00 [01:04:33]line НСП 1% : 1.33 [01:04:33]line НДС 12% : 15.98 [01:04:33]line Наличными: 150.00 [01:04:33]line Безнал.: 0.00 [01:04:33]line Место: АЗС № 117 "Партнер Нефть" [01:04:33]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [01:04:33]line СНО: Общий режим [01:04:33]line Чек 16 03.06.2024 01:04 [01:04:33]line Смена: 70 ФФД: 1.0 [01:04:33]line ЗНМ: 0300000048 [01:04:33]line РНМ: 0000000000151680 [01:04:33]line Версия ККМ: v1.0 [01:04:33]line ФМ: 0000000000959414 [01:04:33]line ФД: 57932 [01:04:33]line ФПД: 161638042612716 [01:04:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T010433&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57932&fm=161638042612716&tin=02508201610067®Number=0000000000151680&sum=15000 [01:04:33]OFD Sender: Processing packet 57932 [packets to send 50, broken 49] [01:04:33]ProducePacketName [01:04:33]name=ofd_packets/00057932 [01:04:33]OFD Sender: To server: pG, [01:04:33]CommunicateWithHost lk.salyk.kg:30040 [01:04:33]ConnectInit lk.salyk.kg [01:04:33]written 0, free lines is 4095 [01:04:34]Connected sock=10 [01:04:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 3A 7C 07 01 45 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A1 16 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4C E2 00 00 35 04 06 00 93 02 4A 1C B3 EC 1A BD A8 92 92 2F AC 03 [01:04:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 3F 9E 47 00 BB FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4C E2 00 00 F4 03 04 00 70 C1 5C 66 B6 04 01 00 00 28 6E D8 29 87 E6 8B 27 [01:04:34]CommunicateWithHost err = 0 [01:04:34]CheckOFDResponse [01:04:34]1017 (14) - 77093643461234 [01:04:34]1041 (16) - 0000000000959414 [01:04:34]1040 (4) - 57932 [01:04:34]1012 (4) - 02.06.2024 19:01 [01:04:34]1206 (1) - 0 [01:04:34]OFD Sender: Remove packet 57932 [01:04:34]ProducePacketName [01:04:34]name=ofd_packets/00057932 [01:04:34]NVStorageDeleteData [01:04:34]Write to MH i2c: 01 00 00 9A 19 B3 [01:04:34]Write i2c OK [01:04:34]MH_I2C_Read... [01:04:34]Read from MH i2c: 01 [01:04:34]MH_I2C_Read... [01:04:34]Read from MH i2c: 01 07 00 [01:04:34]MH_I2C_Read... [01:04:34]Read from MH i2c: 01 07 00 9A 19 00 00 00 00 00 BF 0C 85 [01:04:34]RasterBufferAndPrint [01:04:34]line [01:04:34]line [01:04:34]line [01:04:34]line [01:04:34]line [01:04:34]written 0, free lines is 3269 [01:04:34]MH_Cut [01:04:34]Write to MH i2c: D1 01 00 A1 19 01 8C [01:04:34]Write i2c OK [01:04:34]MH_I2C_Read... [01:04:34]Read from MH i2c: D1 [01:04:34]MH_I2C_Read... [01:04:34]Read from MH i2c: D1 01 00 [01:04:34]MH_I2C_Read... [01:04:34]Read from MH i2c: D1 01 00 A1 19 00 8B [01:04:34]Write to MH i2c: 01 00 00 A2 19 BB [01:04:34]Write i2c OK [01:04:34]MH_I2C_Read... [01:04:34]OFD Sender: No OFD packet to send [01:04:35]*** Cut start [01:04:35]*** Partial cut [01:04:35]*** CUTSNS_PIN = 1 [01:04:35]*** CUTSNS_PIN = 0 [01:04:35]*** Brake cut motor [01:04:35]Read from MH i2c: 01 [01:04:35]MH_I2C_Read... [01:04:35]*** Stop cut motor [01:04:35]*** Cut end [01:04:35]Read from MH i2c: 01 07 00 [01:04:35]MH_I2C_Read... [01:04:35]Read from MH i2c: 01 07 00 A2 19 00 00 00 00 00 FF 0F D0 [01:04:35]process_action close_receipt done [01:04:35]requested_data is exist [01:04:35]produce_requested_data [01:04:35]requested_item fm.sn is exist - process it [01:04:35]wFMCommunicate request_size=4 [01:04:35]MH_SAM_APDU [01:04:35]CAPDU: 80 11 00 00 [01:04:35]Write to MH i2c: E2 08 00 A3 19 80 11 00 00 00 00 00 00 36 [01:04:35]Write i2c OK [01:04:35]MH_I2C_Read... [01:04:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:04:36]Read from MH i2c: E2 [01:04:36]MH_I2C_Read... [01:04:36]Read from MH i2c: E2 17 00 [01:04:36]MH_I2C_Read... [01:04:36]Read from MH i2c: E2 17 00 A3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 89 [01:04:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:04:36]wFMCommunicate OK [01:04:36]requested_item fd.num is exist - process it [01:04:36]SAM_PROTO_GetFieldsCounters [01:04:36]wFMCommunicate request_size=4 [01:04:36]MH_SAM_APDU [01:04:36]CAPDU: 80 13 00 00 [01:04:36]Write to MH i2c: E2 08 00 A4 19 80 13 00 00 00 00 00 00 39 [01:04:36]Write i2c OK [01:04:36]MH_I2C_Read... [01:04:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:04:36]Read from MH i2c: E2 [01:04:36]MH_I2C_Read... [01:04:36]Read from MH i2c: E2 62 00 [01:04:36]MH_I2C_Read... [01:04:36]Read from MH i2c: E2 62 00 A4 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 4C E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [01:04:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 4C E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:04:36]wFMCommunicate OK [01:04:36]SAM_PROTO_GetFieldsCounters done [01:04:36]requested_item shift.num is exist - process it [01:04:36]requested_item shift.opened is exist - process it [01:04:36]req_shift_opened [01:04:36]FM_GetShiftState [01:04:36]SAM_PROTO_GetShiftState [01:04:36]wFMCommunicate request_size=4 [01:04:36]MH_SAM_APDU [01:04:36]CAPDU: 80 13 01 00 [01:04:36]Write to MH i2c: E2 08 00 A5 19 80 13 01 00 00 00 00 00 3B [01:04:36]Write i2c OK [01:04:36]MH_I2C_Read... [01:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:04:36]Read from MH i2c: E2 [01:04:36]MH_I2C_Read... [01:04:36]Read from MH i2c: E2 0E 00 [01:04:36]MH_I2C_Read... [01:04:36]Read from MH i2c: E2 0E 00 A5 19 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 FC [01:04:36]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:04:36]wFMCommunicate OK [01:04:36]SAM_PROTO_GetShiftState done [01:04:36]FM_GetShiftState done [01:04:36]req_shift_opened done [01:04:36]requested_item shift.open_date is exist - process it [01:04:36]req_shift_open_date [01:04:36]req_shift_open_date done [01:04:36]produce_requested_data done [01:04:36]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57932,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [01:04:36]process_action_free close_receipt [01:04:36]json_value_free [01:04:36]json_value_free done [01:04:36]process_json_proto returns [01:04:36]Send response to host [01:04:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57932,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [01:04:36]free response buf [01:04:36]execute_script done [01:04:36]execute_script returns [01:04:36]free content buf [01:04:36]Sock 9.Close socket [01:04:36]Sock 9.Thread stoped [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]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:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:11:55]accept exits with 8 [01:11:55]New connection [01:11:55]New thread 3066735972 created [01:11:55]Thread 3066592612 joined [01:11:55]Waiting for new connection... [01:11:55] Sock 8.Parse request [01:11:55]Sock 8.Check first char [01:11:55]Sock 8.First char is OK [01:11:55]request: POST /json_proto HTTP/1.0 [01:11:55]Method: POST [01:11:55]URL: /json_proto [01:11:55]Method is POST - this is cgi request [01:11:55]url: /json_proto [01:11:55]query_string will be loaded in cgi processing [01:11:55]execute_cgi json_proto POST (null) [01:11:55]execute_cgi path=json_proto method=POST [01:11:55]POST find Content-Length [01:11:55]Host: 172.17.60.68:8080 [01:11:55]Content-Length: 677 [01:11:55]Content-Type: application/json [01:11:55] [01:11:55]POST finish read [01:11:55]Found Content-Length = 677 [01:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:11:55]execute_script... [01:11: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)543275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:11:55]POST & json_proto [01:11:55]process_json_proto [01:11:55]json parsed OK: [01:11:55]protocol is kg_v1.0 [01:11:55]action value=close_receipt [01:11:55]process_action close_receipt [01:11:55]cmd_close_receipt [01:11:55]MH_GetDate [01:11:55]Write to MH i2c: F0 00 00 A6 19 AE [01:11:55]Write i2c OK [01:11:55]MH_I2C_Read... [01:11:55]Read from MH i2c: F0 [01:11:55]MH_I2C_Read... [01:11:55]Read from MH i2c: F0 09 00 [01:11:55]MH_I2C_Read... [01:11:55]Read from MH i2c: F0 09 00 A6 19 00 5C 18 5D 66 8D A7 02 66 8A [01:11:55]GetLastDocTimeStamp 1717376673 [01:11:55]current date 1717377116 [01:11:55]FM_GetShiftState [01:11:55]SAM_PROTO_GetShiftState [01:11:55]wFMCommunicate request_size=4 [01:11:55]MH_SAM_APDU [01:11:55]CAPDU: 80 13 01 00 [01:11:55]Write to MH i2c: E2 08 00 A7 19 80 13 01 00 00 00 00 00 3D [01:11:55]Write i2c OK [01:11:55]MH_I2C_Read... [01:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:11:55]Read from MH i2c: E2 [01:11:55]MH_I2C_Read... [01:11:55]Read from MH i2c: E2 0E 00 [01:11:55]MH_I2C_Read... [01:11:55]Read from MH i2c: E2 0E 00 A7 19 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 FE [01:11:55]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:11:55]wFMCommunicate OK [01:11:55]SAM_PROTO_GetShiftState done [01:11:55]FM_GetShiftState done [01:11:55]opened in 1717373417 [01:11:55]opened+sec_in_day 1717459817 [01:11:55]quantity*price = 40006 [01:11:55]sum+1 = 40007 [01:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 17 03.06.2024 01:11 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57933 ФПД: 167920294485065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T011156&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57933&fm=167920294485065&tin=02508201610067®Number=0000000000151680&sum=40000 [01:11:56]StoreToDocumentArchive [01:11:56]shift 70 fd 57933 [01:11:56]save to /storage/0070/doc_00057933 [01:11:56]save last doc name /storage/0070/doc_00057933 to /storage/kkm_last_doc_name [01:11:56]save OK [01:11:56]Clear old archive folders... [01:11:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:11:56]tlvbuf is 01B19000 [01:11:56]SAM_PROTO_ClearQueue [01:11:56]wFMCommunicate request_size=4 [01:11:56]MH_SAM_APDU [01:11:56]CAPDU: 80 09 00 00 [01:11:56]Write to MH i2c: E2 08 00 B4 19 80 09 00 00 00 00 00 00 3F [01:11:56]Write i2c OK [01:11:56]MH_I2C_Read... [01:11:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:11:56]Read from MH i2c: E2 [01:11:56]MH_I2C_Read... [01:11:56]Read from MH i2c: E2 03 00 [01:11:56]MH_I2C_Read... [01:11:56]Read from MH i2c: E2 03 00 B4 19 00 90 00 41 [01:11:56]RAPDU: 90 00 [01:11:56]wFMCommunicate OK [01:11:56]SAM_PROTO_ClearQueue done [01:11:56]KKMCreateOFDPacket [01:11:56]OFDProtocolAddRootSTLVToBuf [01:11:56]FM_MakeSignedData [01:11:56]FM_MakeSignedData [01:11:56]SAM_PROTO_SignData [01:11:56]wFMCommunicate request_size=4 [01:11:56]MH_SAM_APDU [01:11:56]CAPDU: 80 0D 01 02 [01:11:56]Write to MH i2c: E2 08 00 B5 19 80 0D 01 02 00 00 00 00 47 [01:11:56]Write i2c OK [01:11:56]MH_I2C_Read... [01:11:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:11:56]Read from MH i2c: E2 [01:11:56]MH_I2C_Read... [01:11:56]Read from MH i2c: E2 03 00 [01:11:56]MH_I2C_Read... [01:11:56]Read from MH i2c: E2 03 00 B5 19 00 90 00 42 [01:11:56]RAPDU: 90 00 [01:11:56]wFMCommunicate OK [01:11:56]wFMCommunicate request_size=255 [01:11:56]MH_SAM_APDU [01:11:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5C 18 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4D E2 00 00 35 04 06 00 98 [01:11:56]Write to MH i2c: E2 02 01 B6 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5C 18 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4D E2 00 00 35 04 06 00 98 00 00 F6 [01:11:56]Write i2c OK [01:11:56]MH_I2C_Read... [01:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:11:56]Read from MH i2c: E2 [01:11:56]MH_I2C_Read... [01:11:56]Read from MH i2c: E2 03 00 [01:11:56]MH_I2C_Read... [01:11:56]Read from MH i2c: E2 03 00 B6 19 00 90 00 43 [01:11:56]RAPDU: 90 00 [01:11:56]wFMCommunicate OK [01:11:56]wFMCommunicate request_size=10 [01:11:56]MH_SAM_APDU [01:11:56]CAPDU: 80 0D 02 02 05 B8 FD 80 DC 49 [01:11:56]Write to MH i2c: E2 0D 00 B7 19 80 0D 02 02 05 00 B8 FD 80 DC 49 00 00 AE [01:11:56]Write i2c OK [01:11:56]MH_I2C_Read... [01:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:11:57]Read from MH i2c: E2 [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: E2 03 00 [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: E2 03 00 B7 19 00 90 00 44 [01:11:57]RAPDU: 90 00 [01:11:57]wFMCommunicate OK [01:11:57]wFMCommunicate request_size=4 [01:11:57]MH_SAM_APDU [01:11:57]CAPDU: 80 0D 03 02 [01:11:57]Write to MH i2c: E2 08 00 B8 19 80 0D 03 02 00 00 00 00 4C [01:11:57]Write i2c OK [01:11:57]MH_I2C_Read... [01:11:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:11:57]Read from MH i2c: E2 [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: E2 0B 00 [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: E2 0B 00 B8 19 00 FE 41 ED 71 C1 02 25 45 90 00 17 [01:11:57]RAPDU: FE 41 ED 71 C1 02 25 45 90 00 [01:11:57]wFMCommunicate OK [01:11:57]SAM_PROTO_SignData done [01:11:57]FM_MakeSignedData done [01:11:57]CreateOFDProtocolMessage [01:11:57]wFMCommunicate request_size=4 [01:11:57]MH_SAM_APDU [01:11:57]CAPDU: 80 11 00 00 [01:11:57]Write to MH i2c: E2 08 00 B9 19 80 11 00 00 00 00 00 00 4C [01:11:57]Write i2c OK [01:11:57]MH_I2C_Read... [01:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:11:57]Read from MH i2c: E2 [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: E2 17 00 [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: E2 17 00 B9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 9F [01:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:11:57]wFMCommunicate OK [01:11:57]CreateOFDProtocolMessage done [01:11:57]OFDSenderStorePacket 57933 [01:11:57]StoreOFDPacket docnum=57933 [01:11:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 61 28 07 01 0E 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5C 18 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4D E2 00 00 35 04 06 00 98 B8 FD 80 DC 49 FE 41 ED 71 C1 02 25 45 [01:11:57]CheckFolder [01:11:57]dirname=/storage/ofd_packets [01:11:57]CheckFolder done [01:11:57]ProducePacketName [01:11:57]name=ofd_packets/00057933 [01:11:57]NVStorageSaveData ofd_packets/00057933 [01:11:57]File name is /storage/ofd_packets/00057933 [01:11:57]Write 301 bytes [01:11:57]NVStorageSaveData done [01:11:57]OFDSenderStorePacket done [01:11:57]KKMCreateOFDPacket done [01:11:57]NVStorageSaveData kkm_last_timestamp [01:11:57]File name is /storage/kkm_last_timestamp [01:11:57]Write 4 bytes [01:11:57]NVStorageSaveData done [01:11:57]ExternCall_PrintAddStr [01:11:57]wPrintStart [01:11:57]Write to MH i2c: 01 00 00 BA 19 D3 [01:11:57]Write i2c OK [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: 01 [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: 01 07 00 [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: 01 07 00 BA 19 00 00 00 00 00 FF 0F E8 [01:11:57]RasterBufferAndPrint [01:11:57]line Счет N : (1)543275 [01:11:57]line ИНН: 02508201610067 [01:11:57]line Контрольно-Кассовый Чек [01:11:57]line ПРОДАЖА [01:11:57]line ТРК (МРК, ГНК) : 32 [01:11:57]line Товар: 2710124130 [01:11:57]line Аи-92-К-5 [01:11:57]line 5.980 * 66.90 [01:11:57]line = 400.06 [01:11:57]line НДС 12% НСП 1% [01:11:57]line > о реализуемом товаре [01:11:57]line ОКРУГЛЕНИЕ: -0.06 [01:11:57]line ИТОГО: 400.00 [01:11:57]line Внесено: 400.00 [01:11:57]line СДАЧА: 0.00 [01:11:57]line НСП 1% : 3.54 [01:11:57]line НДС 12% : 42.48 [01:11:57]line Наличными: 400.00 [01:11:57]line Безнал.: 0.00 [01:11:57]line Место: АЗС № 117 "Партнер Нефть" [01:11:57]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [01:11:57]line СНО: Общий режим [01:11:57]line Чек 17 03.06.2024 01:11 [01:11:57]line Смена: 70 ФФД: 1.0 [01:11:57]line ЗНМ: 0300000048 [01:11:57]line РНМ: 0000000000151680 [01:11:57]line Версия ККМ: v1.0 [01:11:57]line ФМ: 0000000000959414 [01:11:57]line ФД: 57933 [01:11:57]line ФПД: 167920294485065 [01:11:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T011156&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57933&fm=167920294485065&tin=02508201610067®Number=0000000000151680&sum=40000 [01:11:57]OFD Sender: Processing packet 57933 [packets to send 50, broken 49] [01:11:57]ProducePacketName [01:11:57]name=ofd_packets/00057933 [01:11:57]OFD Sender: To server: pG, [01:11:57]CommunicateWithHost lk.salyk.kg:30040 [01:11:57]ConnectInit lk.salyk.kg [01:11:57]written 0, free lines is 4095 [01:11:57]Write to MH i2c: 01 00 00 E5 19 FE [01:11:57]Write i2c OK [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: 01 [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: 01 07 00 [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: 01 07 00 E5 19 00 00 00 00 00 A3 0C B4 [01:11:57]RasterBufferAndPrint [01:11:57]line [01:11:57]line [01:11:57]line [01:11:57]line [01:11:57]line [01:11:57]written 0, free lines is 3239 [01:11:57]MH_Cut [01:11:57]Write to MH i2c: D1 01 00 EC 19 01 D7 [01:11:57]Write i2c OK [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: D1 [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: D1 01 00 [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: D1 01 00 EC 19 00 D6 [01:11:57]Write to MH i2c: 01 00 00 ED 19 06 [01:11:57]Write i2c OK [01:11:57]MH_I2C_Read... [01:11:58]*** Cut start [01:11:58]*** Partial cut [01:11:58]*** CUTSNS_PIN = 1 [01:11:58]*** CUTSNS_PIN = 0 [01:11:59]*** Brake cut motor [01:11:59]Read from MH i2c: 01 [01:11:59]MH_I2C_Read... [01:11:59]*** Stop cut motor [01:11:59]*** Cut end [01:11:59]Read from MH i2c: 01 07 00 [01:11:59]MH_I2C_Read... [01:11:59]Read from MH i2c: 01 07 00 ED 19 00 00 00 00 00 FF 0F 1B [01:11:59]process_action close_receipt done [01:11:59]requested_data is exist [01:11:59]produce_requested_data [01:11:59]requested_item fm.sn is exist - process it [01:11:59]wFMCommunicate request_size=4 [01:11:59]MH_SAM_APDU [01:11:59]CAPDU: 80 11 00 00 [01:11:59]Write to MH i2c: E2 08 00 EE 19 80 11 00 00 00 00 00 00 81 [01:11:59]Write i2c OK [01:11:59]MH_I2C_Read... [01:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:11:59]Read from MH i2c: E2 [01:11:59]MH_I2C_Read... [01:11:59]Read from MH i2c: E2 17 00 [01:11:59]MH_I2C_Read... [01:11:59]Read from MH i2c: E2 17 00 EE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 D4 [01:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:11:59]wFMCommunicate OK [01:11:59]requested_item fd.num is exist - process it [01:11:59]SAM_PROTO_GetFieldsCounters [01:11:59]wFMCommunicate request_size=4 [01:11:59]MH_SAM_APDU [01:11:59]CAPDU: 80 13 00 00 [01:11:59]Write to MH i2c: E2 08 00 EF 19 80 13 00 00 00 00 00 00 84 [01:11:59]Write i2c OK [01:11:59]MH_I2C_Read... [01:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:11:59]Read from MH i2c: E2 [01:11:59]MH_I2C_Read... [01:11:59]Read from MH i2c: E2 62 00 [01:11:59]MH_I2C_Read... [01:11:59]Read from MH i2c: E2 62 00 EF 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 4D E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [01:11:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 4D E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:11:59]wFMCommunicate OK [01:11:59]SAM_PROTO_GetFieldsCounters done [01:11:59]requested_item shift.num is exist - process it [01:11:59]requested_item shift.opened is exist - process it [01:11:59]req_shift_opened [01:11:59]FM_GetShiftState [01:11:59]SAM_PROTO_GetShiftState [01:11:59]wFMCommunicate request_size=4 [01:11:59]MH_SAM_APDU [01:11:59]CAPDU: 80 13 01 00 [01:11:59]Write to MH i2c: E2 08 00 F0 19 80 13 01 00 00 00 00 00 86 [01:11:59]Write i2c OK [01:11:59]MH_I2C_Read... [01:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:11:59]Read from MH i2c: E2 [01:11:59]MH_I2C_Read... [01:11:59]Read from MH i2c: E2 0E 00 [01:11:59]MH_I2C_Read... [01:11:59]Read from MH i2c: E2 0E 00 F0 19 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 47 [01:11:59]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:11:59]wFMCommunicate OK [01:11:59]SAM_PROTO_GetShiftState done [01:11:59]FM_GetShiftState done [01:11:59]req_shift_opened done [01:11:59]requested_item shift.open_date is exist - process it [01:11:59]req_shift_open_date [01:11:59]req_shift_open_date done [01:11:59]produce_requested_data done [01:11:59]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57933,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [01:11:59]process_action_free close_receipt [01:11:59]json_value_free [01:11:59]json_value_free done [01:11:59]process_json_proto returns [01:11:59]Send response to host [01:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57933,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [01:11:59]free response buf [01:11:59]execute_script done [01:11:59]execute_script returns [01:11:59]free content buf [01:11:59]Sock 8.Close socket [01:11:59]Sock 8.Thread stoped [01:13:09]accept exits with 9 [01:13:09]New connection [01:13:09]New thread 3066592612 created [01:13:09]Thread 3066735972 joined [01:13:09]Waiting for new connection... [01:13:09] Sock 9.Parse request [01:13:09]Sock 9.Check first char [01:13:09]Sock 9.First char is OK [01:13:09]request: POST /json_proto HTTP/1.0 [01:13:09]Method: POST [01:13:09]URL: /json_proto [01:13:09]Method is POST - this is cgi request [01:13:09]url: /json_proto [01:13:09]query_string will be loaded in cgi processing [01:13:09]execute_cgi json_proto POST (null) [01:13:09]execute_cgi path=json_proto method=POST [01:13:09]POST find Content-Length [01:13:09]Host: 172.17.60.68:8080 [01:13:09]Content-Length: 682 [01:13:09]Content-Type: application/json [01:13:09] [01:13:09]POST finish read [01:13:09]Found Content-Length = 682 [01:13:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543276", "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.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" ] } } [01:13:09]execute_script... [01:13:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543276", "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.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" ] } } [01:13:09]POST & json_proto [01:13:09]process_json_proto [01:13:09]json parsed OK: [01:13:09]protocol is kg_v1.0 [01:13:09]action value=close_receipt [01:13:09]process_action close_receipt [01:13:09]cmd_close_receipt [01:13:09]MH_GetDate [01:13:09]Write to MH i2c: F0 00 00 F1 19 F9 [01:13:09]Write i2c OK [01:13:09]MH_I2C_Read... [01:13:09]Read from MH i2c: F0 [01:13:09]MH_I2C_Read... [01:13:09]Read from MH i2c: F0 09 00 [01:13:09]MH_I2C_Read... [01:13:09]Read from MH i2c: F0 09 00 F1 19 00 A6 18 5D 66 8D A7 02 66 1F [01:13:09]GetLastDocTimeStamp 1717377116 [01:13:09]current date 1717377190 [01:13:09]FM_GetShiftState [01:13:09]SAM_PROTO_GetShiftState [01:13:09]wFMCommunicate request_size=4 [01:13:09]MH_SAM_APDU [01:13:09]CAPDU: 80 13 01 00 [01:13:09]Write to MH i2c: E2 08 00 F2 19 80 13 01 00 00 00 00 00 88 [01:13:09]Write i2c OK [01:13:09]MH_I2C_Read... [01:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:13:09]Read from MH i2c: E2 [01:13:09]MH_I2C_Read... [01:13:09]Read from MH i2c: E2 0E 00 [01:13:09]MH_I2C_Read... [01:13:09]Read from MH i2c: E2 0E 00 F2 19 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 49 [01:13:09]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:13:09]wFMCommunicate OK [01:13:09]SAM_PROTO_GetShiftState done [01:13:09]FM_GetShiftState done [01:13:09]opened in 1717373417 [01:13:09]opened+sec_in_day 1717459817 [01:13:09]quantity*price = 100015 [01:13:09]sum+1 = 100017 [01:13:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 18 03.06.2024 01:13 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57934 ФПД: 146059377660689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T011310&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57934&fm=146059377660689&tin=02508201610067®Number=0000000000151680&sum=100000 [01:13:10]StoreToDocumentArchive [01:13:10]shift 70 fd 57934 [01:13:10]save to /storage/0070/doc_00057934 [01:13:10]save last doc name /storage/0070/doc_00057934 to /storage/kkm_last_doc_name [01:13:10]save OK [01:13:10]Clear old archive folders... [01:13:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:13:10]tlvbuf is 01AD5D80 [01:13:10]SAM_PROTO_ClearQueue [01:13:10]wFMCommunicate request_size=4 [01:13:10]MH_SAM_APDU [01:13:10]CAPDU: 80 09 00 00 [01:13:10]Write to MH i2c: E2 08 00 FF 19 80 09 00 00 00 00 00 00 8A [01:13:10]Write i2c OK [01:13:10]MH_I2C_Read... [01:13:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:13:10]Read from MH i2c: E2 [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: E2 03 00 [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: E2 03 00 FF 19 00 90 00 8C [01:13:10]RAPDU: 90 00 [01:13:10]wFMCommunicate OK [01:13:10]SAM_PROTO_ClearQueue done [01:13:10]KKMCreateOFDPacket [01:13:10]OFDProtocolAddRootSTLVToBuf [01:13:10]FM_MakeSignedData [01:13:10]FM_MakeSignedData [01:13:10]SAM_PROTO_SignData [01:13:10]wFMCommunicate request_size=4 [01:13:10]MH_SAM_APDU [01:13:10]CAPDU: 80 0D 01 02 [01:13:10]Write to MH i2c: E2 08 00 00 1A 80 0D 01 02 00 00 00 00 93 [01:13:10]Write i2c OK [01:13:10]MH_I2C_Read... [01:13:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:13:10]Read from MH i2c: E2 [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: E2 03 00 [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: E2 03 00 00 1A 00 90 00 8E [01:13:10]RAPDU: 90 00 [01:13:10]wFMCommunicate OK [01:13:10]wFMCommunicate request_size=255 [01:13:10]MH_SAM_APDU [01:13: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 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 12 00 00 00 F4 03 04 00 A6 18 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4E E2 00 00 35 04 06 00 84 [01:13:10]Write to MH i2c: E2 02 01 01 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 12 00 00 00 F4 03 04 00 A6 18 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4E E2 00 00 35 04 06 00 84 00 00 A5 [01:13:10]Write i2c OK [01:13:10]MH_I2C_Read... [01:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:13:10]Read from MH i2c: E2 [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: E2 03 00 [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: E2 03 00 01 1A 00 90 00 8F [01:13:10]RAPDU: 90 00 [01:13:10]wFMCommunicate OK [01:13:10]wFMCommunicate request_size=10 [01:13:10]MH_SAM_APDU [01:13:10]CAPDU: 80 0D 02 02 05 D7 19 52 53 11 [01:13:10]Write to MH i2c: E2 0D 00 02 1A 80 0D 02 02 05 00 D7 19 52 53 11 00 00 46 [01:13:10]Write i2c OK [01:13:10]MH_I2C_Read... [01:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:13:10]Read from MH i2c: E2 [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: E2 03 00 [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: E2 03 00 02 1A 00 90 00 90 [01:13:10]RAPDU: 90 00 [01:13:10]wFMCommunicate OK [01:13:10]wFMCommunicate request_size=4 [01:13:10]MH_SAM_APDU [01:13:10]CAPDU: 80 0D 03 02 [01:13:10]Write to MH i2c: E2 08 00 03 1A 80 0D 03 02 00 00 00 00 98 [01:13:10]Write i2c OK [01:13:10]MH_I2C_Read... [01:13:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:13:10]Read from MH i2c: E2 [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: E2 0B 00 [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: E2 0B 00 03 1A 00 5F CB C2 C2 02 17 2C 46 90 00 D2 [01:13:10]RAPDU: 5F CB C2 C2 02 17 2C 46 90 00 [01:13:10]wFMCommunicate OK [01:13:10]SAM_PROTO_SignData done [01:13:10]FM_MakeSignedData done [01:13:10]CreateOFDProtocolMessage [01:13:10]wFMCommunicate request_size=4 [01:13:10]MH_SAM_APDU [01:13:10]CAPDU: 80 11 00 00 [01:13:10]Write to MH i2c: E2 08 00 04 1A 80 11 00 00 00 00 00 00 98 [01:13:10]Write i2c OK [01:13:10]MH_I2C_Read... [01:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:13:10]Read from MH i2c: E2 [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: E2 17 00 [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: E2 17 00 04 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 EB [01:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:13:10]wFMCommunicate OK [01:13:10]CreateOFDProtocolMessage done [01:13:10]OFDSenderStorePacket 57934 [01:13:10]StoreOFDPacket docnum=57934 [01:13:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 0D 6F 07 01 06 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 12 00 00 00 F4 03 04 00 A6 18 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4E E2 00 00 35 04 06 00 84 D7 19 52 53 11 5F CB C2 C2 02 17 2C 46 [01:13:10]CheckFolder [01:13:10]dirname=/storage/ofd_packets [01:13:10]CheckFolder done [01:13:10]ProducePacketName [01:13:10]name=ofd_packets/00057934 [01:13:10]NVStorageSaveData ofd_packets/00057934 [01:13:10]File name is /storage/ofd_packets/00057934 [01:13:10]Write 301 bytes [01:13:10]NVStorageSaveData done [01:13:10]OFDSenderStorePacket done [01:13:10]KKMCreateOFDPacket done [01:13:10]NVStorageSaveData kkm_last_timestamp [01:13:10]File name is /storage/kkm_last_timestamp [01:13:10]Write 4 bytes [01:13:10]NVStorageSaveData done [01:13:10]ExternCall_PrintAddStr [01:13:10]wPrintStart [01:13:10]Write to MH i2c: 01 00 00 05 1A 1F [01:13:10]Write i2c OK [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: 01 [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: 01 07 00 [01:13:10]MH_I2C_Read... [01:13:10]Read from MH i2c: 01 07 00 05 1A 00 00 00 00 00 FF 0F 34 [01:13:10]RasterBufferAndPrint [01:13:10]line Счет N : (1)543276 [01:13:10]line ИНН: 02508201610067 [01:13:10]line Контрольно-Кассовый Чек [01:13:10]line ПРОДАЖА [01:13:10]line ТРК (МРК, ГНК) : 12 [01:13:10]line Товар: 2710124130 [01:13:10]line Аи-92-К-5 [01:13:10]line 14.950 * 66.90 [01:13:10]line = 1000.16 [01:13:10]line НДС 12% НСП 1% [01:13:10]line > о реализуемом товаре [01:13:10]line ОКРУГЛЕНИЕ: -0.16 [01:13:10]line ИТОГО: 1000.00 [01:13:10]line Внесено: 1000.00 [01:13:10]line СДАЧА: 0.00 [01:13:10]line НСП 1% : 8.85 [01:13:10]line НДС 12% : 106.21 [01:13:10]line Наличными: 1000.00 [01:13:10]line Безнал.: 0.00 [01:13:10]line Место: АЗС № 117 "Партнер Нефть" [01:13:10]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [01:13:10]line СНО: Общий режим [01:13:10]line Чек 18 03.06.2024 01:13 [01:13:10]line Смена: 70 ФФД: 1.0 [01:13:10]line ЗНМ: 0300000048 [01:13:10]line РНМ: 0000000000151680 [01:13:10]line Версия ККМ: v1.0 [01:13:10]line ФМ: 0000000000959414 [01:13:10]line ФД: 57934 [01:13:10]line ФПД: 146059377660689 [01:13:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T011310&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57934&fm=146059377660689&tin=02508201610067®Number=0000000000151680&sum=100000 [01:13:11]written 0, free lines is 4095 [01:13:11]Write to MH i2c: 01 00 00 30 1A 4A [01:13:11]Write i2c OK [01:13:11]MH_I2C_Read... [01:13:11]Read from MH i2c: 01 [01:13:11]MH_I2C_Read... [01:13:11]Read from MH i2c: 01 07 00 [01:13:11]MH_I2C_Read... [01:13:11]Read from MH i2c: 01 07 00 30 1A 00 00 00 00 00 A5 0C 02 [01:13:11]RasterBufferAndPrint [01:13:11]line [01:13:11]line [01:13:11]line [01:13:11]line [01:13:11]line [01:13:11]written 0, free lines is 3243 [01:13:11]MH_Cut [01:13:11]Write to MH i2c: D1 01 00 37 1A 01 23 [01:13:11]Write i2c OK [01:13:11]MH_I2C_Read... [01:13:11]Read from MH i2c: D1 [01:13:11]MH_I2C_Read... [01:13:11]Read from MH i2c: D1 01 00 [01:13:11]MH_I2C_Read... [01:13:11]Read from MH i2c: D1 01 00 37 1A 00 22 [01:13:11]Write to MH i2c: 01 00 00 38 1A 52 [01:13:11]Write i2c OK [01:13:11]MH_I2C_Read... [01:13:12]*** Cut start [01:13:12]*** Partial cut [01:13:12]*** CUTSNS_PIN = 1 [01:13:12]*** CUTSNS_PIN = 0 [01:13:12]*** Brake cut motor [01:13:13]Read from MH i2c: 01 [01:13:13]MH_I2C_Read... [01:13:13]*** Stop cut motor [01:13:13]*** Cut end [01:13:13]Read from MH i2c: 01 07 00 [01:13:13]MH_I2C_Read... [01:13:13]Read from MH i2c: 01 07 00 38 1A 00 00 00 00 00 FF 0F 67 [01:13:13]process_action close_receipt done [01:13:13]requested_data is exist [01:13:13]produce_requested_data [01:13:13]requested_item fm.sn is exist - process it [01:13:13]wFMCommunicate request_size=4 [01:13:13]MH_SAM_APDU [01:13:13]CAPDU: 80 11 00 00 [01:13:13]Write to MH i2c: E2 08 00 39 1A 80 11 00 00 00 00 00 00 CD [01:13:13]Write i2c OK [01:13:13]MH_I2C_Read... [01:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:13:13]Read from MH i2c: E2 [01:13:13]MH_I2C_Read... [01:13:13]Read from MH i2c: E2 17 00 [01:13:13]MH_I2C_Read... [01:13:13]Read from MH i2c: E2 17 00 39 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 20 [01:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:13:13]wFMCommunicate OK [01:13:13]requested_item fd.num is exist - process it [01:13:13]SAM_PROTO_GetFieldsCounters [01:13:13]wFMCommunicate request_size=4 [01:13:13]MH_SAM_APDU [01:13:13]CAPDU: 80 13 00 00 [01:13:13]Write to MH i2c: E2 08 00 3A 1A 80 13 00 00 00 00 00 00 D0 [01:13:13]Write i2c OK [01:13:13]MH_I2C_Read... [01:13:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:13:13]Read from MH i2c: E2 [01:13:13]MH_I2C_Read... [01:13:13]Read from MH i2c: E2 62 00 [01:13:13]MH_I2C_Read... [01:13:13]Read from MH i2c: E2 62 00 3A 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 4E E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [01:13:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 4E E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:13:13]wFMCommunicate OK [01:13:13]SAM_PROTO_GetFieldsCounters done [01:13:13]requested_item shift.num is exist - process it [01:13:13]requested_item shift.opened is exist - process it [01:13:13]req_shift_opened [01:13:13]FM_GetShiftState [01:13:13]SAM_PROTO_GetShiftState [01:13:13]wFMCommunicate request_size=4 [01:13:13]MH_SAM_APDU [01:13:13]CAPDU: 80 13 01 00 [01:13:13]Write to MH i2c: E2 08 00 3B 1A 80 13 01 00 00 00 00 00 D2 [01:13:13]Write i2c OK [01:13:13]MH_I2C_Read... [01:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:13:13]Read from MH i2c: E2 [01:13:13]MH_I2C_Read... [01:13:13]Read from MH i2c: E2 0E 00 [01:13:13]MH_I2C_Read... [01:13:13]Read from MH i2c: E2 0E 00 3B 1A 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 93 [01:13:13]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:13:13]wFMCommunicate OK [01:13:13]SAM_PROTO_GetShiftState done [01:13:13]FM_GetShiftState done [01:13:13]req_shift_opened done [01:13:13]requested_item shift.open_date is exist - process it [01:13:13]req_shift_open_date [01:13:13]req_shift_open_date done [01:13:13]produce_requested_data done [01:13:13]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57934,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [01:13:13]process_action_free close_receipt [01:13:13]json_value_free [01:13:13]json_value_free done [01:13:13]process_json_proto returns [01:13:13]Send response to host [01:13:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57934,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [01:13:13]free response buf [01:13:13]execute_script done [01:13:13]execute_script returns [01:13:13]free content buf [01:13:13]Sock 9.Close socket [01:13:13]Sock 9.Thread stoped [01:14:10]ConnectInit Can't connect to host [01:14:10]CommunicateWithHost connect error [01:14:10]CommunicateWithHost err = -1 [01:14:10]OFD Sender: Server communicate error [01:14:10]OFD Sender: Processing packet 57933 [packets to send 51, broken 49] [01:14:10]ProducePacketName [01:14:10]name=ofd_packets/00057933 [01:14:10]OFD Sender: To server: pG, [01:14:10]CommunicateWithHost lk.salyk.kg:30040 [01:14:10]ConnectInit lk.salyk.kg [01:14:10]Connected sock=9 [01:14:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 61 28 07 01 0E 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5C 18 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4D E2 00 00 35 04 06 00 98 B8 FD 80 DC 49 FE 41 ED 71 C1 02 25 45 [01:14:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 AC 43 47 00 78 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4D E2 00 00 F4 03 04 00 B1 C3 5C 66 B6 04 01 00 00 2C B8 EB 71 9B 0B A5 B7 [01:14:10]CommunicateWithHost err = 0 [01:14:10]CheckOFDResponse [01:14:10]1017 (14) - 77093643461234 [01:14:10]1041 (16) - 0000000000959414 [01:14:10]1040 (4) - 57933 [01:14:10]1012 (4) - 02.06.2024 19:10 [01:14:10]1206 (1) - 0 [01:14:10]OFD Sender: Remove packet 57933 [01:14:10]ProducePacketName [01:14:10]name=ofd_packets/00057933 [01:14:10]NVStorageDeleteData [01:14:11]OFD Sender: Processing packet 57934 [packets to send 50, broken 49] [01:14:11]ProducePacketName [01:14:11]name=ofd_packets/00057934 [01:14:11]OFD Sender: To server: pG, [01:14:11]CommunicateWithHost lk.salyk.kg:30040 [01:14:11]ConnectInit lk.salyk.kg [01:14:11]Connected sock=9 [01:14:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 0D 6F 07 01 06 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 12 00 00 00 F4 03 04 00 A6 18 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4E E2 00 00 35 04 06 00 84 D7 19 52 53 11 5F CB C2 C2 02 17 2C 46 [01:14:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 12 9E 47 00 A6 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4E E2 00 00 F4 03 04 00 B1 C3 5C 66 B6 04 01 00 00 35 BA 8A EC EB 53 F0 7F [01:14:11]CommunicateWithHost err = 0 [01:14:11]CheckOFDResponse [01:14:11]1017 (14) - 77093643461234 [01:14:11]1041 (16) - 0000000000959414 [01:14:11]1040 (4) - 57934 [01:14:11]1012 (4) - 02.06.2024 19:10 [01:14:11]1206 (1) - 0 [01:14:11]OFD Sender: Remove packet 57934 [01:14:11]ProducePacketName [01:14:11]name=ofd_packets/00057934 [01:14:11]NVStorageDeleteData [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:47]accept exits with 8 [01:34:47]New connection [01:34:47]New thread 3066735972 created [01:34:47]Thread 3066592612 joined [01:34:47]Waiting for new connection... [01:34:47] Sock 8.Parse request [01:34:47]Sock 8.Check first char [01:34:47]Sock 8.First char is OK [01:34:47]request: POST /json_proto HTTP/1.0 [01:34:47]Method: POST [01:34:47]URL: /json_proto [01:34:47]Method is POST - this is cgi request [01:34:47]url: /json_proto [01:34:47]query_string will be loaded in cgi processing [01:34:47]execute_cgi json_proto POST (null) [01:34:47]execute_cgi path=json_proto method=POST [01:34:47]POST find Content-Length [01:34:47]Host: 172.17.60.68:8080 [01:34:47]Content-Length: 677 [01:34:47]Content-Type: application/json [01:34:47] [01:34:47]POST finish read [01:34:47]Found Content-Length = 677 [01:34:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543277", "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" : 3.740, "sum" : 250.21, "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" ] } } [01:34:47]execute_script... [01:34: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)543277", "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" : 3.740, "sum" : 250.21, "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" ] } } [01:34:47]POST & json_proto [01:34:47]process_json_proto [01:34:47]json parsed OK: [01:34:47]protocol is kg_v1.0 [01:34:47]action value=close_receipt [01:34:47]process_action close_receipt [01:34:47]cmd_close_receipt [01:34:47]MH_GetDate [01:34:47]Write to MH i2c: F0 00 00 3C 1A 45 [01:34:47]Write i2c OK [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: F0 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: F0 09 00 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: F0 09 00 3C 1A 00 B8 1D 5D 66 8D A7 02 66 82 [01:34:47]GetLastDocTimeStamp 1717377190 [01:34:47]current date 1717378488 [01:34:47]FM_GetShiftState [01:34:47]SAM_PROTO_GetShiftState [01:34:47]wFMCommunicate request_size=4 [01:34:47]MH_SAM_APDU [01:34:47]CAPDU: 80 13 01 00 [01:34:47]Write to MH i2c: E2 08 00 3D 1A 80 13 01 00 00 00 00 00 D4 [01:34:47]Write i2c OK [01:34:47]MH_I2C_Read... [01:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:47]Read from MH i2c: E2 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: E2 0E 00 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: E2 0E 00 3D 1A 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 95 [01:34:47]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:34:47]wFMCommunicate OK [01:34:47]SAM_PROTO_GetShiftState done [01:34:47]FM_GetShiftState done [01:34:47]opened in 1717373417 [01:34:47]opened+sec_in_day 1717459817 [01:34:47]quantity*price = 25020 [01:34:47]sum+1 = 25022 [01:34:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 19 03.06.2024 01:34 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57935 ФПД: 18604235695369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T013448&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57935&fm=18604235695369&tin=02508201610067®Number=0000000000151680&sum=25000 [01:34:48]StoreToDocumentArchive [01:34:48]shift 70 fd 57935 [01:34:48]save to /storage/0070/doc_00057935 [01:34:48]save last doc name /storage/0070/doc_00057935 to /storage/kkm_last_doc_name [01:34:48]save OK [01:34:48]Clear old archive folders... [01:34:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:34:48]tlvbuf is 019CEB10 [01:34:48]SAM_PROTO_ClearQueue [01:34:48]wFMCommunicate request_size=4 [01:34:48]MH_SAM_APDU [01:34:48]CAPDU: 80 09 00 00 [01:34:48]Write to MH i2c: E2 08 00 4A 1A 80 09 00 00 00 00 00 00 D6 [01:34:48]Write i2c OK [01:34:48]MH_I2C_Read... [01:34:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:34:48]Read from MH i2c: E2 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: E2 03 00 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: E2 03 00 4A 1A 00 90 00 D8 [01:34:48]RAPDU: 90 00 [01:34:48]wFMCommunicate OK [01:34:48]SAM_PROTO_ClearQueue done [01:34:48]KKMCreateOFDPacket [01:34:48]OFDProtocolAddRootSTLVToBuf [01:34:48]FM_MakeSignedData [01:34:48]FM_MakeSignedData [01:34:48]SAM_PROTO_SignData [01:34:48]wFMCommunicate request_size=4 [01:34:48]MH_SAM_APDU [01:34:48]CAPDU: 80 0D 01 02 [01:34:48]Write to MH i2c: E2 08 00 4B 1A 80 0D 01 02 00 00 00 00 DE [01:34:48]Write i2c OK [01:34:48]MH_I2C_Read... [01:34:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:34:48]Read from MH i2c: E2 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: E2 03 00 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: E2 03 00 4B 1A 00 90 00 D9 [01:34:48]RAPDU: 90 00 [01:34:48]wFMCommunicate OK [01:34:48]wFMCommunicate request_size=255 [01:34:48]MH_SAM_APDU [01:34: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 13 00 00 00 F4 03 04 00 B8 1D 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4F E2 00 00 35 04 06 00 10 [01:34:48]Write to MH i2c: E2 02 01 4C 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 13 00 00 00 F4 03 04 00 B8 1D 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4F E2 00 00 35 04 06 00 10 00 00 74 [01:34:48]Write i2c OK [01:34:48]MH_I2C_Read... [01:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:49]Read from MH i2c: E2 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: E2 03 00 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: E2 03 00 4C 1A 00 90 00 DA [01:34:49]RAPDU: 90 00 [01:34:49]wFMCommunicate OK [01:34:49]wFMCommunicate request_size=10 [01:34:49]MH_SAM_APDU [01:34:49]CAPDU: 80 0D 02 02 05 EB A2 DC 25 09 [01:34:49]Write to MH i2c: E2 0D 00 4D 1A 80 0D 02 02 05 00 EB A2 DC 25 09 00 00 82 [01:34:49]Write i2c OK [01:34:49]MH_I2C_Read... [01:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:49]Read from MH i2c: E2 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: E2 03 00 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: E2 03 00 4D 1A 00 90 00 DB [01:34:49]RAPDU: 90 00 [01:34:49]wFMCommunicate OK [01:34:49]wFMCommunicate request_size=4 [01:34:49]MH_SAM_APDU [01:34:49]CAPDU: 80 0D 03 02 [01:34:49]Write to MH i2c: E2 08 00 4E 1A 80 0D 03 02 00 00 00 00 E3 [01:34:49]Write i2c OK [01:34:49]MH_I2C_Read... [01:34:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:34:49]Read from MH i2c: E2 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: E2 0B 00 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: E2 0B 00 4E 1A 00 EB 19 88 A8 01 E4 78 CB 90 00 40 [01:34:49]RAPDU: EB 19 88 A8 01 E4 78 CB 90 00 [01:34:49]wFMCommunicate OK [01:34:49]SAM_PROTO_SignData done [01:34:49]FM_MakeSignedData done [01:34:49]CreateOFDProtocolMessage [01:34:49]wFMCommunicate request_size=4 [01:34:49]MH_SAM_APDU [01:34:49]CAPDU: 80 11 00 00 [01:34:49]Write to MH i2c: E2 08 00 4F 1A 80 11 00 00 00 00 00 00 E3 [01:34:49]Write i2c OK [01:34:49]MH_I2C_Read... [01:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:49]Read from MH i2c: E2 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: E2 17 00 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: E2 17 00 4F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 36 [01:34:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:34:49]wFMCommunicate OK [01:34:49]CreateOFDProtocolMessage done [01:34:49]OFDSenderStorePacket 57935 [01:34:49]StoreOFDPacket docnum=57935 [01:34:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 C0 7F 07 01 4E C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 13 00 00 00 F4 03 04 00 B8 1D 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4F E2 00 00 35 04 06 00 10 EB A2 DC 25 09 EB 19 88 A8 01 E4 78 CB [01:34:49]CheckFolder [01:34:49]dirname=/storage/ofd_packets [01:34:49]CheckFolder done [01:34:49]ProducePacketName [01:34:49]name=ofd_packets/00057935 [01:34:49]NVStorageSaveData ofd_packets/00057935 [01:34:49]File name is /storage/ofd_packets/00057935 [01:34:49]Write 301 bytes [01:34:49]NVStorageSaveData done [01:34:49]OFDSenderStorePacket done [01:34:49]KKMCreateOFDPacket done [01:34:49]NVStorageSaveData kkm_last_timestamp [01:34:49]File name is /storage/kkm_last_timestamp [01:34:49]Write 4 bytes [01:34:49]NVStorageSaveData done [01:34:49]ExternCall_PrintAddStr [01:34:49]wPrintStart [01:34:49]Write to MH i2c: 01 00 00 50 1A 6A [01:34:49]Write i2c OK [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: 01 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: 01 07 00 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: 01 07 00 50 1A 00 00 00 00 00 FF 0F 7F [01:34:49]RasterBufferAndPrint [01:34:49]line Счет N : (1)543277 [01:34:49]line ИНН: 02508201610067 [01:34:49]line Контрольно-Кассовый Чек [01:34:49]line ПРОДАЖА [01:34:49]line ТРК (МРК, ГНК) : 22 [01:34:49]line Товар: 2710124130 [01:34:49]line Аи-92-К-5 [01:34:49]line 3.740 * 66.90 [01:34:49]line = 250.21 [01:34:49]line НДС 12% НСП 1% [01:34:49]line > о реализуемом товаре [01:34:49]line ОКРУГЛЕНИЕ: -0.21 [01:34:49]line ИТОГО: 250.00 [01:34:49]line Внесено: 250.00 [01:34:49]line СДАЧА: 0.00 [01:34:49]line НСП 1% : 2.21 [01:34:49]line НДС 12% : 26.57 [01:34:49]line Наличными: 250.00 [01:34:49]line Безнал.: 0.00 [01:34:49]line Место: АЗС № 117 "Партнер Нефть" [01:34:49]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [01:34:49]line СНО: Общий режим [01:34:49]line Чек 19 03.06.2024 01:34 [01:34:49]line Смена: 70 ФФД: 1.0 [01:34:49]line ЗНМ: 0300000048 [01:34:49]line РНМ: 0000000000151680 [01:34:49]line Версия ККМ: v1.0 [01:34:49]line ФМ: 0000000000959414 [01:34:49]line ФД: 57935 [01:34:49]line ФПД: 18604235695369 [01:34:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T013448&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57935&fm=18604235695369&tin=02508201610067®Number=0000000000151680&sum=25000 [01:34:49]OFD Sender: Processing packet 57935 [packets to send 50, broken 49] [01:34:49]ProducePacketName [01:34:49]name=ofd_packets/00057935 [01:34:49]OFD Sender: To server: pG, [01:34:49]CommunicateWithHost lk.salyk.kg:30040 [01:34:49]ConnectInit lk.salyk.kg [01:34:49]written 0, free lines is 4095 [01:34:49]Connected sock=10 [01:34:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 C0 7F 07 01 4E C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 13 00 00 00 F4 03 04 00 B8 1D 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4F E2 00 00 35 04 06 00 10 EB A2 DC 25 09 EB 19 88 A8 01 E4 78 CB [01:34:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 A8 99 47 00 B3 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 4F E2 00 00 F4 03 04 00 88 C8 5C 66 B6 04 01 00 00 52 4C 4D 5C B7 F5 C8 D6 [01:34:49]CommunicateWithHost err = 0 [01:34:49]CheckOFDResponse [01:34:49]1017 (14) - 77093643461234 [01:34:49]1041 (16) - 0000000000959414 [01:34:49]1040 (4) - 57935 [01:34:49]1012 (4) - 02.06.2024 19:31 [01:34:49]1206 (1) - 0 [01:34:49]OFD Sender: Remove packet 57935 [01:34:49]ProducePacketName [01:34:49]name=ofd_packets/00057935 [01:34:49]NVStorageDeleteData [01:34:49]Write to MH i2c: 01 00 00 7B 1A 95 [01:34:49]Write i2c OK [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: 01 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: 01 07 00 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: 01 07 00 7B 1A 00 00 00 00 00 99 0C 41 [01:34:49]RasterBufferAndPrint [01:34:49]line [01:34:49]line [01:34:49]line [01:34:49]line [01:34:49]line [01:34:49]written 0, free lines is 3231 [01:34:50]MH_Cut [01:34:50]Write to MH i2c: D1 01 00 82 1A 01 6E [01:34:50]Write i2c OK [01:34:50]MH_I2C_Read... [01:34:50]Read from MH i2c: D1 [01:34:50]MH_I2C_Read... [01:34:50]Read from MH i2c: D1 01 00 [01:34:50]MH_I2C_Read... [01:34:50]Read from MH i2c: D1 01 00 82 1A 00 6D [01:34:50]Write to MH i2c: 01 00 00 83 1A 9D [01:34:50]Write i2c OK [01:34:50]MH_I2C_Read... [01:34:50]OFD Sender: No OFD packet to send [01:34:50]*** Cut start [01:34:50]*** Partial cut [01:34:50]*** CUTSNS_PIN = 1 [01:34:50]*** CUTSNS_PIN = 0 [01:34:51]*** Brake cut motor [01:34:51]Read from MH i2c: 01 [01:34:51]MH_I2C_Read... [01:34:51]*** Stop cut motor [01:34:51]*** Cut end [01:34:51]Read from MH i2c: 01 07 00 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: 01 07 00 83 1A 00 00 00 00 00 FF 0F B2 [01:34:51]process_action close_receipt done [01:34:51]requested_data is exist [01:34:51]produce_requested_data [01:34:51]requested_item fm.sn is exist - process it [01:34:51]wFMCommunicate request_size=4 [01:34:51]MH_SAM_APDU [01:34:51]CAPDU: 80 11 00 00 [01:34:51]Write to MH i2c: E2 08 00 84 1A 80 11 00 00 00 00 00 00 18 [01:34:51]Write i2c OK [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 [01:34:51]MH_I2C_Read... [01:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:51]Read from MH i2c: E2 17 00 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 17 00 84 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 6B [01:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:34:51]wFMCommunicate OK [01:34:51]requested_item fd.num is exist - process it [01:34:51]SAM_PROTO_GetFieldsCounters [01:34:51]wFMCommunicate request_size=4 [01:34:51]MH_SAM_APDU [01:34:51]CAPDU: 80 13 00 00 [01:34:51]Write to MH i2c: E2 08 00 85 1A 80 13 00 00 00 00 00 00 1B [01:34:51]Write i2c OK [01:34:51]MH_I2C_Read... [01:34:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:51]Read from MH i2c: E2 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 62 00 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 62 00 85 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 4F E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [01:34:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 4F E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:34:51]wFMCommunicate OK [01:34:51]SAM_PROTO_GetFieldsCounters done [01:34:51]requested_item shift.num is exist - process it [01:34:51]requested_item shift.opened is exist - process it [01:34:51]req_shift_opened [01:34:51]FM_GetShiftState [01:34:51]SAM_PROTO_GetShiftState [01:34:51]wFMCommunicate request_size=4 [01:34:51]MH_SAM_APDU [01:34:51]CAPDU: 80 13 01 00 [01:34:51]Write to MH i2c: E2 08 00 86 1A 80 13 01 00 00 00 00 00 1D [01:34:51]Write i2c OK [01:34:51]MH_I2C_Read... [01:34:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:51]Read from MH i2c: E2 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 0E 00 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 0E 00 86 1A 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 DE [01:34:51]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:34:51]wFMCommunicate OK [01:34:51]SAM_PROTO_GetShiftState done [01:34:51]FM_GetShiftState done [01:34:51]req_shift_opened done [01:34:51]requested_item shift.open_date is exist - process it [01:34:51]req_shift_open_date [01:34:51]req_shift_open_date done [01:34:51]produce_requested_data done [01:34:51]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57935,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [01:34:51]process_action_free close_receipt [01:34:51]json_value_free [01:34:51]json_value_free done [01:34:51]process_json_proto returns [01:34:51]Send response to host [01:34:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57935,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [01:34:51]free response buf [01:34:51]execute_script done [01:34:51]execute_script returns [01:34:51]free content buf [01:34:51]Sock 8.Close socket [01:34:51]Sock 8.Thread stoped [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:12]accept exits with 9 [01:39:12]New connection [01:39:12]New thread 3066592612 created [01:39:12]Thread 3066735972 joined [01:39:12]Waiting for new connection... [01:39:12] Sock 9.Parse request [01:39:12]Sock 9.Check first char [01:39:12]Sock 9.First char is OK [01:39:12]request: POST /json_proto HTTP/1.0 [01:39:12]Method: POST [01:39:12]URL: /json_proto [01:39:12]Method is POST - this is cgi request [01:39:12]url: /json_proto [01:39:12]query_string will be loaded in cgi processing [01:39:12]execute_cgi json_proto POST (null) [01:39:12]execute_cgi path=json_proto method=POST [01:39:12]POST find Content-Length [01:39:12]Host: 172.17.60.68:8080 [01:39:12]Content-Length: 677 [01:39:12]Content-Type: application/json [01:39:12] [01:39:12]POST finish read [01:39:12]Found Content-Length = 677 [01:39:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543278", "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.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:12]execute_script... [01:39:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543278", "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.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:12]POST & json_proto [01:39:12]process_json_proto [01:39:12]json parsed OK: [01:39:12]protocol is kg_v1.0 [01:39:12]action value=close_receipt [01:39:12]process_action close_receipt [01:39:12]cmd_close_receipt [01:39:12]MH_GetDate [01:39:12]Write to MH i2c: F0 00 00 87 1A 90 [01:39:12]Write i2c OK [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: F0 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: F0 09 00 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: F0 09 00 87 1A 00 C2 1E 5D 66 8D A7 02 66 D8 [01:39:12]GetLastDocTimeStamp 1717378488 [01:39:12]current date 1717378754 [01:39:12]FM_GetShiftState [01:39:12]SAM_PROTO_GetShiftState [01:39:12]wFMCommunicate request_size=4 [01:39:12]MH_SAM_APDU [01:39:12]CAPDU: 80 13 01 00 [01:39:12]Write to MH i2c: E2 08 00 88 1A 80 13 01 00 00 00 00 00 1F [01:39:12]Write i2c OK [01:39:12]MH_I2C_Read... [01:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:12]Read from MH i2c: E2 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 0E 00 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 0E 00 88 1A 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 E0 [01:39:12]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:39:12]wFMCommunicate OK [01:39:12]SAM_PROTO_GetShiftState done [01:39:12]FM_GetShiftState done [01:39:12]opened in 1717373417 [01:39:12]opened+sec_in_day 1717459817 [01:39:12]quantity*price = 40006 [01:39:12]sum+1 = 40007 [01:39:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 20 03.06.2024 01:39 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57936 ФПД: 254627236386915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T013914&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57936&fm=254627236386915&tin=02508201610067®Number=0000000000151680&sum=40000 [01:39:14]StoreToDocumentArchive [01:39:14]shift 70 fd 57936 [01:39:14]save to /storage/0070/doc_00057936 [01:39:14]save last doc name /storage/0070/doc_00057936 to /storage/kkm_last_doc_name [01:39:14]save OK [01:39:14]Clear old archive folders... [01:39:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:39:14]tlvbuf is 01A2BDE0 [01:39:14]SAM_PROTO_ClearQueue [01:39:14]wFMCommunicate request_size=4 [01:39:14]MH_SAM_APDU [01:39:14]CAPDU: 80 09 00 00 [01:39:14]Write to MH i2c: E2 08 00 95 1A 80 09 00 00 00 00 00 00 21 [01:39:14]Write i2c OK [01:39:14]MH_I2C_Read... [01:39:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:39:14]Read from MH i2c: E2 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 03 00 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 03 00 95 1A 00 90 00 23 [01:39:14]RAPDU: 90 00 [01:39:14]wFMCommunicate OK [01:39:14]SAM_PROTO_ClearQueue done [01:39:14]KKMCreateOFDPacket [01:39:14]OFDProtocolAddRootSTLVToBuf [01:39:14]FM_MakeSignedData [01:39:14]FM_MakeSignedData [01:39:14]SAM_PROTO_SignData [01:39:14]wFMCommunicate request_size=4 [01:39:14]MH_SAM_APDU [01:39:14]CAPDU: 80 0D 01 02 [01:39:14]Write to MH i2c: E2 08 00 96 1A 80 0D 01 02 00 00 00 00 29 [01:39:14]Write i2c OK [01:39:14]MH_I2C_Read... [01:39:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:39:14]Read from MH i2c: E2 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 03 00 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 03 00 96 1A 00 90 00 24 [01:39:14]RAPDU: 90 00 [01:39:14]wFMCommunicate OK [01:39:14]wFMCommunicate request_size=255 [01:39:14]MH_SAM_APDU [01:39:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C2 1E 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 50 E2 00 00 35 04 06 00 E7 [01:39:14]Write to MH i2c: E2 02 01 97 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C2 1E 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 50 E2 00 00 35 04 06 00 E7 00 00 99 [01:39:14]Write i2c OK [01:39:14]MH_I2C_Read... [01:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:14]Read from MH i2c: E2 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 03 00 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 03 00 97 1A 00 90 00 25 [01:39:14]RAPDU: 90 00 [01:39:14]wFMCommunicate OK [01:39:14]wFMCommunicate request_size=10 [01:39:14]MH_SAM_APDU [01:39:14]CAPDU: 80 0D 02 02 05 95 05 F9 98 63 [01:39:14]Write to MH i2c: E2 0D 00 98 1A 80 0D 02 02 05 00 95 05 F9 98 63 00 00 C4 [01:39:14]Write i2c OK [01:39:14]MH_I2C_Read... [01:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:14]Read from MH i2c: E2 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 03 00 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [01:39:14]RAPDU: 90 00 [01:39:14]wFMCommunicate OK [01:39:14]wFMCommunicate request_size=4 [01:39:14]MH_SAM_APDU [01:39:14]CAPDU: 80 0D 03 02 [01:39:14]Write to MH i2c: E2 08 00 99 1A 80 0D 03 02 00 00 00 00 2E [01:39:14]Write i2c OK [01:39:14]MH_I2C_Read... [01:39:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:39:14]Read from MH i2c: E2 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 0B 00 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 0B 00 99 1A 00 A7 F6 24 E5 C1 C6 4C 33 90 00 DB [01:39:14]RAPDU: A7 F6 24 E5 C1 C6 4C 33 90 00 [01:39:14]wFMCommunicate OK [01:39:14]SAM_PROTO_SignData done [01:39:14]FM_MakeSignedData done [01:39:14]CreateOFDProtocolMessage [01:39:14]wFMCommunicate request_size=4 [01:39:14]MH_SAM_APDU [01:39:14]CAPDU: 80 11 00 00 [01:39:14]Write to MH i2c: E2 08 00 9A 1A 80 11 00 00 00 00 00 00 2E [01:39:14]Write i2c OK [01:39:14]MH_I2C_Read... [01:39:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:14]Read from MH i2c: E2 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 17 00 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: E2 17 00 9A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 81 [01:39:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:39:14]wFMCommunicate OK [01:39:14]CreateOFDProtocolMessage done [01:39:14]OFDSenderStorePacket 57936 [01:39:14]StoreOFDPacket docnum=57936 [01:39:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 88 F7 07 01 74 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C2 1E 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 50 E2 00 00 35 04 06 00 E7 95 05 F9 98 63 A7 F6 24 E5 C1 C6 4C 33 [01:39:14]CheckFolder [01:39:14]dirname=/storage/ofd_packets [01:39:14]CheckFolder done [01:39:14]ProducePacketName [01:39:14]name=ofd_packets/00057936 [01:39:14]NVStorageSaveData ofd_packets/00057936 [01:39:14]File name is /storage/ofd_packets/00057936 [01:39:14]Write 301 bytes [01:39:14]NVStorageSaveData done [01:39:14]OFDSenderStorePacket done [01:39:14]KKMCreateOFDPacket done [01:39:14]NVStorageSaveData kkm_last_timestamp [01:39:14]File name is /storage/kkm_last_timestamp [01:39:14]Write 4 bytes [01:39:14]NVStorageSaveData done [01:39:14]ExternCall_PrintAddStr [01:39:14]wPrintStart [01:39:14]Write to MH i2c: 01 00 00 9B 1A B5 [01:39:14]Write i2c OK [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: 01 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: 01 07 00 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: 01 07 00 9B 1A 00 00 00 00 00 FF 0F CA [01:39:14]RasterBufferAndPrint [01:39:14]line Счет N : (1)543278 [01:39:14]line ИНН: 02508201610067 [01:39:14]line Контрольно-Кассовый Чек [01:39:14]line ПРОДАЖА [01:39:14]line ТРК (МРК, ГНК) : 12 [01:39:14]line Товар: 2710124130 [01:39:14]line Аи-92-К-5 [01:39:14]line 5.980 * 66.90 [01:39:14]line = 400.06 [01:39:14]line НДС 12% НСП 1% [01:39:14]line > о реализуемом товаре [01:39:14]line ОКРУГЛЕНИЕ: -0.06 [01:39:14]line ИТОГО: 400.00 [01:39:14]line Внесено: 400.00 [01:39:14]line СДАЧА: 0.00 [01:39:14]line НСП 1% : 3.54 [01:39:14]line НДС 12% : 42.48 [01:39:14]line Наличными: 400.00 [01:39:14]line Безнал.: 0.00 [01:39:14]line Место: АЗС № 117 "Партнер Нефть" [01:39:14]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [01:39:14]line СНО: Общий режим [01:39:14]line Чек 20 03.06.2024 01:39 [01:39:14]line Смена: 70 ФФД: 1.0 [01:39:14]line ЗНМ: 0300000048 [01:39:14]line РНМ: 0000000000151680 [01:39:14]line Версия ККМ: v1.0 [01:39:14]line ФМ: 0000000000959414 [01:39:14]line ФД: 57936 [01:39:14]line ФПД: 254627236386915 [01:39:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T013914&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57936&fm=254627236386915&tin=02508201610067®Number=0000000000151680&sum=40000 [01:39:14]OFD Sender: Processing packet 57936 [packets to send 50, broken 49] [01:39:14]ProducePacketName [01:39:14]name=ofd_packets/00057936 [01:39:14]OFD Sender: To server: pG, [01:39:14]CommunicateWithHost lk.salyk.kg:30040 [01:39:14]ConnectInit lk.salyk.kg [01:39:14]written 0, free lines is 4095 [01:39:15]Connected sock=10 [01:39:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 88 F7 07 01 74 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C2 1E 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 50 E2 00 00 35 04 06 00 E7 95 05 F9 98 63 A7 F6 24 E5 C1 C6 4C 33 [01:39:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 48 B5 47 00 32 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 50 E2 00 00 F4 03 04 00 91 C9 5C 66 B6 04 01 00 00 CB 56 45 48 A6 23 03 7F [01:39:15]CommunicateWithHost err = 0 [01:39:15]CheckOFDResponse [01:39:15]1017 (14) - 77093643461234 [01:39:15]1041 (16) - 0000000000959414 [01:39:15]1040 (4) - 57936 [01:39:15]1012 (4) - 02.06.2024 19:35 [01:39:15]1206 (1) - 0 [01:39:15]OFD Sender: Remove packet 57936 [01:39:15]ProducePacketName [01:39:15]name=ofd_packets/00057936 [01:39:15]NVStorageDeleteData [01:39:15]Write to MH i2c: 01 00 00 C6 1A E0 [01:39:15]Write i2c OK [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: 01 [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: 01 07 00 [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: 01 07 00 C6 1A 00 00 00 00 00 AF 0C A2 [01:39:15]RasterBufferAndPrint [01:39:15]line [01:39:15]line [01:39:15]line [01:39:15]line [01:39:15]line [01:39:15]written 0, free lines is 3252 [01:39:15]MH_Cut [01:39:15]Write to MH i2c: D1 01 00 CD 1A 01 B9 [01:39:15]Write i2c OK [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: D1 [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: D1 01 00 [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: D1 01 00 CD 1A 00 B8 [01:39:15]Write to MH i2c: 01 00 00 CE 1A E8 [01:39:15]Write i2c OK [01:39:15]MH_I2C_Read... [01:39:15]OFD Sender: No OFD packet to send [01:39:16]*** Cut start [01:39:16]*** Partial cut [01:39:16]*** CUTSNS_PIN = 1 [01:39:16]*** CUTSNS_PIN = 0 [01:39:16]*** Brake cut motor [01:39:16]Read from MH i2c: 01 [01:39:16]MH_I2C_Read... [01:39:16]*** Stop cut motor [01:39:16]*** Cut end [01:39:16]Read from MH i2c: 01 07 00 [01:39:16]MH_I2C_Read... [01:39:16]Read from MH i2c: 01 07 00 CE 1A 00 00 00 00 00 FF 0F FD [01:39:16]process_action close_receipt done [01:39:16]requested_data is exist [01:39:16]produce_requested_data [01:39:16]requested_item fm.sn is exist - process it [01:39:16]wFMCommunicate request_size=4 [01:39:16]MH_SAM_APDU [01:39:16]CAPDU: 80 11 00 00 [01:39:16]Write to MH i2c: E2 08 00 CF 1A 80 11 00 00 00 00 00 00 63 [01:39:16]Write i2c OK [01:39:16]MH_I2C_Read... [01:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:17]Read from MH i2c: E2 [01:39:17]MH_I2C_Read... [01:39:17]Read from MH i2c: E2 17 00 [01:39:17]MH_I2C_Read... [01:39:17]Read from MH i2c: E2 17 00 CF 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 B6 [01:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:39:17]wFMCommunicate OK [01:39:17]requested_item fd.num is exist - process it [01:39:17]SAM_PROTO_GetFieldsCounters [01:39:17]wFMCommunicate request_size=4 [01:39:17]MH_SAM_APDU [01:39:17]CAPDU: 80 13 00 00 [01:39:17]Write to MH i2c: E2 08 00 D0 1A 80 13 00 00 00 00 00 00 66 [01:39:17]Write i2c OK [01:39:17]MH_I2C_Read... [01:39:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:39:17]Read from MH i2c: E2 [01:39:17]MH_I2C_Read... [01:39:17]Read from MH i2c: E2 62 00 [01:39:17]MH_I2C_Read... [01:39:17]Read from MH i2c: E2 62 00 D0 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 50 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [01:39:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 50 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:39:17]wFMCommunicate OK [01:39:17]SAM_PROTO_GetFieldsCounters done [01:39:17]requested_item shift.num is exist - process it [01:39:17]requested_item shift.opened is exist - process it [01:39:17]req_shift_opened [01:39:17]FM_GetShiftState [01:39:17]SAM_PROTO_GetShiftState [01:39:17]wFMCommunicate request_size=4 [01:39:17]MH_SAM_APDU [01:39:17]CAPDU: 80 13 01 00 [01:39:17]Write to MH i2c: E2 08 00 D1 1A 80 13 01 00 00 00 00 00 68 [01:39:17]Write i2c OK [01:39:17]MH_I2C_Read... [01:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:17]Read from MH i2c: E2 [01:39:17]MH_I2C_Read... [01:39:17]Read from MH i2c: E2 0E 00 [01:39:17]MH_I2C_Read... [01:39:17]Read from MH i2c: E2 0E 00 D1 1A 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 29 [01:39:17]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:39:17]wFMCommunicate OK [01:39:17]SAM_PROTO_GetShiftState done [01:39:17]FM_GetShiftState done [01:39:17]req_shift_opened done [01:39:17]requested_item shift.open_date is exist - process it [01:39:17]req_shift_open_date [01:39:17]req_shift_open_date done [01:39:17]produce_requested_data done [01:39:17]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57936,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [01:39:17]process_action_free close_receipt [01:39:17]json_value_free [01:39:17]json_value_free done [01:39:17]process_json_proto returns [01:39:17]Send response to host [01:39:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57936,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [01:39:17]free response buf [01:39:17]execute_script done [01:39:17]execute_script returns [01:39:17]free content buf [01:39:17]Sock 9.Close socket [01:39:17]Sock 9.Thread stoped [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:41:56]accept exits with 8 [01:41:56]New connection [01:41:56]New thread 3066735972 created [01:41:56]Thread 3066592612 joined [01:41:56]Waiting for new connection... [01:41:56] Sock 8.Parse request [01:41:56]Sock 8.Check first char [01:41:56]Sock 8.First char is OK [01:41:56]request: POST /json_proto HTTP/1.0 [01:41:56]Method: POST [01:41:56]URL: /json_proto [01:41:56]Method is POST - this is cgi request [01:41:56]url: /json_proto [01:41:56]query_string will be loaded in cgi processing [01:41:56]execute_cgi json_proto POST (null) [01:41:56]execute_cgi path=json_proto method=POST [01:41:56]POST find Content-Length [01:41:56]Host: 172.17.60.68:8080 [01:41:56]Content-Length: 671 [01:41:56]Content-Type: application/json [01:41:56] [01:41:56]POST finish read [01:41:56]Found Content-Length = 671 [01:41:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 10.310, "sum" : 700.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:41:56]execute_script... [01:41:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 10.310, "sum" : 700.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:41:56]POST & json_proto [01:41:56]process_json_proto [01:41:56]json parsed OK: [01:41:56]protocol is kg_v1.0 [01:41:56]action value=close_receipt [01:41:56]process_action close_receipt [01:41:56]cmd_close_receipt [01:41:56]MH_GetDate [01:41:56]Write to MH i2c: F0 00 00 D2 1A DB [01:41:56]Write i2c OK [01:41:56]MH_I2C_Read... [01:41:56]Read from MH i2c: F0 [01:41:56]MH_I2C_Read... [01:41:56]Read from MH i2c: F0 09 00 [01:41:56]MH_I2C_Read... [01:41:56]Read from MH i2c: F0 09 00 D2 1A 00 65 1F 5D 66 8D A7 02 66 C7 [01:41:56]GetLastDocTimeStamp 1717378754 [01:41:56]current date 1717378917 [01:41:56]FM_GetShiftState [01:41:56]SAM_PROTO_GetShiftState [01:41:56]wFMCommunicate request_size=4 [01:41:56]MH_SAM_APDU [01:41:56]CAPDU: 80 13 01 00 [01:41:56]Write to MH i2c: E2 08 00 D3 1A 80 13 01 00 00 00 00 00 6A [01:41:56]Write i2c OK [01:41:56]MH_I2C_Read... [01:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:56]Read from MH i2c: E2 [01:41:56]MH_I2C_Read... [01:41:56]Read from MH i2c: E2 0E 00 [01:41:56]MH_I2C_Read... [01:41:56]Read from MH i2c: E2 0E 00 D3 1A 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 2B [01:41:56]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:41:56]wFMCommunicate OK [01:41:56]SAM_PROTO_GetShiftState done [01:41:56]FM_GetShiftState done [01:41:56]opened in 1717373417 [01:41:56]opened+sec_in_day 1717459817 [01:41:56]quantity*price = 70004 [01:41:56]sum+1 = 70006 [01:41:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 21 03.06.2024 01:41 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57937 ФПД: 118537578982170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T014157&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57937&fm=118537578982170&tin=02508201610067®Number=0000000000151680&sum=70000 [01:41:57]StoreToDocumentArchive [01:41:57]shift 70 fd 57937 [01:41:57]save to /storage/0070/doc_00057937 [01:41:57]save last doc name /storage/0070/doc_00057937 to /storage/kkm_last_doc_name [01:41:57]save OK [01:41:57]Clear old archive folders... [01:41:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:41:57]tlvbuf is 01966130 [01:41:57]SAM_PROTO_ClearQueue [01:41:57]wFMCommunicate request_size=4 [01:41:57]MH_SAM_APDU [01:41:57]CAPDU: 80 09 00 00 [01:41:57]Write to MH i2c: E2 08 00 E0 1A 80 09 00 00 00 00 00 00 6C [01:41:57]Write i2c OK [01:41:57]MH_I2C_Read... [01:41:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:41:57]Read from MH i2c: E2 [01:41:57]MH_I2C_Read... [01:41:57]Read from MH i2c: E2 03 00 [01:41:57]MH_I2C_Read... [01:41:57]Read from MH i2c: E2 03 00 E0 1A 00 90 00 6E [01:41:57]RAPDU: 90 00 [01:41:57]wFMCommunicate OK [01:41:57]SAM_PROTO_ClearQueue done [01:41:57]KKMCreateOFDPacket [01:41:57]OFDProtocolAddRootSTLVToBuf [01:41:57]FM_MakeSignedData [01:41:57]FM_MakeSignedData [01:41:57]SAM_PROTO_SignData [01:41:57]wFMCommunicate request_size=4 [01:41:57]MH_SAM_APDU [01:41:57]CAPDU: 80 0D 01 02 [01:41:57]Write to MH i2c: E2 08 00 E1 1A 80 0D 01 02 00 00 00 00 74 [01:41:57]Write i2c OK [01:41:57]MH_I2C_Read... [01:41:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:41:57]Read from MH i2c: E2 [01:41:57]MH_I2C_Read... [01:41:57]Read from MH i2c: E2 03 00 [01:41:57]MH_I2C_Read... [01:41:57]Read from MH i2c: E2 03 00 E1 1A 00 90 00 6F [01:41:57]RAPDU: 90 00 [01:41:57]wFMCommunicate OK [01:41:57]wFMCommunicate request_size=255 [01:41:57]MH_SAM_APDU [01:41:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 15 00 00 00 F4 03 04 00 65 1F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 51 E2 00 00 35 04 06 00 [01:41:57]Write to MH i2c: E2 02 01 E2 1A 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 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 15 00 00 00 F4 03 04 00 65 1F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 51 E2 00 00 35 04 06 00 00 00 19 [01:41:57]Write i2c OK [01:41:57]MH_I2C_Read... [01:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:41:58]Read from MH i2c: E2 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: E2 03 00 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: E2 03 00 E2 1A 00 90 00 70 [01:41:58]RAPDU: 90 00 [01:41:58]wFMCommunicate OK [01:41:58]wFMCommunicate request_size=11 [01:41:58]MH_SAM_APDU [01:41:58]CAPDU: 80 0D 02 02 06 6B CF 2E 49 AB 1A [01:41:58]Write to MH i2c: E2 0E 00 E3 1A 80 0D 02 02 06 00 6B CF 2E 49 AB 1A 00 00 F9 [01:41:58]Write i2c OK [01:41:58]MH_I2C_Read... [01:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:41:58]Read from MH i2c: E2 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: E2 03 00 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: E2 03 00 E3 1A 00 90 00 71 [01:41:58]RAPDU: 90 00 [01:41:58]wFMCommunicate OK [01:41:58]wFMCommunicate request_size=4 [01:41:58]MH_SAM_APDU [01:41:58]CAPDU: 80 0D 03 02 [01:41:58]Write to MH i2c: E2 08 00 E4 1A 80 0D 03 02 00 00 00 00 79 [01:41:58]Write i2c OK [01:41:58]MH_I2C_Read... [01:41:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:41:58]Read from MH i2c: E2 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: E2 0B 00 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: E2 0B 00 E4 1A 00 39 E3 3C E9 F6 F8 32 2D 90 00 08 [01:41:58]RAPDU: 39 E3 3C E9 F6 F8 32 2D 90 00 [01:41:58]wFMCommunicate OK [01:41:58]SAM_PROTO_SignData done [01:41:58]FM_MakeSignedData done [01:41:58]CreateOFDProtocolMessage [01:41:58]wFMCommunicate request_size=4 [01:41:58]MH_SAM_APDU [01:41:58]CAPDU: 80 11 00 00 [01:41:58]Write to MH i2c: E2 08 00 E5 1A 80 11 00 00 00 00 00 00 79 [01:41:58]Write i2c OK [01:41:58]MH_I2C_Read... [01:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:58]Read from MH i2c: E2 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: E2 17 00 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: E2 17 00 E5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 CC [01:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:41:58]wFMCommunicate OK [01:41:58]CreateOFDProtocolMessage done [01:41:58]OFDSenderStorePacket 57937 [01:41:58]StoreOFDPacket docnum=57937 [01:41:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 69 BD 08 01 DA 21 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 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 15 00 00 00 F4 03 04 00 65 1F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 51 E2 00 00 35 04 06 00 6B CF 2E 49 AB 1A 39 E3 3C E9 F6 F8 32 2D [01:41:58]CheckFolder [01:41:58]dirname=/storage/ofd_packets [01:41:58]CheckFolder done [01:41:58]ProducePacketName [01:41:58]name=ofd_packets/00057937 [01:41:58]NVStorageSaveData ofd_packets/00057937 [01:41:58]File name is /storage/ofd_packets/00057937 [01:41:58]Write 302 bytes [01:41:58]NVStorageSaveData done [01:41:58]OFDSenderStorePacket done [01:41:58]KKMCreateOFDPacket done [01:41:58]NVStorageSaveData kkm_last_timestamp [01:41:58]File name is /storage/kkm_last_timestamp [01:41:58]Write 4 bytes [01:41:58]NVStorageSaveData done [01:41:58]ExternCall_PrintAddStr [01:41:58]wPrintStart [01:41:58]Write to MH i2c: 01 00 00 E6 1A 00 [01:41:58]Write i2c OK [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: 01 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: 01 07 00 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: 01 07 00 E6 1A 00 00 00 00 00 FF 0F 15 [01:41:58]RasterBufferAndPrint [01:41:58]line Счет N : (1)543279 [01:41:58]line ИНН: 02508201610067 [01:41:58]line Контрольно-Кассовый Чек [01:41:58]line ПРОДАЖА [01:41:58]line ТРК (МРК, ГНК) : 34 [01:41:58]line Товар: 2710124130 [01:41:58]line SUPER 92-К-5 [01:41:58]line 10.310 * 67.90 [01:41:58]line = 700.05 [01:41:58]line НДС 12% НСП 1% [01:41:58]line > о реализуемом товаре [01:41:58]line ОКРУГЛЕНИЕ: -0.05 [01:41:58]line ИТОГО: 700.00 [01:41:58]line Внесено: 700.00 [01:41:58]line СДАЧА: 0.00 [01:41:58]line НСП 1% : 6.19 [01:41:58]line НДС 12% : 74.34 [01:41:58]line Наличными: 700.00 [01:41:58]line Безнал.: 0.00 [01:41:58]line Место: АЗС № 117 "Партнер Нефть" [01:41:58]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [01:41:58]line СНО: Общий режим [01:41:58]line Чек 21 03.06.2024 01:41 [01:41:58]line Смена: 70 ФФД: 1.0 [01:41:58]line ЗНМ: 0300000048 [01:41:58]line РНМ: 0000000000151680 [01:41:58]line Версия ККМ: v1.0 [01:41:58]line ФМ: 0000000000959414 [01:41:58]line ФД: 57937 [01:41:58]line ФПД: 118537578982170 [01:41:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T014157&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57937&fm=118537578982170&tin=02508201610067®Number=0000000000151680&sum=70000 [01:41:58]OFD Sender: Processing packet 57937 [packets to send 50, broken 49] [01:41:58]ProducePacketName [01:41:58]name=ofd_packets/00057937 [01:41:58]OFD Sender: To server: pG, [01:41:58]CommunicateWithHost lk.salyk.kg:30040 [01:41:58]ConnectInit lk.salyk.kg [01:41:58]written 0, free lines is 4095 [01:41:58]Connected sock=10 [01:41:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 69 BD 08 01 DA 21 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 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 15 00 00 00 F4 03 04 00 65 1F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 51 E2 00 00 35 04 06 00 6B CF 2E 49 AB 1A 39 E3 3C E9 F6 F8 32 2D [01:41:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 08 93 47 00 C0 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 39 35 39 34 31 34 10 04 04 00 51 E2 00 00 F4 03 04 00 35 CA 5C 66 B6 04 01 00 00 F4 3A E2 0A 54 40 7B B9 [01:41:58]CommunicateWithHost err = 0 [01:41:58]CheckOFDResponse [01:41:58]1017 (14) - 77093643461234 [01:41:58]1041 (16) - 0000000000959414 [01:41:58]1040 (4) - 57937 [01:41:58]1012 (4) - 02.06.2024 19:38 [01:41:58]1206 (1) - 0 [01:41:58]OFD Sender: Remove packet 57937 [01:41:58]ProducePacketName [01:41:58]name=ofd_packets/00057937 [01:41:58]NVStorageDeleteData [01:41:59]Write to MH i2c: 01 00 00 11 1B 2C [01:41:59]Write i2c OK [01:41:59]MH_I2C_Read... [01:41:59]Read from MH i2c: 01 [01:41:59]MH_I2C_Read... [01:41:59]Read from MH i2c: 01 07 00 [01:41:59]MH_I2C_Read... [01:41:59]Read from MH i2c: 01 07 00 11 1B 00 00 00 00 00 AD 0C EC [01:41:59]RasterBufferAndPrint [01:41:59]line [01:41:59]line [01:41:59]line [01:41:59]line [01:41:59]line [01:41:59]written 0, free lines is 3249 [01:41:59]MH_Cut [01:41:59]Write to MH i2c: D1 01 00 18 1B 01 05 [01:41:59]Write i2c OK [01:41:59]MH_I2C_Read... [01:41:59]Read from MH i2c: D1 [01:41:59]MH_I2C_Read... [01:41:59]Read from MH i2c: D1 01 00 [01:41:59]MH_I2C_Read... [01:41:59]Read from MH i2c: D1 01 00 18 1B 00 04 [01:41:59]Write to MH i2c: 01 00 00 19 1B 34 [01:41:59]Write i2c OK [01:41:59]MH_I2C_Read... [01:41:59]OFD Sender: No OFD packet to send [01:41:59]*** Cut start [01:41:59]*** Partial cut [01:41:59]*** CUTSNS_PIN = 1 [01:41:59]*** CUTSNS_PIN = 0 [01:42:00]*** Brake cut motor [01:42:00]Read from MH i2c: 01 [01:42:00]MH_I2C_Read... [01:42:00]*** Stop cut motor [01:42:00]*** Cut end [01:42:00]Read from MH i2c: 01 07 00 [01:42:00]MH_I2C_Read... [01:42:00]Read from MH i2c: 01 07 00 19 1B 00 00 00 00 00 FF 0F 49 [01:42:00]process_action close_receipt done [01:42:00]requested_data is exist [01:42:00]produce_requested_data [01:42:00]requested_item fm.sn is exist - process it [01:42:00]wFMCommunicate request_size=4 [01:42:00]MH_SAM_APDU [01:42:00]CAPDU: 80 11 00 00 [01:42:00]Write to MH i2c: E2 08 00 1A 1B 80 11 00 00 00 00 00 00 AF [01:42:00]Write i2c OK [01:42:00]MH_I2C_Read... [01:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:00]Read from MH i2c: E2 [01:42:00]MH_I2C_Read... [01:42:00]Read from MH i2c: E2 17 00 [01:42:00]MH_I2C_Read... [01:42:00]Read from MH i2c: E2 17 00 1A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 02 [01:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:42:00]wFMCommunicate OK [01:42:00]requested_item fd.num is exist - process it [01:42:00]SAM_PROTO_GetFieldsCounters [01:42:00]wFMCommunicate request_size=4 [01:42:00]MH_SAM_APDU [01:42:00]CAPDU: 80 13 00 00 [01:42:00]Write to MH i2c: E2 08 00 1B 1B 80 13 00 00 00 00 00 00 B2 [01:42:00]Write i2c OK [01:42:00]MH_I2C_Read... [01:42:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:42:00]Read from MH i2c: E2 [01:42:00]MH_I2C_Read... [01:42:00]Read from MH i2c: E2 62 00 [01:42:00]MH_I2C_Read... [01:42:00]Read from MH i2c: E2 62 00 1B 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 51 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [01:42:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 51 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:42:00]wFMCommunicate OK [01:42:00]SAM_PROTO_GetFieldsCounters done [01:42:00]requested_item shift.num is exist - process it [01:42:00]requested_item shift.opened is exist - process it [01:42:00]req_shift_opened [01:42:00]FM_GetShiftState [01:42:00]SAM_PROTO_GetShiftState [01:42:00]wFMCommunicate request_size=4 [01:42:00]MH_SAM_APDU [01:42:00]CAPDU: 80 13 01 00 [01:42:00]Write to MH i2c: E2 08 00 1C 1B 80 13 01 00 00 00 00 00 B4 [01:42:00]Write i2c OK [01:42:00]MH_I2C_Read... [01:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:00]Read from MH i2c: E2 [01:42:00]MH_I2C_Read... [01:42:00]Read from MH i2c: E2 0E 00 [01:42:00]MH_I2C_Read... [01:42:00]Read from MH i2c: E2 0E 00 1C 1B 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 75 [01:42:00]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:42:00]wFMCommunicate OK [01:42:00]SAM_PROTO_GetShiftState done [01:42:00]FM_GetShiftState done [01:42:00]req_shift_opened done [01:42:00]requested_item shift.open_date is exist - process it [01:42:00]req_shift_open_date [01:42:00]req_shift_open_date done [01:42:00]produce_requested_data done [01:42:00]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57937,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [01:42:00]process_action_free close_receipt [01:42:00]json_value_free [01:42:00]json_value_free done [01:42:00]process_json_proto returns [01:42:00]Send response to host [01:42:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57937,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [01:42:00]free response buf [01:42:00]execute_script done [01:42:00]execute_script returns [01:42:00]free content buf [01:42:00]Sock 8.Close socket [01:42:00]Sock 8.Thread stoped [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:02]accept exits with 9 [01:44:02]New connection [01:44:02]New thread 3066592612 created [01:44:02]Thread 3066735972 joined [01:44:02]Waiting for new connection... [01:44:02] Sock 9.Parse request [01:44:02]Sock 9.Check first char [01:44:02]Sock 9.First char is OK [01:44:02]request: POST /json_proto HTTP/1.0 [01:44:02]Method: POST [01:44:02]URL: /json_proto [01:44:02]Method is POST - this is cgi request [01:44:02]url: /json_proto [01:44:02]query_string will be loaded in cgi processing [01:44:02]execute_cgi json_proto POST (null) [01:44:02]execute_cgi path=json_proto method=POST [01:44:02]POST find Content-Length [01:44:02]Host: 172.17.60.68:8080 [01:44:02]Content-Length: 800 [01:44:02]Content-Type: application/json [01:44:02] [01:44:02]POST finish read [01:44:02]Found Content-Length = 800 [01:44:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543280", "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" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 120.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:02]execute_script... [01:44:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543280", "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" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 120.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:02]POST & json_proto [01:44:02]process_json_proto [01:44:02]json parsed OK: [01:44:02]protocol is kg_v1.0 [01:44:02]action value=close_receipt [01:44:02]process_action close_receipt [01:44:02]cmd_close_receipt [01:44:02]MH_GetDate [01:44:02]Write to MH i2c: F0 00 00 1D 1B 27 [01:44:02]Write i2c OK [01:44:02]MH_I2C_Read... [01:44:02]Read from MH i2c: F0 [01:44:02]MH_I2C_Read... [01:44:02]Read from MH i2c: F0 09 00 [01:44:02]MH_I2C_Read... [01:44:02]Read from MH i2c: F0 09 00 1D 1B 00 E3 1F 5D 66 8D A7 02 66 91 [01:44:02]GetLastDocTimeStamp 1717378917 [01:44:02]current date 1717379043 [01:44:02]FM_GetShiftState [01:44:02]SAM_PROTO_GetShiftState [01:44:02]wFMCommunicate request_size=4 [01:44:02]MH_SAM_APDU [01:44:02]CAPDU: 80 13 01 00 [01:44:02]Write to MH i2c: E2 08 00 1E 1B 80 13 01 00 00 00 00 00 B6 [01:44:02]Write i2c OK [01:44:02]MH_I2C_Read... [01:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:02]Read from MH i2c: E2 [01:44:02]MH_I2C_Read... [01:44:02]Read from MH i2c: E2 0E 00 [01:44:02]MH_I2C_Read... [01:44:02]Read from MH i2c: E2 0E 00 1E 1B 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 77 [01:44:02]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:44:02]wFMCommunicate OK [01:44:02]SAM_PROTO_GetShiftState done [01:44:02]FM_GetShiftState done [01:44:02]opened in 1717373417 [01:44:02]opened+sec_in_day 1717459817 [01:44:02]quantity*price = 12042 [01:44:02]sum+1 = 12043 [01:44:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.42 НСП 1% : 1.07 НДС 12% : 12.79 Наличными: 0.00 Безнал.: 120.42 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 22 03.06.2024 01:44 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57938 ФПД: 145479392888160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T014403&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57938&fm=145479392888160&tin=02508201610067®Number=0000000000151680&sum=12042 [01:44:03]StoreToDocumentArchive [01:44:03]shift 70 fd 57938 [01:44:03]save to /storage/0070/doc_00057938 [01:44:03]save last doc name /storage/0070/doc_00057938 to /storage/kkm_last_doc_name [01:44:03]save OK [01:44:03]Clear old archive folders... [01:44:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:44:03]tlvbuf is 01AD5B90 [01:44:03]SAM_PROTO_ClearQueue [01:44:03]wFMCommunicate request_size=4 [01:44:03]MH_SAM_APDU [01:44:03]CAPDU: 80 09 00 00 [01:44:03]Write to MH i2c: E2 08 00 2B 1B 80 09 00 00 00 00 00 00 B8 [01:44:03]Write i2c OK [01:44:03]MH_I2C_Read... [01:44:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:44:03]Read from MH i2c: E2 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 03 00 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 03 00 2B 1B 00 90 00 BA [01:44:03]RAPDU: 90 00 [01:44:03]wFMCommunicate OK [01:44:03]SAM_PROTO_ClearQueue done [01:44:03]KKMCreateOFDPacket [01:44:03]OFDProtocolAddRootSTLVToBuf [01:44:03]FM_MakeSignedData [01:44:03]FM_MakeSignedData [01:44:03]SAM_PROTO_SignData [01:44:03]wFMCommunicate request_size=4 [01:44:03]MH_SAM_APDU [01:44:03]CAPDU: 80 0D 01 02 [01:44:03]Write to MH i2c: E2 08 00 2C 1B 80 0D 01 02 00 00 00 00 C0 [01:44:03]Write i2c OK [01:44:03]MH_I2C_Read... [01:44:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:44:03]Read from MH i2c: E2 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 03 00 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 03 00 2C 1B 00 90 00 BB [01:44:03]RAPDU: 90 00 [01:44:03]wFMCommunicate OK [01:44:03]wFMCommunicate request_size=255 [01:44:03]MH_SAM_APDU [01:44:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0A 2F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0A 2F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E3 1F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 52 E2 00 00 35 04 06 00 84 [01:44:03]Write to MH i2c: E2 02 01 2D 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0A 2F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0A 2F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E3 1F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 52 E2 00 00 35 04 06 00 84 00 00 03 [01:44:03]Write i2c OK [01:44:03]MH_I2C_Read... [01:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:03]Read from MH i2c: E2 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 03 00 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 03 00 2D 1B 00 90 00 BC [01:44:03]RAPDU: 90 00 [01:44:03]wFMCommunicate OK [01:44:03]wFMCommunicate request_size=10 [01:44:03]MH_SAM_APDU [01:44:03]CAPDU: 80 0D 02 02 05 50 0F 89 05 60 [01:44:03]Write to MH i2c: E2 0D 00 2E 1B 80 0D 02 02 05 00 50 0F 89 05 60 00 00 1A [01:44:03]Write i2c OK [01:44:03]MH_I2C_Read... [01:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:03]Read from MH i2c: E2 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 03 00 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 03 00 2E 1B 00 90 00 BD [01:44:03]RAPDU: 90 00 [01:44:03]wFMCommunicate OK [01:44:03]wFMCommunicate request_size=4 [01:44:03]MH_SAM_APDU [01:44:03]CAPDU: 80 0D 03 02 [01:44:03]Write to MH i2c: E2 08 00 2F 1B 80 0D 03 02 00 00 00 00 C5 [01:44:03]Write i2c OK [01:44:03]MH_I2C_Read... [01:44:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:44:03]Read from MH i2c: E2 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 0B 00 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 0B 00 2F 1B 00 80 54 D2 7E 43 BA 6B 54 90 00 A6 [01:44:03]RAPDU: 80 54 D2 7E 43 BA 6B 54 90 00 [01:44:03]wFMCommunicate OK [01:44:03]SAM_PROTO_SignData done [01:44:03]FM_MakeSignedData done [01:44:03]CreateOFDProtocolMessage [01:44:03]wFMCommunicate request_size=4 [01:44:03]MH_SAM_APDU [01:44:03]CAPDU: 80 11 00 00 [01:44:03]Write to MH i2c: E2 08 00 30 1B 80 11 00 00 00 00 00 00 C5 [01:44:03]Write i2c OK [01:44:03]MH_I2C_Read... [01:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:03]Read from MH i2c: E2 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 17 00 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 17 00 30 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 18 [01:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:44:03]wFMCommunicate OK [01:44:03]CreateOFDProtocolMessage done [01:44:03]OFDSenderStorePacket 57938 [01:44:03]StoreOFDPacket docnum=57938 [01:44:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 A5 E6 07 01 1A F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0A 2F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0A 2F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E3 1F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 52 E2 00 00 35 04 06 00 84 50 0F 89 05 60 80 54 D2 7E 43 BA 6B 54 [01:44:03]CheckFolder [01:44:03]dirname=/storage/ofd_packets [01:44:03]CheckFolder done [01:44:03]ProducePacketName [01:44:03]name=ofd_packets/00057938 [01:44:03]NVStorageSaveData ofd_packets/00057938 [01:44:03]File name is /storage/ofd_packets/00057938 [01:44:03]Write 301 bytes [01:44:03]NVStorageSaveData done [01:44:03]OFDSenderStorePacket done [01:44:03]KKMCreateOFDPacket done [01:44:03]NVStorageSaveData kkm_last_timestamp [01:44:03]File name is /storage/kkm_last_timestamp [01:44:03]Write 4 bytes [01:44:03]NVStorageSaveData done [01:44:03]ExternCall_PrintAddStr [01:44:03]wPrintStart [01:44:03]Write to MH i2c: 01 00 00 31 1B 4C [01:44:03]Write i2c OK [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: 01 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: 01 07 00 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: 01 07 00 31 1B 00 00 00 00 00 FF 0F 61 [01:44:03]RasterBufferAndPrint [01:44:03]line Счет N : (1)543280 [01:44:03]line ИНН: 02508201610067 [01:44:03]line Контрольно-Кассовый Чек [01:44:03]line ПРОДАЖА [01:44:03]line ТРК (МРК, ГНК) : 22 [01:44:03]line Товар: 2710124130 [01:44:03]line Аи-92-К-5 [01:44:03]line 1.800 * 66.90 [01:44:03]line = 120.42 [01:44:03]line НДС 12% НСП 1% [01:44:03]line > о реализуемом товаре [01:44:03]line ИТОГО: 120.42 [01:44:03]line НСП 1% : 1.07 [01:44:03]line НДС 12% : 12.79 [01:44:03]line Наличными: 0.00 [01:44:03]line Безнал.: 120.42 [01:44:03]line Место: АЗС № 117 "Партнер Нефть" [01:44:03]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [01:44:03]line СНО: Общий режим [01:44:03]line Чек 22 03.06.2024 01:44 [01:44:03]line Смена: 70 ФФД: 1.0 [01:44:03]line ЗНМ: 0300000048 [01:44:03]line РНМ: 0000000000151680 [01:44:03]line Версия ККМ: v1.0 [01:44:03]line Платежная система: O! деньги [01:44:03]line ФМ: 0000000000959414 [01:44:03]line ФД: 57938 [01:44:03]line ФПД: 145479392888160 [01:44:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T014403&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57938&fm=145479392888160&tin=02508201610067®Number=0000000000151680&sum=12042 [01:44:03]written 0, free lines is 4095 [01:44:03]OFD Sender: Processing packet 57938 [packets to send 50, broken 49] [01:44:03]ProducePacketName [01:44:03]name=ofd_packets/00057938 [01:44:03]OFD Sender: To server: pG, [01:44:03]CommunicateWithHost lk.salyk.kg:30040 [01:44:03]ConnectInit lk.salyk.kg [01:44:03]Connected sock=11 [01:44:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 A5 E6 07 01 1A F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0A 2F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0A 2F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E3 1F 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 52 E2 00 00 35 04 06 00 84 50 0F 89 05 60 80 54 D2 7E 43 BA 6B 54 [01:44:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 5D 00 47 00 5A 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 39 35 39 34 31 34 10 04 04 00 52 E2 00 00 F4 03 04 00 B2 CA 5C 66 B6 04 01 00 00 37 75 A3 51 3B 3C A1 16 [01:44:04]CommunicateWithHost err = 0 [01:44:04]CheckOFDResponse [01:44:04]1017 (14) - 77093643461234 [01:44:04]1041 (16) - 0000000000959414 [01:44:04]1040 (4) - 57938 [01:44:04]1012 (4) - 02.06.2024 19:40 [01:44:04]1206 (1) - 0 [01:44:04]OFD Sender: Remove packet 57938 [01:44:04]ProducePacketName [01:44:04]name=ofd_packets/00057938 [01:44:04]NVStorageDeleteData [01:44:04]Write to MH i2c: 01 00 00 5B 1B 76 [01:44:04]Write i2c OK [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: 01 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: 01 07 00 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: 01 07 00 5B 1B 00 00 00 00 00 B8 0C 41 [01:44:04]RasterBufferAndPrint [01:44:04]line [01:44:04]line [01:44:04]line [01:44:04]line [01:44:04]line [01:44:04]written 0, free lines is 3263 [01:44:04]MH_Cut [01:44:04]Write to MH i2c: D1 01 00 62 1B 01 4F [01:44:04]Write i2c OK [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: D1 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: D1 01 00 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: D1 01 00 62 1B 00 4E [01:44:04]Write to MH i2c: 01 00 00 63 1B 7E [01:44:04]Write i2c OK [01:44:04]MH_I2C_Read... [01:44:04]OFD Sender: No OFD packet to send [01:44:05]*** Cut start [01:44:05]*** Partial cut [01:44:05]*** CUTSNS_PIN = 1 [01:44:05]*** CUTSNS_PIN = 0 [01:44:05]*** Brake cut motor [01:44:05]Read from MH i2c: 01 [01:44:05]MH_I2C_Read... [01:44:05]*** Stop cut motor [01:44:05]*** Cut end [01:44:05]Read from MH i2c: 01 07 00 [01:44:05]MH_I2C_Read... [01:44:05]Read from MH i2c: 01 07 00 63 1B 00 00 00 00 00 FF 0F 93 [01:44:05]process_action close_receipt done [01:44:05]requested_data is exist [01:44:05]produce_requested_data [01:44:05]requested_item fm.sn is exist - process it [01:44:05]wFMCommunicate request_size=4 [01:44:05]MH_SAM_APDU [01:44:05]CAPDU: 80 11 00 00 [01:44:05]Write to MH i2c: E2 08 00 64 1B 80 11 00 00 00 00 00 00 F9 [01:44:05]Write i2c OK [01:44:05]MH_I2C_Read... [01:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:05]Read from MH i2c: E2 [01:44:05]MH_I2C_Read... [01:44:05]Read from MH i2c: E2 17 00 [01:44:05]MH_I2C_Read... [01:44:05]Read from MH i2c: E2 17 00 64 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 4C [01:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:44:05]wFMCommunicate OK [01:44:05]requested_item fd.num is exist - process it [01:44:05]SAM_PROTO_GetFieldsCounters [01:44:05]wFMCommunicate request_size=4 [01:44:05]MH_SAM_APDU [01:44:05]CAPDU: 80 13 00 00 [01:44:05]Write to MH i2c: E2 08 00 65 1B 80 13 00 00 00 00 00 00 FC [01:44:05]Write i2c OK [01:44:05]MH_I2C_Read... [01:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:44:06]Read from MH i2c: E2 [01:44:06]MH_I2C_Read... [01:44:06]Read from MH i2c: E2 62 00 [01:44:06]MH_I2C_Read... [01:44:06]Read from MH i2c: E2 62 00 65 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 52 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [01:44:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 52 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:44:06]wFMCommunicate OK [01:44:06]SAM_PROTO_GetFieldsCounters done [01:44:06]requested_item shift.num is exist - process it [01:44:06]requested_item shift.opened is exist - process it [01:44:06]req_shift_opened [01:44:06]FM_GetShiftState [01:44:06]SAM_PROTO_GetShiftState [01:44:06]wFMCommunicate request_size=4 [01:44:06]MH_SAM_APDU [01:44:06]CAPDU: 80 13 01 00 [01:44:06]Write to MH i2c: E2 08 00 66 1B 80 13 01 00 00 00 00 00 FE [01:44:06]Write i2c OK [01:44:06]MH_I2C_Read... [01:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:06]Read from MH i2c: E2 [01:44:06]MH_I2C_Read... [01:44:06]Read from MH i2c: E2 0E 00 [01:44:06]MH_I2C_Read... [01:44:06]Read from MH i2c: E2 0E 00 66 1B 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 BF [01:44:06]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:44:06]wFMCommunicate OK [01:44:06]SAM_PROTO_GetShiftState done [01:44:06]FM_GetShiftState done [01:44:06]req_shift_opened done [01:44:06]requested_item shift.open_date is exist - process it [01:44:06]req_shift_open_date [01:44:06]req_shift_open_date done [01:44:06]produce_requested_data done [01:44:06]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57938,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [01:44:06]process_action_free close_receipt [01:44:06]json_value_free [01:44:06]json_value_free done [01:44:06]process_json_proto returns [01:44:06]Send response to host [01:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57938,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [01:44:06]free response buf [01:44:06]execute_script done [01:44:06]execute_script returns [01:44:06]free content buf [01:44:06]Sock 9.Close socket [01:44:06]Sock 9.Thread stoped [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:15]accept exits with 8 [01:50:15]New connection [01:50:15]New thread 3066735972 created [01:50:15]Thread 3066592612 joined [01:50:15]Waiting for new connection... [01:50:15] Sock 8.Parse request [01:50:15]Sock 8.Check first char [01:50:15]Sock 8.First char is OK [01:50:15]request: POST /json_proto HTTP/1.0 [01:50:15]Method: POST [01:50:15]URL: /json_proto [01:50:15]Method is POST - this is cgi request [01:50:15]url: /json_proto [01:50:15]query_string will be loaded in cgi processing [01:50:15]execute_cgi json_proto POST (null) [01:50:15]execute_cgi path=json_proto method=POST [01:50:15]POST find Content-Length [01:50:15]Host: 172.17.60.68:8080 [01:50:15]Content-Length: 682 [01:50:15]Content-Type: application/json [01:50:15] [01:50:15]POST finish read [01:50:15]Found Content-Length = 682 [01:50:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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:50:15]execute_script... [01:50: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)543282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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:50:15]POST & json_proto [01:50:15]process_json_proto [01:50:15]json parsed OK: [01:50:15]protocol is kg_v1.0 [01:50:15]action value=close_receipt [01:50:15]process_action close_receipt [01:50:15]cmd_close_receipt [01:50:15]MH_GetDate [01:50:15]Write to MH i2c: F0 00 00 67 1B 71 [01:50:15]Write i2c OK [01:50:15]MH_I2C_Read... [01:50:15]Read from MH i2c: F0 [01:50:15]MH_I2C_Read... [01:50:15]Read from MH i2c: F0 09 00 [01:50:15]MH_I2C_Read... [01:50:15]Read from MH i2c: F0 09 00 67 1B 00 58 21 5D 66 8D A7 02 66 52 [01:50:15]GetLastDocTimeStamp 1717379043 [01:50:15]current date 1717379416 [01:50:15]FM_GetShiftState [01:50:15]SAM_PROTO_GetShiftState [01:50:15]wFMCommunicate request_size=4 [01:50:15]MH_SAM_APDU [01:50:15]CAPDU: 80 13 01 00 [01:50:15]Write to MH i2c: E2 08 00 68 1B 80 13 01 00 00 00 00 00 00 [01:50:15]Write i2c OK [01:50:15]MH_I2C_Read... [01:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:50:15]Read from MH i2c: E2 [01:50:15]MH_I2C_Read... [01:50:15]Read from MH i2c: E2 0E 00 [01:50:15]MH_I2C_Read... [01:50:15]Read from MH i2c: E2 0E 00 68 1B 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 C1 [01:50:15]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:50:15]wFMCommunicate OK [01:50:15]SAM_PROTO_GetShiftState done [01:50:15]FM_GetShiftState done [01:50:15]opened in 1717373417 [01:50:15]opened+sec_in_day 1717459817 [01:50:15]quantity*price = 100060 [01:50:15]sum+1 = 100062 [01:50:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 23 03.06.2024 01:50 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57939 ФПД: 36699030061688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T015016&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57939&fm=36699030061688&tin=02508201610067®Number=0000000000151680&sum=100000 [01:50:16]StoreToDocumentArchive [01:50:16]shift 70 fd 57939 [01:50:16]save to /storage/0070/doc_00057939 [01:50:16]save last doc name /storage/0070/doc_00057939 to /storage/kkm_last_doc_name [01:50:16]save OK [01:50:16]Clear old archive folders... [01:50:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:50:16]tlvbuf is B6F234F0 [01:50:16]SAM_PROTO_ClearQueue [01:50:16]wFMCommunicate request_size=4 [01:50:16]MH_SAM_APDU [01:50:16]CAPDU: 80 09 00 00 [01:50:16]Write to MH i2c: E2 08 00 75 1B 80 09 00 00 00 00 00 00 02 [01:50:16]Write i2c OK [01:50:16]MH_I2C_Read... [01:50:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:50:16]Read from MH i2c: E2 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 03 00 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 03 00 75 1B 00 90 00 04 [01:50:16]RAPDU: 90 00 [01:50:16]wFMCommunicate OK [01:50:16]SAM_PROTO_ClearQueue done [01:50:16]KKMCreateOFDPacket [01:50:16]OFDProtocolAddRootSTLVToBuf [01:50:16]FM_MakeSignedData [01:50:16]FM_MakeSignedData [01:50:16]SAM_PROTO_SignData [01:50:16]wFMCommunicate request_size=4 [01:50:16]MH_SAM_APDU [01:50:16]CAPDU: 80 0D 01 02 [01:50:16]Write to MH i2c: E2 08 00 76 1B 80 0D 01 02 00 00 00 00 0A [01:50:16]Write i2c OK [01:50:16]MH_I2C_Read... [01:50:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:50:16]Read from MH i2c: E2 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 03 00 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 03 00 76 1B 00 90 00 05 [01:50:16]RAPDU: 90 00 [01:50:16]wFMCommunicate OK [01:50:16]wFMCommunicate request_size=255 [01:50:16]MH_SAM_APDU [01:50: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 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 17 00 00 00 F4 03 04 00 58 21 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 53 E2 00 00 35 04 06 00 21 [01:50:16]Write to MH i2c: E2 02 01 77 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 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 17 00 00 00 F4 03 04 00 58 21 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 53 E2 00 00 35 04 06 00 21 00 00 EA [01:50:16]Write i2c OK [01:50:16]MH_I2C_Read... [01:50:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:16]Read from MH i2c: E2 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 03 00 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 03 00 77 1B 00 90 00 06 [01:50:16]RAPDU: 90 00 [01:50:16]wFMCommunicate OK [01:50:16]wFMCommunicate request_size=10 [01:50:16]MH_SAM_APDU [01:50:16]CAPDU: 80 0D 02 02 05 60 A8 A6 82 78 [01:50:16]Write to MH i2c: E2 0D 00 78 1B 80 0D 02 02 05 00 60 A8 A6 82 78 00 00 BF [01:50:16]Write i2c OK [01:50:16]MH_I2C_Read... [01:50:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:16]Read from MH i2c: E2 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 03 00 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 03 00 78 1B 00 90 00 07 [01:50:16]RAPDU: 90 00 [01:50:16]wFMCommunicate OK [01:50:16]wFMCommunicate request_size=4 [01:50:16]MH_SAM_APDU [01:50:16]CAPDU: 80 0D 03 02 [01:50:16]Write to MH i2c: E2 08 00 79 1B 80 0D 03 02 00 00 00 00 0F [01:50:16]Write i2c OK [01:50:16]MH_I2C_Read... [01:50:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:50:16]Read from MH i2c: E2 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 0B 00 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 0B 00 79 1B 00 79 0E 6A 24 E5 4D 7F C9 90 00 9F [01:50:16]RAPDU: 79 0E 6A 24 E5 4D 7F C9 90 00 [01:50:16]wFMCommunicate OK [01:50:16]SAM_PROTO_SignData done [01:50:16]FM_MakeSignedData done [01:50:16]CreateOFDProtocolMessage [01:50:16]wFMCommunicate request_size=4 [01:50:16]MH_SAM_APDU [01:50:16]CAPDU: 80 11 00 00 [01:50:16]Write to MH i2c: E2 08 00 7A 1B 80 11 00 00 00 00 00 00 0F [01:50:16]Write i2c OK [01:50:16]MH_I2C_Read... [01:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:50:16]Read from MH i2c: E2 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 17 00 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: E2 17 00 7A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 62 [01:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:50:16]wFMCommunicate OK [01:50:16]CreateOFDProtocolMessage done [01:50:16]OFDSenderStorePacket 57939 [01:50:16]StoreOFDPacket docnum=57939 [01:50:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 EE E5 07 01 65 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 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 17 00 00 00 F4 03 04 00 58 21 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 53 E2 00 00 35 04 06 00 21 60 A8 A6 82 78 79 0E 6A 24 E5 4D 7F C9 [01:50:16]CheckFolder [01:50:16]dirname=/storage/ofd_packets [01:50:16]CheckFolder done [01:50:16]ProducePacketName [01:50:16]name=ofd_packets/00057939 [01:50:16]NVStorageSaveData ofd_packets/00057939 [01:50:16]File name is /storage/ofd_packets/00057939 [01:50:16]Write 301 bytes [01:50:16]NVStorageSaveData done [01:50:16]OFDSenderStorePacket done [01:50:16]KKMCreateOFDPacket done [01:50:16]NVStorageSaveData kkm_last_timestamp [01:50:16]File name is /storage/kkm_last_timestamp [01:50:16]Write 4 bytes [01:50:16]NVStorageSaveData done [01:50:16]ExternCall_PrintAddStr [01:50:16]wPrintStart [01:50:16]Write to MH i2c: 01 00 00 7B 1B 96 [01:50:16]Write i2c OK [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: 01 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: 01 07 00 [01:50:16]MH_I2C_Read... [01:50:16]Read from MH i2c: 01 07 00 7B 1B 00 00 00 00 00 FF 0F AB [01:50:16]RasterBufferAndPrint [01:50:16]line Счет N : (1)543282 [01:50:16]line ИНН: 02508201610067 [01:50:16]line Контрольно-Кассовый Чек [01:50:16]line ПРОДАЖА [01:50:16]line ТРК (МРК, ГНК) : 13 [01:50:16]line Товар: 2710124500 [01:50:16]line Аи-95-К-5 [01:50:16]line 13.540 * 73.90 [01:50:16]line = 1000.61 [01:50:16]line НДС 12% НСП 1% [01:50:16]line > о реализуемом товаре [01:50:16]line ОКРУГЛЕНИЕ: -0.61 [01:50:16]line ИТОГО: 1000.00 [01:50:16]line Внесено: 1000.00 [01:50:16]line СДАЧА: 0.00 [01:50:16]line НСП 1% : 8.85 [01:50:16]line НДС 12% : 106.26 [01:50:16]line Наличными: 1000.00 [01:50:16]line Безнал.: 0.00 [01:50:16]line Место: АЗС № 117 "Партнер Нефть" [01:50:16]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [01:50:16]line СНО: Общий режим [01:50:16]line Чек 23 03.06.2024 01:50 [01:50:16]line Смена: 70 ФФД: 1.0 [01:50:16]line ЗНМ: 0300000048 [01:50:16]line РНМ: 0000000000151680 [01:50:16]line Версия ККМ: v1.0 [01:50:16]line ФМ: 0000000000959414 [01:50:16]line ФД: 57939 [01:50:16]line ФПД: 36699030061688 [01:50:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T015016&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57939&fm=36699030061688&tin=02508201610067®Number=0000000000151680&sum=100000 [01:50:17]OFD Sender: Processing packet 57939 [packets to send 50, broken 49] [01:50:17]ProducePacketName [01:50:17]name=ofd_packets/00057939 [01:50:17]OFD Sender: To server: pG, [01:50:17]CommunicateWithHost lk.salyk.kg:30040 [01:50:17]ConnectInit lk.salyk.kg [01:50:17]written 0, free lines is 4095 [01:50:17]Connected sock=11 [01:50:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 EE E5 07 01 65 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 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 17 00 00 00 F4 03 04 00 58 21 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 53 E2 00 00 35 04 06 00 21 60 A8 A6 82 78 79 0E 6A 24 E5 4D 7F C9 [01:50:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 2A BE 47 00 CB E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 53 E2 00 00 F4 03 04 00 28 CC 5C 66 B6 04 01 00 00 82 11 94 3D 7F 07 AB 21 [01:50:17]CommunicateWithHost err = 0 [01:50:17]CheckOFDResponse [01:50:17]1017 (14) - 77093643461234 [01:50:17]1041 (16) - 0000000000959414 [01:50:17]1040 (4) - 57939 [01:50:17]1012 (4) - 02.06.2024 19:46 [01:50:17]1206 (1) - 0 [01:50:17]OFD Sender: Remove packet 57939 [01:50:17]ProducePacketName [01:50:17]name=ofd_packets/00057939 [01:50:17]NVStorageDeleteData [01:50:17]Write to MH i2c: 01 00 00 A6 1B C1 [01:50:17]Write i2c OK [01:50:17]MH_I2C_Read... [01:50:17]Read from MH i2c: 01 [01:50:17]MH_I2C_Read... [01:50:17]Read from MH i2c: 01 07 00 [01:50:17]MH_I2C_Read... [01:50:17]Read from MH i2c: 01 07 00 A6 1B 00 00 00 00 00 A3 0C 77 [01:50:17]RasterBufferAndPrint [01:50:17]line [01:50:17]line [01:50:17]line [01:50:17]line [01:50:17]line [01:50:17]written 0, free lines is 3239 [01:50:17]MH_Cut [01:50:17]Write to MH i2c: D1 01 00 AD 1B 01 9A [01:50:17]Write i2c OK [01:50:17]MH_I2C_Read... [01:50:17]Read from MH i2c: D1 [01:50:17]MH_I2C_Read... [01:50:17]Read from MH i2c: D1 01 00 [01:50:17]MH_I2C_Read... [01:50:17]Read from MH i2c: D1 01 00 AD 1B 00 99 [01:50:17]Write to MH i2c: 01 00 00 AE 1B C9 [01:50:17]Write i2c OK [01:50:17]MH_I2C_Read... [01:50:18]OFD Sender: No OFD packet to send [01:50:18]*** Cut start [01:50:18]*** Partial cut [01:50:18]*** CUTSNS_PIN = 1 [01:50:18]*** CUTSNS_PIN = 0 [01:50:18]*** Brake cut motor [01:50:19]Read from MH i2c: 01 [01:50:19]MH_I2C_Read... [01:50:19]*** Stop cut motor [01:50:19]*** Cut end [01:50:19]Read from MH i2c: 01 07 00 [01:50:19]MH_I2C_Read... [01:50:19]Read from MH i2c: 01 07 00 AE 1B 00 00 00 00 00 FF 0F DE [01:50:19]process_action close_receipt done [01:50:19]requested_data is exist [01:50:19]produce_requested_data [01:50:19]requested_item fm.sn is exist - process it [01:50:19]wFMCommunicate request_size=4 [01:50:19]MH_SAM_APDU [01:50:19]CAPDU: 80 11 00 00 [01:50:19]Write to MH i2c: E2 08 00 AF 1B 80 11 00 00 00 00 00 00 44 [01:50:19]Write i2c OK [01:50:19]MH_I2C_Read... [01:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:50:19]Read from MH i2c: E2 [01:50:19]MH_I2C_Read... [01:50:19]Read from MH i2c: E2 17 00 [01:50:19]MH_I2C_Read... [01:50:19]Read from MH i2c: E2 17 00 AF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 97 [01:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:50:19]wFMCommunicate OK [01:50:19]requested_item fd.num is exist - process it [01:50:19]SAM_PROTO_GetFieldsCounters [01:50:19]wFMCommunicate request_size=4 [01:50:19]MH_SAM_APDU [01:50:19]CAPDU: 80 13 00 00 [01:50:19]Write to MH i2c: E2 08 00 B0 1B 80 13 00 00 00 00 00 00 47 [01:50:19]Write i2c OK [01:50:19]MH_I2C_Read... [01:50:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:50:19]Read from MH i2c: E2 [01:50:19]MH_I2C_Read... [01:50:19]Read from MH i2c: E2 62 00 [01:50:19]MH_I2C_Read... [01:50:19]Read from MH i2c: E2 62 00 B0 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 53 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [01:50:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 53 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:50:19]wFMCommunicate OK [01:50:19]SAM_PROTO_GetFieldsCounters done [01:50:19]requested_item shift.num is exist - process it [01:50:19]requested_item shift.opened is exist - process it [01:50:19]req_shift_opened [01:50:19]FM_GetShiftState [01:50:19]SAM_PROTO_GetShiftState [01:50:19]wFMCommunicate request_size=4 [01:50:19]MH_SAM_APDU [01:50:19]CAPDU: 80 13 01 00 [01:50:19]Write to MH i2c: E2 08 00 B1 1B 80 13 01 00 00 00 00 00 49 [01:50:19]Write i2c OK [01:50:19]MH_I2C_Read... [01:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:50:19]Read from MH i2c: E2 [01:50:19]MH_I2C_Read... [01:50:19]Read from MH i2c: E2 0E 00 [01:50:19]MH_I2C_Read... [01:50:19]Read from MH i2c: E2 0E 00 B1 1B 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 0A [01:50:19]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:50:19]wFMCommunicate OK [01:50:19]SAM_PROTO_GetShiftState done [01:50:19]FM_GetShiftState done [01:50:19]req_shift_opened done [01:50:19]requested_item shift.open_date is exist - process it [01:50:19]req_shift_open_date [01:50:19]req_shift_open_date done [01:50:19]produce_requested_data done [01:50:19]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57939,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [01:50:19]process_action_free close_receipt [01:50:19]json_value_free [01:50:19]json_value_free done [01:50:19]process_json_proto returns [01:50:19]Send response to host [01:50:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57939,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [01:50:19]free response buf [01:50:19]execute_script done [01:50:19]execute_script returns [01:50:19]free content buf [01:50:19]Sock 8.Close socket [01:50:19]Sock 8.Thread stoped [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:26]accept exits with 9 [01:51:26]New connection [01:51:26]New thread 3066592612 created [01:51:26]Thread 3066735972 joined [01:51:26]Waiting for new connection... [01:51:26] Sock 9.Parse request [01:51:26]Sock 9.Check first char [01:51:26]Sock 9.First char is OK [01:51:26]request: POST /json_proto HTTP/1.0 [01:51:26]Method: POST [01:51:26]URL: /json_proto [01:51:26]Method is POST - this is cgi request [01:51:26]url: /json_proto [01:51:26]query_string will be loaded in cgi processing [01:51:26]execute_cgi json_proto POST (null) [01:51:26]execute_cgi path=json_proto method=POST [01:51:26]POST find Content-Length [01:51:26]Host: 172.17.60.68:8080 [01:51:26]Content-Length: 680 [01:51:26]Content-Type: application/json [01:51:26] [01:51:26]POST finish read [01:51:26]Found Content-Length = 680 [01:51:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 8.600, "sum" : 300.14, "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:51:26]execute_script... [01:51:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 8.600, "sum" : 300.14, "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:51:26]POST & json_proto [01:51:26]process_json_proto [01:51:26]json parsed OK: [01:51:26]protocol is kg_v1.0 [01:51:26]action value=close_receipt [01:51:26]process_action close_receipt [01:51:26]cmd_close_receipt [01:51:26]MH_GetDate [01:51:26]Write to MH i2c: F0 00 00 B2 1B BC [01:51:26]Write i2c OK [01:51:26]MH_I2C_Read... [01:51:26]Read from MH i2c: F0 [01:51:26]MH_I2C_Read... [01:51:26]Read from MH i2c: F0 09 00 [01:51:26]MH_I2C_Read... [01:51:26]Read from MH i2c: F0 09 00 B2 1B 00 A0 21 5D 66 8D A7 02 66 E5 [01:51:26]GetLastDocTimeStamp 1717379416 [01:51:26]current date 1717379488 [01:51:26]FM_GetShiftState [01:51:26]SAM_PROTO_GetShiftState [01:51:26]wFMCommunicate request_size=4 [01:51:26]MH_SAM_APDU [01:51:26]CAPDU: 80 13 01 00 [01:51:26]Write to MH i2c: E2 08 00 B3 1B 80 13 01 00 00 00 00 00 4B [01:51:26]Write i2c OK [01:51:26]MH_I2C_Read... [01:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:26]Read from MH i2c: E2 [01:51:26]MH_I2C_Read... [01:51:26]Read from MH i2c: E2 0E 00 [01:51:26]MH_I2C_Read... [01:51:26]Read from MH i2c: E2 0E 00 B3 1B 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 0C [01:51:26]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:51:26]wFMCommunicate OK [01:51:26]SAM_PROTO_GetShiftState done [01:51:26]FM_GetShiftState done [01:51:26]opened in 1717373417 [01:51:26]opened+sec_in_day 1717459817 [01:51:26]quantity*price = 30014 [01:51:26]sum+1 = 30015 [01:51:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 24 03.06.2024 01:51 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57940 ФПД: 278204843790351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T015128&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57940&fm=278204843790351&tin=02508201610067®Number=0000000000151680&sum=30000 [01:51:27]StoreToDocumentArchive [01:51:27]shift 70 fd 57940 [01:51:27]save to /storage/0070/doc_00057940 [01:51:27]save last doc name /storage/0070/doc_00057940 to /storage/kkm_last_doc_name [01:51:27]save OK [01:51:27]Clear old archive folders... [01:51:27]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:51:27]tlvbuf is 01A1DF60 [01:51:27]SAM_PROTO_ClearQueue [01:51:27]wFMCommunicate request_size=4 [01:51:27]MH_SAM_APDU [01:51:27]CAPDU: 80 09 00 00 [01:51:27]Write to MH i2c: E2 08 00 C0 1B 80 09 00 00 00 00 00 00 4D [01:51:27]Write i2c OK [01:51:27]MH_I2C_Read... [01:51:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:51:27]Read from MH i2c: E2 [01:51:27]MH_I2C_Read... [01:51:27]Read from MH i2c: E2 03 00 [01:51:27]MH_I2C_Read... [01:51:27]Read from MH i2c: E2 03 00 C0 1B 00 90 00 4F [01:51:27]RAPDU: 90 00 [01:51:27]wFMCommunicate OK [01:51:27]SAM_PROTO_ClearQueue done [01:51:27]KKMCreateOFDPacket [01:51:27]OFDProtocolAddRootSTLVToBuf [01:51:27]FM_MakeSignedData [01:51:27]FM_MakeSignedData [01:51:27]SAM_PROTO_SignData [01:51:27]wFMCommunicate request_size=4 [01:51:27]MH_SAM_APDU [01:51:27]CAPDU: 80 0D 01 02 [01:51:27]Write to MH i2c: E2 08 00 C1 1B 80 0D 01 02 00 00 00 00 55 [01:51:27]Write i2c OK [01:51:27]MH_I2C_Read... [01:51:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:51:27]Read from MH i2c: E2 [01:51:27]MH_I2C_Read... [01:51:27]Read from MH i2c: E2 03 00 [01:51:27]MH_I2C_Read... [01:51:27]Read from MH i2c: E2 03 00 C1 1B 00 90 00 50 [01:51:27]RAPDU: 90 00 [01:51:27]wFMCommunicate OK [01:51:27]wFMCommunicate request_size=255 [01:51:27]MH_SAM_APDU [01:51:27]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 98 21 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 3E 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 18 00 00 00 F4 03 04 00 A0 21 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 54 E2 00 00 35 04 06 00 FD 06 [01:51:27]Write to MH i2c: E2 02 01 C2 1B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 98 21 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 3E 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 18 00 00 00 F4 03 04 00 A0 21 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 54 E2 00 00 35 04 06 00 FD 06 00 00 0C [01:51:27]Write i2c OK [01:51:27]MH_I2C_Read... [01:51:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:28]Read from MH i2c: E2 [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: E2 03 00 [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: E2 03 00 C2 1B 00 90 00 51 [01:51:28]RAPDU: 90 00 [01:51:28]wFMCommunicate OK [01:51:28]wFMCommunicate request_size=9 [01:51:28]MH_SAM_APDU [01:51:28]CAPDU: 80 0D 02 02 04 9C E3 90 0F [01:51:28]Write to MH i2c: E2 0C 00 C3 1B 80 0D 02 02 04 00 9C E3 90 0F 00 00 7E [01:51:28]Write i2c OK [01:51:28]MH_I2C_Read... [01:51:28]OFD Sender: No OFD packet to send [01:51:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:28]Read from MH i2c: E2 [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: E2 03 00 [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: E2 03 00 C3 1B 00 90 00 52 [01:51:28]RAPDU: 90 00 [01:51:28]wFMCommunicate OK [01:51:28]wFMCommunicate request_size=4 [01:51:28]MH_SAM_APDU [01:51:28]CAPDU: 80 0D 03 02 [01:51:28]Write to MH i2c: E2 08 00 C4 1B 80 0D 03 02 00 00 00 00 5A [01:51:28]Write i2c OK [01:51:28]MH_I2C_Read... [01:51:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:51:28]Read from MH i2c: E2 [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: E2 0B 00 [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: E2 0B 00 C4 1B 00 D1 39 0D 1D 40 E4 3C 60 90 00 4F [01:51:28]RAPDU: D1 39 0D 1D 40 E4 3C 60 90 00 [01:51:28]wFMCommunicate OK [01:51:28]SAM_PROTO_SignData done [01:51:28]FM_MakeSignedData done [01:51:28]CreateOFDProtocolMessage [01:51:28]wFMCommunicate request_size=4 [01:51:28]MH_SAM_APDU [01:51:28]CAPDU: 80 11 00 00 [01:51:28]Write to MH i2c: E2 08 00 C5 1B 80 11 00 00 00 00 00 00 5A [01:51:28]Write i2c OK [01:51:28]MH_I2C_Read... [01:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:28]Read from MH i2c: E2 [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: E2 17 00 [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: E2 17 00 C5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 AD [01:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:51:28]wFMCommunicate OK [01:51:28]CreateOFDProtocolMessage done [01:51:28]OFDSenderStorePacket 57940 [01:51:28]StoreOFDPacket docnum=57940 [01:51:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 54 16 06 01 C1 A5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 98 21 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 3E 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 18 00 00 00 F4 03 04 00 A0 21 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 54 E2 00 00 35 04 06 00 FD 06 9C E3 90 0F D1 39 0D 1D 40 E4 3C 60 [01:51:28]CheckFolder [01:51:28]dirname=/storage/ofd_packets [01:51:28]CheckFolder done [01:51:28]ProducePacketName [01:51:28]name=ofd_packets/00057940 [01:51:28]NVStorageSaveData ofd_packets/00057940 [01:51:28]File name is /storage/ofd_packets/00057940 [01:51:28]Write 300 bytes [01:51:28]NVStorageSaveData done [01:51:28]OFDSenderStorePacket done [01:51:28]KKMCreateOFDPacket done [01:51:28]NVStorageSaveData kkm_last_timestamp [01:51:28]File name is /storage/kkm_last_timestamp [01:51:28]Write 4 bytes [01:51:28]NVStorageSaveData done [01:51:28]ExternCall_PrintAddStr [01:51:28]wPrintStart [01:51:28]Write to MH i2c: 01 00 00 C6 1B E1 [01:51:28]Write i2c OK [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: 01 [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: 01 07 00 [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: 01 07 00 C6 1B 00 00 00 00 00 FF 0F F6 [01:51:28]RasterBufferAndPrint [01:51:28]line Счет N : (1)543283 [01:51:28]line ИНН: 02508201610067 [01:51:28]line Контрольно-Кассовый Чек [01:51:28]line ПРОДАЖА [01:51:28]line ТРК (МРК, ГНК) : 72 [01:51:28]line Товар: 2711190000 [01:51:28]line ГАЗ-К-5 [01:51:28]line 8.600 * 34.90 [01:51:28]line = 300.14 [01:51:28]line НДС 12% НСП 1% [01:51:28]line > о реализуемом товаре [01:51:28]line ОКРУГЛЕНИЕ: -0.14 [01:51:28]line ИТОГО: 300.00 [01:51:28]line Внесено: 300.00 [01:51:28]line СДАЧА: 0.00 [01:51:28]line НСП 1% : 2.66 [01:51:28]line НДС 12% : 31.87 [01:51:28]line Наличными: 300.00 [01:51:28]line Безнал.: 0.00 [01:51:28]line Место: АЗС № 117 "Партнер Нефть" [01:51:28]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [01:51:28]line СНО: Общий режим [01:51:28]line Чек 24 03.06.2024 01:51 [01:51:28]line Смена: 70 ФФД: 1.0 [01:51:28]line ЗНМ: 0300000048 [01:51:28]line РНМ: 0000000000151680 [01:51:28]line Версия ККМ: v1.0 [01:51:28]line ФМ: 0000000000959414 [01:51:28]line ФД: 57940 [01:51:28]line ФПД: 278204843790351 [01:51:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T015128&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57940&fm=278204843790351&tin=02508201610067®Number=0000000000151680&sum=30000 [01:51:28]OFD Sender: Processing packet 57940 [packets to send 50, broken 49] [01:51:28]ProducePacketName [01:51:28]name=ofd_packets/00057940 [01:51:28]OFD Sender: To server: pG, [01:51:28]CommunicateWithHost lk.salyk.kg:30040 [01:51:28]ConnectInit lk.salyk.kg [01:51:28]written 0, free lines is 4095 [01:51:28]Connected sock=10 [01:51:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 54 16 06 01 C1 A5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 98 21 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 3E 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 18 00 00 00 F4 03 04 00 A0 21 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 54 E2 00 00 35 04 06 00 FD 06 9C E3 90 0F D1 39 0D 1D 40 E4 3C 60 [01:51:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 7B 98 47 00 C8 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 54 E2 00 00 F4 03 04 00 6F CC 5C 66 B6 04 01 00 00 6C 9B 04 4D 95 A8 CD 5F [01:51:28]CommunicateWithHost err = 0 [01:51:28]CheckOFDResponse [01:51:28]1017 (14) - 77093643461234 [01:51:28]1041 (16) - 0000000000959414 [01:51:28]1040 (4) - 57940 [01:51:28]1012 (4) - 02.06.2024 19:47 [01:51:28]1206 (1) - 0 [01:51:28]OFD Sender: Remove packet 57940 [01:51:28]ProducePacketName [01:51:28]name=ofd_packets/00057940 [01:51:28]NVStorageDeleteData [01:51:29]Write to MH i2c: 01 00 00 F1 1B 0C [01:51:29]Write i2c OK [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: 01 [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: 01 07 00 [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: 01 07 00 F1 1B 00 00 00 00 00 AA 0C C9 [01:51:29]RasterBufferAndPrint [01:51:29]line [01:51:29]line [01:51:29]line [01:51:29]line [01:51:29]line [01:51:29]written 0, free lines is 3248 [01:51:29]MH_Cut [01:51:29]Write to MH i2c: D1 01 00 F8 1B 01 E5 [01:51:29]Write i2c OK [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: D1 [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: D1 01 00 [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: D1 01 00 F8 1B 00 E4 [01:51:29]Write to MH i2c: 01 00 00 F9 1B 14 [01:51:29]Write i2c OK [01:51:29]MH_I2C_Read... [01:51:29]OFD Sender: No OFD packet to send [01:51:30]*** Cut start [01:51:30]*** Partial cut [01:51:30]*** CUTSNS_PIN = 1 [01:51:30]*** CUTSNS_PIN = 0 [01:51:30]*** Brake cut motor [01:51:30]Read from MH i2c: 01 [01:51:30]MH_I2C_Read... [01:51:30]*** Stop cut motor [01:51:30]*** Cut end [01:51:30]Read from MH i2c: 01 07 00 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: 01 07 00 F9 1B 00 00 00 00 00 FF 0F 29 [01:51:30]process_action close_receipt done [01:51:30]requested_data is exist [01:51:30]produce_requested_data [01:51:30]requested_item fm.sn is exist - process it [01:51:30]wFMCommunicate request_size=4 [01:51:30]MH_SAM_APDU [01:51:30]CAPDU: 80 11 00 00 [01:51:30]Write to MH i2c: E2 08 00 FA 1B 80 11 00 00 00 00 00 00 8F [01:51:30]Write i2c OK [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: E2 [01:51:30]MH_I2C_Read... [01:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:30]Read from MH i2c: E2 17 00 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: E2 17 00 FA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 E2 [01:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:51:30]wFMCommunicate OK [01:51:30]requested_item fd.num is exist - process it [01:51:30]SAM_PROTO_GetFieldsCounters [01:51:30]wFMCommunicate request_size=4 [01:51:30]MH_SAM_APDU [01:51:30]CAPDU: 80 13 00 00 [01:51:30]Write to MH i2c: E2 08 00 FB 1B 80 13 00 00 00 00 00 00 92 [01:51:30]Write i2c OK [01:51:30]MH_I2C_Read... [01:51:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:51:30]Read from MH i2c: E2 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: E2 62 00 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: E2 62 00 FB 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 54 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [01:51:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 54 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:51:30]wFMCommunicate OK [01:51:30]SAM_PROTO_GetFieldsCounters done [01:51:30]requested_item shift.num is exist - process it [01:51:30]requested_item shift.opened is exist - process it [01:51:30]req_shift_opened [01:51:30]FM_GetShiftState [01:51:30]SAM_PROTO_GetShiftState [01:51:30]wFMCommunicate request_size=4 [01:51:30]MH_SAM_APDU [01:51:30]CAPDU: 80 13 01 00 [01:51:30]Write to MH i2c: E2 08 00 FC 1B 80 13 01 00 00 00 00 00 94 [01:51:30]Write i2c OK [01:51:30]MH_I2C_Read... [01:51:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:30]Read from MH i2c: E2 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: E2 0E 00 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: E2 0E 00 FC 1B 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 55 [01:51:30]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:51:30]wFMCommunicate OK [01:51:30]SAM_PROTO_GetShiftState done [01:51:30]FM_GetShiftState done [01:51:30]req_shift_opened done [01:51:30]requested_item shift.open_date is exist - process it [01:51:30]req_shift_open_date [01:51:30]req_shift_open_date done [01:51:30]produce_requested_data done [01:51:30]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57940,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [01:51:30]process_action_free close_receipt [01:51:30]json_value_free [01:51:30]json_value_free done [01:51:30]process_json_proto returns [01:51:30]Send response to host [01:51:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57940,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [01:51:30]free response buf [01:51:30]execute_script done [01:51:30]execute_script returns [01:51:30]free content buf [01:51:30]Sock 9.Close socket [01:51:30]Sock 9.Thread stoped [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:02]accept exits with 8 [01:53:02]New connection [01:53:02]New thread 3066735972 created [01:53:02]Thread 3066592612 joined [01:53:02]Waiting for new connection... [01:53:02] Sock 8.Parse request [01:53:02]Sock 8.Check first char [01:53:02]Sock 8.First char is OK [01:53:02]request: POST /json_proto HTTP/1.0 [01:53:02]Method: POST [01:53:02]URL: /json_proto [01:53:02]Method is POST - this is cgi request [01:53:02]url: /json_proto [01:53:02]query_string will be loaded in cgi processing [01:53:02]execute_cgi json_proto POST (null) [01:53:02]execute_cgi path=json_proto method=POST [01:53:02]POST find Content-Length [01:53:02]Host: 172.17.60.68:8080 [01:53:02]Content-Length: 803 [01:53:02]Content-Type: application/json [01:53:02] [01:53:02]POST finish read [01:53:02]Found Content-Length = 803 [01:53:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543281", "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" : 74.740, "sum" : 5000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:53:02]execute_script... [01:53:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543281", "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" : 74.740, "sum" : 5000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:53:02]POST & json_proto [01:53:02]process_json_proto [01:53:02]json parsed OK: [01:53:02]protocol is kg_v1.0 [01:53:02]action value=close_receipt [01:53:02]process_action close_receipt [01:53:02]cmd_close_receipt [01:53:02]MH_GetDate [01:53:02]Write to MH i2c: F0 00 00 FD 1B 07 [01:53:02]Write i2c OK [01:53:02]MH_I2C_Read... [01:53:02]Read from MH i2c: F0 [01:53:02]MH_I2C_Read... [01:53:02]Read from MH i2c: F0 09 00 [01:53:02]MH_I2C_Read... [01:53:02]Read from MH i2c: F0 09 00 FD 1B 00 FF 21 5D 66 8D A7 02 66 8F [01:53:02]GetLastDocTimeStamp 1717379488 [01:53:02]current date 1717379583 [01:53:02]FM_GetShiftState [01:53:02]SAM_PROTO_GetShiftState [01:53:02]wFMCommunicate request_size=4 [01:53:02]MH_SAM_APDU [01:53:02]CAPDU: 80 13 01 00 [01:53:02]Write to MH i2c: E2 08 00 FE 1B 80 13 01 00 00 00 00 00 96 [01:53:02]Write i2c OK [01:53:02]MH_I2C_Read... [01:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:02]Read from MH i2c: E2 [01:53:02]MH_I2C_Read... [01:53:02]Read from MH i2c: E2 0E 00 [01:53:02]MH_I2C_Read... [01:53:02]Read from MH i2c: E2 0E 00 FE 1B 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 57 [01:53:02]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:53:02]wFMCommunicate OK [01:53:02]SAM_PROTO_GetShiftState done [01:53:02]FM_GetShiftState done [01:53:02]opened in 1717373417 [01:53:02]opened+sec_in_day 1717459817 [01:53:02]quantity*price = 500010 [01:53:02]sum+1 = 500012 [01:53:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.11 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 0.00 Безнал.: 5000.11 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 25 03.06.2024 01:53 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57941 ФПД: 33921612789979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T015303&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57941&fm=33921612789979&tin=02508201610067®Number=0000000000151680&sum=500011 [01:53:03]StoreToDocumentArchive [01:53:03]shift 70 fd 57941 [01:53:03]save to /storage/0070/doc_00057941 [01:53:03]save last doc name /storage/0070/doc_00057941 to /storage/kkm_last_doc_name [01:53:03]save OK [01:53:03]Clear old archive folders... [01:53:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:53:03]tlvbuf is B6D73070 [01:53:03]SAM_PROTO_ClearQueue [01:53:03]wFMCommunicate request_size=4 [01:53:03]MH_SAM_APDU [01:53:03]CAPDU: 80 09 00 00 [01:53:03]Write to MH i2c: E2 08 00 0B 1C 80 09 00 00 00 00 00 00 99 [01:53:03]Write i2c OK [01:53:03]MH_I2C_Read... [01:53:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:53:03]Read from MH i2c: E2 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: E2 03 00 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: E2 03 00 0B 1C 00 90 00 9B [01:53:03]RAPDU: 90 00 [01:53:03]wFMCommunicate OK [01:53:03]SAM_PROTO_ClearQueue done [01:53:03]KKMCreateOFDPacket [01:53:03]OFDProtocolAddRootSTLVToBuf [01:53:03]FM_MakeSignedData [01:53:03]FM_MakeSignedData [01:53:03]SAM_PROTO_SignData [01:53:03]wFMCommunicate request_size=4 [01:53:03]MH_SAM_APDU [01:53:03]CAPDU: 80 0D 01 02 [01:53:03]Write to MH i2c: E2 08 00 0C 1C 80 0D 01 02 00 00 00 00 A1 [01:53:03]Write i2c OK [01:53:03]MH_I2C_Read... [01:53:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:53:03]Read from MH i2c: E2 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: E2 03 00 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: E2 03 00 0C 1C 00 90 00 9C [01:53:03]RAPDU: 90 00 [01:53:03]wFMCommunicate OK [01:53:03]wFMCommunicate request_size=255 [01:53:03]MH_SAM_APDU [01:53:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 23 01 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2B A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FF 21 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 55 E2 00 00 35 04 06 00 1E [01:53:03]Write to MH i2c: E2 02 01 0D 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 23 01 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2B A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FF 21 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 55 E2 00 00 35 04 06 00 1E 00 00 9E [01:53:03]Write i2c OK [01:53:03]MH_I2C_Read... [01:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:03]Read from MH i2c: E2 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: E2 03 00 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: E2 03 00 0D 1C 00 90 00 9D [01:53:03]RAPDU: 90 00 [01:53:03]wFMCommunicate OK [01:53:03]wFMCommunicate request_size=10 [01:53:03]MH_SAM_APDU [01:53:03]CAPDU: 80 0D 02 02 05 D9 FD AE 38 DB [01:53:03]Write to MH i2c: E2 0D 00 0E 1C 80 0D 02 02 05 00 D9 FD AE 38 DB 00 00 45 [01:53:03]Write i2c OK [01:53:03]MH_I2C_Read... [01:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:03]Read from MH i2c: E2 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: E2 03 00 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: E2 03 00 0E 1C 00 90 00 9E [01:53:03]RAPDU: 90 00 [01:53:03]wFMCommunicate OK [01:53:03]wFMCommunicate request_size=4 [01:53:03]MH_SAM_APDU [01:53:03]CAPDU: 80 0D 03 02 [01:53:03]Write to MH i2c: E2 08 00 0F 1C 80 0D 03 02 00 00 00 00 A6 [01:53:03]Write i2c OK [01:53:03]MH_I2C_Read... [01:53:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:53:03]Read from MH i2c: E2 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: E2 0B 00 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: E2 0B 00 0F 1C 00 E7 88 3E 73 AE 97 A4 4C 90 00 FC [01:53:03]RAPDU: E7 88 3E 73 AE 97 A4 4C 90 00 [01:53:03]wFMCommunicate OK [01:53:03]SAM_PROTO_SignData done [01:53:03]FM_MakeSignedData done [01:53:03]CreateOFDProtocolMessage [01:53:03]wFMCommunicate request_size=4 [01:53:03]MH_SAM_APDU [01:53:03]CAPDU: 80 11 00 00 [01:53:03]Write to MH i2c: E2 08 00 10 1C 80 11 00 00 00 00 00 00 A6 [01:53:03]Write i2c OK [01:53:03]MH_I2C_Read... [01:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:03]Read from MH i2c: E2 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: E2 17 00 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: E2 17 00 10 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 F9 [01:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:53:03]wFMCommunicate OK [01:53:03]CreateOFDProtocolMessage done [01:53:03]OFDSenderStorePacket 57941 [01:53:03]StoreOFDPacket docnum=57941 [01:53:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 58 7E 07 01 B3 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F4 23 01 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2B A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FF 21 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 55 E2 00 00 35 04 06 00 1E D9 FD AE 38 DB E7 88 3E 73 AE 97 A4 4C [01:53:03]CheckFolder [01:53:03]dirname=/storage/ofd_packets [01:53:03]CheckFolder done [01:53:03]ProducePacketName [01:53:03]name=ofd_packets/00057941 [01:53:03]NVStorageSaveData ofd_packets/00057941 [01:53:03]File name is /storage/ofd_packets/00057941 [01:53:03]Write 301 bytes [01:53:03]NVStorageSaveData done [01:53:03]OFDSenderStorePacket done [01:53:03]KKMCreateOFDPacket done [01:53:03]NVStorageSaveData kkm_last_timestamp [01:53:03]File name is /storage/kkm_last_timestamp [01:53:03]Write 4 bytes [01:53:03]NVStorageSaveData done [01:53:03]ExternCall_PrintAddStr [01:53:03]wPrintStart [01:53:03]Write to MH i2c: 01 00 00 11 1C 2D [01:53:03]Write i2c OK [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: 01 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: 01 07 00 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: 01 07 00 11 1C 00 00 00 00 00 FF 0F 42 [01:53:03]RasterBufferAndPrint [01:53:03]line Счет N : (1)543281 [01:53:03]line ИНН: 02508201610067 [01:53:03]line Контрольно-Кассовый Чек [01:53:03]line ПРОДАЖА [01:53:03]line ТРК (МРК, ГНК) : 22 [01:53:03]line Товар: 2710124130 [01:53:03]line Аи-92-К-5 [01:53:03]line 74.740 * 66.90 [01:53:03]line = 5000.11 [01:53:03]line НДС 12% НСП 1% [01:53:03]line > о реализуемом товаре [01:53:03]line ИТОГО: 5000.11 [01:53:03]line НСП 1% : 44.25 [01:53:03]line НДС 12% : 530.98 [01:53:03]line Наличными: 0.00 [01:53:03]line Безнал.: 5000.11 [01:53:03]line Место: АЗС № 117 "Партнер Нефть" [01:53:03]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [01:53:03]line СНО: Общий режим [01:53:03]line Чек 25 03.06.2024 01:53 [01:53:03]line Смена: 70 ФФД: 1.0 [01:53:03]line ЗНМ: 0300000048 [01:53:03]line РНМ: 0000000000151680 [01:53:03]line Версия ККМ: v1.0 [01:53:03]line Платежная система: O! деньги [01:53:03]line ФМ: 0000000000959414 [01:53:03]line ФД: 57941 [01:53:03]line ФПД: 33921612789979 [01:53:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T015303&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57941&fm=33921612789979&tin=02508201610067®Number=0000000000151680&sum=500011 [01:53:04]OFD Sender: Processing packet 57941 [packets to send 50, broken 49] [01:53:04]ProducePacketName [01:53:04]name=ofd_packets/00057941 [01:53:04]OFD Sender: To server: pG, [01:53:04]CommunicateWithHost lk.salyk.kg:30040 [01:53:04]ConnectInit lk.salyk.kg [01:53:04]written 0, free lines is 4095 [01:53:04]Connected sock=10 [01:53:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 58 7E 07 01 B3 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F4 23 01 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2B A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FF 21 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 55 E2 00 00 35 04 06 00 1E D9 FD AE 38 DB E7 88 3E 73 AE 97 A4 4C [01:53:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 9E FA 47 00 AA 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 39 35 39 34 31 34 10 04 04 00 55 E2 00 00 F4 03 04 00 CE CC 5C 66 B6 04 01 00 00 7A 46 19 C2 08 FF 8C 0B [01:53:04]CommunicateWithHost err = 0 [01:53:04]CheckOFDResponse [01:53:04]1017 (14) - 77093643461234 [01:53:04]1041 (16) - 0000000000959414 [01:53:04]1040 (4) - 57941 [01:53:04]1012 (4) - 02.06.2024 19:49 [01:53:04]1206 (1) - 0 [01:53:04]OFD Sender: Remove packet 57941 [01:53:04]ProducePacketName [01:53:04]name=ofd_packets/00057941 [01:53:04]NVStorageDeleteData [01:53:04]Write to MH i2c: 01 00 00 3B 1C 57 [01:53:04]Write i2c OK [01:53:04]MH_I2C_Read... [01:53:04]Read from MH i2c: 01 [01:53:04]MH_I2C_Read... [01:53:04]Read from MH i2c: 01 07 00 [01:53:04]MH_I2C_Read... [01:53:04]Read from MH i2c: 01 07 00 3B 1C 00 00 00 00 00 C8 0C 32 [01:53:04]RasterBufferAndPrint [01:53:04]line [01:53:04]line [01:53:04]line [01:53:04]line [01:53:04]line [01:53:04]written 0, free lines is 3277 [01:53:04]MH_Cut [01:53:04]Write to MH i2c: D1 01 00 42 1C 01 30 [01:53:04]Write i2c OK [01:53:04]MH_I2C_Read... [01:53:04]Read from MH i2c: D1 [01:53:04]MH_I2C_Read... [01:53:04]Read from MH i2c: D1 01 00 [01:53:04]MH_I2C_Read... [01:53:04]Read from MH i2c: D1 01 00 42 1C 00 2F [01:53:04]Write to MH i2c: 01 00 00 43 1C 5F [01:53:04]Write i2c OK [01:53:04]MH_I2C_Read... [01:53:04]OFD Sender: No OFD packet to send [01:53:05]*** Cut start [01:53:05]*** Partial cut [01:53:05]*** CUTSNS_PIN = 1 [01:53:05]*** CUTSNS_PIN = 0 [01:53:05]*** Brake cut motor [01:53:06]Read from MH i2c: 01 [01:53:06]MH_I2C_Read... [01:53:06]*** Stop cut motor [01:53:06]*** Cut end [01:53:06]Read from MH i2c: 01 07 00 [01:53:06]MH_I2C_Read... [01:53:06]Read from MH i2c: 01 07 00 43 1C 00 00 00 00 00 FF 0F 74 [01:53:06]process_action close_receipt done [01:53:06]requested_data is exist [01:53:06]produce_requested_data [01:53:06]requested_item fm.sn is exist - process it [01:53:06]wFMCommunicate request_size=4 [01:53:06]MH_SAM_APDU [01:53:06]CAPDU: 80 11 00 00 [01:53:06]Write to MH i2c: E2 08 00 44 1C 80 11 00 00 00 00 00 00 DA [01:53:06]Write i2c OK [01:53:06]MH_I2C_Read... [01:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:06]Read from MH i2c: E2 [01:53:06]MH_I2C_Read... [01:53:06]Read from MH i2c: E2 17 00 [01:53:06]MH_I2C_Read... [01:53:06]Read from MH i2c: E2 17 00 44 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 2D [01:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [01:53:06]wFMCommunicate OK [01:53:06]requested_item fd.num is exist - process it [01:53:06]SAM_PROTO_GetFieldsCounters [01:53:06]wFMCommunicate request_size=4 [01:53:06]MH_SAM_APDU [01:53:06]CAPDU: 80 13 00 00 [01:53:06]Write to MH i2c: E2 08 00 45 1C 80 13 00 00 00 00 00 00 DD [01:53:06]Write i2c OK [01:53:06]MH_I2C_Read... [01:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:53:06]Read from MH i2c: E2 [01:53:06]MH_I2C_Read... [01:53:06]Read from MH i2c: E2 62 00 [01:53:06]MH_I2C_Read... [01:53:06]Read from MH i2c: E2 62 00 45 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 55 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [01:53:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 55 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:53:06]wFMCommunicate OK [01:53:06]SAM_PROTO_GetFieldsCounters done [01:53:06]requested_item shift.num is exist - process it [01:53:06]requested_item shift.opened is exist - process it [01:53:06]req_shift_opened [01:53:06]FM_GetShiftState [01:53:06]SAM_PROTO_GetShiftState [01:53:06]wFMCommunicate request_size=4 [01:53:06]MH_SAM_APDU [01:53:06]CAPDU: 80 13 01 00 [01:53:06]Write to MH i2c: E2 08 00 46 1C 80 13 01 00 00 00 00 00 DF [01:53:06]Write i2c OK [01:53:06]MH_I2C_Read... [01:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:06]Read from MH i2c: E2 [01:53:06]MH_I2C_Read... [01:53:06]Read from MH i2c: E2 0E 00 [01:53:06]MH_I2C_Read... [01:53:06]Read from MH i2c: E2 0E 00 46 1C 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 A0 [01:53:06]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [01:53:06]wFMCommunicate OK [01:53:06]SAM_PROTO_GetShiftState done [01:53:06]FM_GetShiftState done [01:53:06]req_shift_opened done [01:53:06]requested_item shift.open_date is exist - process it [01:53:06]req_shift_open_date [01:53:06]req_shift_open_date done [01:53:06]produce_requested_data done [01:53:06]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57941,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [01:53:06]process_action_free close_receipt [01:53:06]json_value_free [01:53:06]json_value_free done [01:53:06]process_json_proto returns [01:53:06]Send response to host [01:53:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57941,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [01:53:06]free response buf [01:53:06]execute_script done [01:53:06]execute_script returns [01:53:06]free content buf [01:53:06]Sock 8.Close socket [01:53:06]Sock 8.Thread stoped [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:29]accept exits with 9 [02:00:29]New connection [02:00:29]New thread 3066592612 created [02:00:29]Thread 3066735972 joined [02:00:29]Waiting for new connection... [02:00:29] Sock 9.Parse request [02:00:29]Sock 9.Check first char [02:00:29]Sock 9.First char is OK [02:00:29]request: POST /json_proto HTTP/1.0 [02:00:29]Method: POST [02:00:29]URL: /json_proto [02:00:29]Method is POST - this is cgi request [02:00:29]url: /json_proto [02:00:29]query_string will be loaded in cgi processing [02:00:29]execute_cgi json_proto POST (null) [02:00:29]execute_cgi path=json_proto method=POST [02:00:29]POST find Content-Length [02:00:29]Host: 172.17.60.68:8080 [02:00:29]Content-Length: 800 [02:00:29]Content-Type: application/json [02:00:29] [02:00:29]POST finish read [02:00:29]Found Content-Length = 800 [02:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543284", "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.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:00:29]execute_script... [02:00:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543284", "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.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:00:29]POST & json_proto [02:00:29]process_json_proto [02:00:29]json parsed OK: [02:00:29]protocol is kg_v1.0 [02:00:29]action value=close_receipt [02:00:29]process_action close_receipt [02:00:29]cmd_close_receipt [02:00:29]MH_GetDate [02:00:29]Write to MH i2c: F0 00 00 47 1C 52 [02:00:29]Write i2c OK [02:00:29]MH_I2C_Read... [02:00:29]Read from MH i2c: F0 [02:00:29]MH_I2C_Read... [02:00:29]Read from MH i2c: F0 09 00 [02:00:29]MH_I2C_Read... [02:00:29]Read from MH i2c: F0 09 00 47 1C 00 BF 23 5D 66 8D A7 02 66 9C [02:00:29]GetLastDocTimeStamp 1717379583 [02:00:29]current date 1717380031 [02:00:29]FM_GetShiftState [02:00:29]SAM_PROTO_GetShiftState [02:00:29]wFMCommunicate request_size=4 [02:00:29]MH_SAM_APDU [02:00:29]CAPDU: 80 13 01 00 [02:00:29]Write to MH i2c: E2 08 00 48 1C 80 13 01 00 00 00 00 00 E1 [02:00:29]Write i2c OK [02:00:29]MH_I2C_Read... [02:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:00:29]Read from MH i2c: E2 [02:00:29]MH_I2C_Read... [02:00:29]Read from MH i2c: E2 0E 00 [02:00:29]MH_I2C_Read... [02:00:29]Read from MH i2c: E2 0E 00 48 1C 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 A2 [02:00:29]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:00:29]wFMCommunicate OK [02:00:29]SAM_PROTO_GetShiftState done [02:00:29]FM_GetShiftState done [02:00:29]opened in 1717373417 [02:00:29]opened+sec_in_day 1717459817 [02:00:29]quantity*price = 30038 [02:00:29]sum+1 = 30039 [02:00:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 26 03.06.2024 02:00 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57942 ФПД: 207286449916741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T020031&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57942&fm=207286449916741&tin=02508201610067®Number=0000000000151680&sum=30038 [02:00:31]StoreToDocumentArchive [02:00:31]shift 70 fd 57942 [02:00:31]save to /storage/0070/doc_00057942 [02:00:31]save last doc name /storage/0070/doc_00057942 to /storage/kkm_last_doc_name [02:00:31]save OK [02:00:31]Clear old archive folders... [02:00:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:00:31]tlvbuf is 019F2520 [02:00:31]SAM_PROTO_ClearQueue [02:00:31]wFMCommunicate request_size=4 [02:00:31]MH_SAM_APDU [02:00:31]CAPDU: 80 09 00 00 [02:00:31]Write to MH i2c: E2 08 00 55 1C 80 09 00 00 00 00 00 00 E3 [02:00:31]Write i2c OK [02:00:31]MH_I2C_Read... [02:00:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:00:31]Read from MH i2c: E2 [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: E2 03 00 [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: E2 03 00 55 1C 00 90 00 E5 [02:00:31]RAPDU: 90 00 [02:00:31]wFMCommunicate OK [02:00:31]SAM_PROTO_ClearQueue done [02:00:31]KKMCreateOFDPacket [02:00:31]OFDProtocolAddRootSTLVToBuf [02:00:31]FM_MakeSignedData [02:00:31]FM_MakeSignedData [02:00:31]SAM_PROTO_SignData [02:00:31]wFMCommunicate request_size=4 [02:00:31]MH_SAM_APDU [02:00:31]CAPDU: 80 0D 01 02 [02:00:31]Write to MH i2c: E2 08 00 56 1C 80 0D 01 02 00 00 00 00 EB [02:00:31]Write i2c OK [02:00:31]MH_I2C_Read... [02:00:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:00:31]Read from MH i2c: E2 [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: E2 03 00 [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: E2 03 00 56 1C 00 90 00 E6 [02:00:31]RAPDU: 90 00 [02:00:31]wFMCommunicate OK [02:00:31]wFMCommunicate request_size=255 [02:00:31]MH_SAM_APDU [02:00: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 BF 23 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 56 E2 00 00 35 04 06 00 BC [02:00:31]Write to MH i2c: E2 02 01 57 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 BF 23 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 56 E2 00 00 35 04 06 00 BC 00 00 AF [02:00:31]Write i2c OK [02:00:31]MH_I2C_Read... [02:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:00:31]Read from MH i2c: E2 [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: E2 03 00 [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: E2 03 00 57 1C 00 90 00 E7 [02:00:31]RAPDU: 90 00 [02:00:31]wFMCommunicate OK [02:00:31]wFMCommunicate request_size=10 [02:00:31]MH_SAM_APDU [02:00:31]CAPDU: 80 0D 02 02 05 86 A3 36 CB 45 [02:00:31]Write to MH i2c: E2 0D 00 58 1C 80 0D 02 02 05 00 86 A3 36 CB 45 00 00 67 [02:00:31]Write i2c OK [02:00:31]MH_I2C_Read... [02:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:00:31]Read from MH i2c: E2 [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: E2 03 00 [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: E2 03 00 58 1C 00 90 00 E8 [02:00:31]RAPDU: 90 00 [02:00:31]wFMCommunicate OK [02:00:31]wFMCommunicate request_size=4 [02:00:31]MH_SAM_APDU [02:00:31]CAPDU: 80 0D 03 02 [02:00:31]Write to MH i2c: E2 08 00 59 1C 80 0D 03 02 00 00 00 00 F0 [02:00:31]Write i2c OK [02:00:31]MH_I2C_Read... [02:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:00:31]Read from MH i2c: E2 [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: E2 0B 00 [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: E2 0B 00 59 1C 00 A4 02 C8 B9 8D BA 80 70 90 00 4F [02:00:31]RAPDU: A4 02 C8 B9 8D BA 80 70 90 00 [02:00:31]wFMCommunicate OK [02:00:31]SAM_PROTO_SignData done [02:00:31]FM_MakeSignedData done [02:00:31]CreateOFDProtocolMessage [02:00:31]wFMCommunicate request_size=4 [02:00:31]MH_SAM_APDU [02:00:31]CAPDU: 80 11 00 00 [02:00:31]Write to MH i2c: E2 08 00 5A 1C 80 11 00 00 00 00 00 00 F0 [02:00:31]Write i2c OK [02:00:31]MH_I2C_Read... [02:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:00:31]Read from MH i2c: E2 [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: E2 17 00 [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: E2 17 00 5A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 43 [02:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:00:31]wFMCommunicate OK [02:00:31]CreateOFDProtocolMessage done [02:00:31]OFDSenderStorePacket 57942 [02:00:31]StoreOFDPacket docnum=57942 [02:00:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 EF 24 07 01 ED F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 BF 23 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 56 E2 00 00 35 04 06 00 BC 86 A3 36 CB 45 A4 02 C8 B9 8D BA 80 70 [02:00:31]CheckFolder [02:00:31]dirname=/storage/ofd_packets [02:00:31]CheckFolder done [02:00:31]ProducePacketName [02:00:31]name=ofd_packets/00057942 [02:00:31]NVStorageSaveData ofd_packets/00057942 [02:00:31]File name is /storage/ofd_packets/00057942 [02:00:31]Write 301 bytes [02:00:31]NVStorageSaveData done [02:00:31]OFDSenderStorePacket done [02:00:31]KKMCreateOFDPacket done [02:00:31]NVStorageSaveData kkm_last_timestamp [02:00:31]File name is /storage/kkm_last_timestamp [02:00:31]Write 4 bytes [02:00:31]NVStorageSaveData done [02:00:31]ExternCall_PrintAddStr [02:00:31]wPrintStart [02:00:31]Write to MH i2c: 01 00 00 5B 1C 77 [02:00:31]Write i2c OK [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: 01 [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: 01 07 00 [02:00:31]MH_I2C_Read... [02:00:31]Read from MH i2c: 01 07 00 5B 1C 00 00 00 00 00 FF 0F 8C [02:00:31]RasterBufferAndPrint [02:00:31]line Счет N : (1)543284 [02:00:31]line ИНН: 02508201610067 [02:00:31]line Контрольно-Кассовый Чек [02:00:31]line ПРОДАЖА [02:00:31]line ТРК (МРК, ГНК) : 12 [02:00:31]line Товар: 2710124130 [02:00:31]line Аи-92-К-5 [02:00:31]line 4.490 * 66.90 [02:00:31]line = 300.38 [02:00:31]line НДС 12% НСП 1% [02:00:31]line > о реализуемом товаре [02:00:31]line ИТОГО: 300.38 [02:00:31]line НСП 1% : 2.66 [02:00:31]line НДС 12% : 31.90 [02:00:31]line Наличными: 0.00 [02:00:31]line Безнал.: 300.38 [02:00:31]line Место: АЗС № 117 "Партнер Нефть" [02:00:31]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [02:00:31]line СНО: Общий режим [02:00:31]line Чек 26 03.06.2024 02:00 [02:00:31]line Смена: 70 ФФД: 1.0 [02:00:31]line ЗНМ: 0300000048 [02:00:31]line РНМ: 0000000000151680 [02:00:31]line Версия ККМ: v1.0 [02:00:31]line Платежная система: O! деньги [02:00:31]line ФМ: 0000000000959414 [02:00:31]line ФД: 57942 [02:00:31]line ФПД: 207286449916741 [02:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T020031&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57942&fm=207286449916741&tin=02508201610067®Number=0000000000151680&sum=30038 [02:00:31]OFD Sender: Processing packet 57942 [packets to send 50, broken 49] [02:00:31]ProducePacketName [02:00:31]name=ofd_packets/00057942 [02:00:31]OFD Sender: To server: pG, [02:00:31]CommunicateWithHost lk.salyk.kg:30040 [02:00:31]ConnectInit lk.salyk.kg [02:00:31]written 0, free lines is 4095 [02:00:32]Connected sock=10 [02:00:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 EF 24 07 01 ED F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 BF 23 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 56 E2 00 00 35 04 06 00 BC 86 A3 36 CB 45 A4 02 C8 B9 8D BA 80 70 [02:00:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 74 07 47 00 35 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 56 E2 00 00 F4 03 04 00 8E CE 5C 66 B6 04 01 00 00 A0 49 1E 6E 97 74 4A 74 [02:00:32]CommunicateWithHost err = 0 [02:00:32]CheckOFDResponse [02:00:32]1017 (14) - 77093643461234 [02:00:32]1041 (16) - 0000000000959414 [02:00:32]1040 (4) - 57942 [02:00:32]1012 (4) - 02.06.2024 19:57 [02:00:32]1206 (1) - 0 [02:00:32]OFD Sender: Remove packet 57942 [02:00:32]ProducePacketName [02:00:32]name=ofd_packets/00057942 [02:00:32]NVStorageDeleteData [02:00:32]Write to MH i2c: 01 00 00 85 1C A1 [02:00:32]Write i2c OK [02:00:32]MH_I2C_Read... [02:00:32]Read from MH i2c: 01 [02:00:32]MH_I2C_Read... [02:00:32]Read from MH i2c: 01 07 00 [02:00:32]MH_I2C_Read... [02:00:32]Read from MH i2c: 01 07 00 85 1C 00 00 00 00 00 B8 0C 6C [02:00:32]RasterBufferAndPrint [02:00:32]line [02:00:32]line [02:00:32]line [02:00:32]line [02:00:32]line [02:00:32]written 0, free lines is 3263 [02:00:32]MH_Cut [02:00:32]Write to MH i2c: D1 01 00 8C 1C 01 7A [02:00:32]Write i2c OK [02:00:32]MH_I2C_Read... [02:00:32]Read from MH i2c: D1 [02:00:32]MH_I2C_Read... [02:00:32]Read from MH i2c: D1 01 00 [02:00:32]MH_I2C_Read... [02:00:32]Read from MH i2c: D1 01 00 8C 1C 00 79 [02:00:32]Write to MH i2c: 01 00 00 8D 1C A9 [02:00:32]Write i2c OK [02:00:32]MH_I2C_Read... [02:00:32]OFD Sender: No OFD packet to send [02:00:33]*** Cut start [02:00:33]*** Partial cut [02:00:33]*** CUTSNS_PIN = 1 [02:00:33]*** CUTSNS_PIN = 0 [02:00:33]*** Brake cut motor [02:00:33]Read from MH i2c: 01 [02:00:33]MH_I2C_Read... [02:00:33]*** Stop cut motor [02:00:33]*** Cut end [02:00:33]Read from MH i2c: 01 07 00 [02:00:33]MH_I2C_Read... [02:00:33]Read from MH i2c: 01 07 00 8D 1C 00 00 00 00 00 FF 0F BE [02:00:33]process_action close_receipt done [02:00:33]requested_data is exist [02:00:33]produce_requested_data [02:00:33]requested_item fm.sn is exist - process it [02:00:33]wFMCommunicate request_size=4 [02:00:33]MH_SAM_APDU [02:00:33]CAPDU: 80 11 00 00 [02:00:33]Write to MH i2c: E2 08 00 8E 1C 80 11 00 00 00 00 00 00 24 [02:00:33]Write i2c OK [02:00:33]MH_I2C_Read... [02:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:00:34]Read from MH i2c: E2 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 17 00 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 17 00 8E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 77 [02:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:00:34]wFMCommunicate OK [02:00:34]requested_item fd.num is exist - process it [02:00:34]SAM_PROTO_GetFieldsCounters [02:00:34]wFMCommunicate request_size=4 [02:00:34]MH_SAM_APDU [02:00:34]CAPDU: 80 13 00 00 [02:00:34]Write to MH i2c: E2 08 00 8F 1C 80 13 00 00 00 00 00 00 27 [02:00:34]Write i2c OK [02:00:34]MH_I2C_Read... [02:00:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:00:34]Read from MH i2c: E2 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 62 00 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 62 00 8F 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 56 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [02:00:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 56 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:00:34]wFMCommunicate OK [02:00:34]SAM_PROTO_GetFieldsCounters done [02:00:34]requested_item shift.num is exist - process it [02:00:34]requested_item shift.opened is exist - process it [02:00:34]req_shift_opened [02:00:34]FM_GetShiftState [02:00:34]SAM_PROTO_GetShiftState [02:00:34]wFMCommunicate request_size=4 [02:00:34]MH_SAM_APDU [02:00:34]CAPDU: 80 13 01 00 [02:00:34]Write to MH i2c: E2 08 00 90 1C 80 13 01 00 00 00 00 00 29 [02:00:34]Write i2c OK [02:00:34]MH_I2C_Read... [02:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:00:34]Read from MH i2c: E2 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 0E 00 [02:00:34]MH_I2C_Read... [02:00:34]Read from MH i2c: E2 0E 00 90 1C 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 EA [02:00:34]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:00:34]wFMCommunicate OK [02:00:34]SAM_PROTO_GetShiftState done [02:00:34]FM_GetShiftState done [02:00:34]req_shift_opened done [02:00:34]requested_item shift.open_date is exist - process it [02:00:34]req_shift_open_date [02:00:34]req_shift_open_date done [02:00:34]produce_requested_data done [02:00:34]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57942,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [02:00:34]process_action_free close_receipt [02:00:34]json_value_free [02:00:34]json_value_free done [02:00:34]process_json_proto returns [02:00:34]Send response to host [02:00:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57942,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [02:00:34]free response buf [02:00:34]execute_script done [02:00:34]execute_script returns [02:00:34]free content buf [02:00:34]Sock 9.Close socket [02:00:34]Sock 9.Thread stoped [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:50]accept exits with 8 [02:00:50]New connection [02:00:50]New thread 3066735972 created [02:00:50]Thread 3066592612 joined [02:00:50]Waiting for new connection... [02:00:50] Sock 8.Parse request [02:00:50]Sock 8.Check first char [02:00:50]Sock 8.First char is OK [02:00:50]request: POST /json_proto HTTP/1.0 [02:00:50]Method: POST [02:00:50]URL: /json_proto [02:00:50]Method is POST - this is cgi request [02:00:50]url: /json_proto [02:00:50]query_string will be loaded in cgi processing [02:00:50]execute_cgi json_proto POST (null) [02:00:50]execute_cgi path=json_proto method=POST [02:00:50]POST find Content-Length [02:00:50]Host: 172.17.60.68:8080 [02:00:50]Content-Length: 670 [02:00:50]Content-Type: application/json [02:00:50] [02:00:50]POST finish read [02:00:50]Found Content-Length = 670 [02:00:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "sum" : 500.42, "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" ] } } [02:00:50]execute_script... [02:00: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)543286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "sum" : 500.42, "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" ] } } [02:00:50]POST & json_proto [02:00:50]process_json_proto [02:00:50]json parsed OK: [02:00:50]protocol is kg_v1.0 [02:00:50]action value=close_receipt [02:00:50]process_action close_receipt [02:00:50]cmd_close_receipt [02:00:50]MH_GetDate [02:00:50]Write to MH i2c: F0 00 00 91 1C 9C [02:00:50]Write i2c OK [02:00:50]MH_I2C_Read... [02:00:50]Read from MH i2c: F0 [02:00:50]MH_I2C_Read... [02:00:50]Read from MH i2c: F0 09 00 [02:00:50]MH_I2C_Read... [02:00:50]Read from MH i2c: F0 09 00 91 1C 00 D3 23 5D 66 8D A7 02 66 FA [02:00:50]GetLastDocTimeStamp 1717380031 [02:00:50]current date 1717380051 [02:00:50]FM_GetShiftState [02:00:50]SAM_PROTO_GetShiftState [02:00:50]wFMCommunicate request_size=4 [02:00:50]MH_SAM_APDU [02:00:50]CAPDU: 80 13 01 00 [02:00:50]Write to MH i2c: E2 08 00 92 1C 80 13 01 00 00 00 00 00 2B [02:00:50]Write i2c OK [02:00:50]MH_I2C_Read... [02:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:00:50]Read from MH i2c: E2 [02:00:50]MH_I2C_Read... [02:00:50]Read from MH i2c: E2 0E 00 [02:00:50]MH_I2C_Read... [02:00:50]Read from MH i2c: E2 0E 00 92 1C 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 EC [02:00:50]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:00:50]wFMCommunicate OK [02:00:50]SAM_PROTO_GetShiftState done [02:00:50]FM_GetShiftState done [02:00:50]opened in 1717373417 [02:00:50]opened+sec_in_day 1717459817 [02:00:50]quantity*price = 50042 [02:00:50]sum+1 = 50043 [02:00:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 27 03.06.2024 02:00 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57943 ФПД: 235437180014386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T020051&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57943&fm=235437180014386&tin=02508201610067®Number=0000000000151680&sum=50000 [02:00:51]StoreToDocumentArchive [02:00:51]shift 70 fd 57943 [02:00:51]save to /storage/0070/doc_00057943 [02:00:51]save last doc name /storage/0070/doc_00057943 to /storage/kkm_last_doc_name [02:00:51]save OK [02:00:51]Clear old archive folders... [02:00:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:00:51]tlvbuf is 019F2320 [02:00:51]SAM_PROTO_ClearQueue [02:00:51]wFMCommunicate request_size=4 [02:00:51]MH_SAM_APDU [02:00:51]CAPDU: 80 09 00 00 [02:00:51]Write to MH i2c: E2 08 00 9F 1C 80 09 00 00 00 00 00 00 2D [02:00:51]Write i2c OK [02:00:51]MH_I2C_Read... [02:00:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:00:51]Read from MH i2c: E2 [02:00:51]MH_I2C_Read... [02:00:51]Read from MH i2c: E2 03 00 [02:00:51]MH_I2C_Read... [02:00:51]Read from MH i2c: E2 03 00 9F 1C 00 90 00 2F [02:00:51]RAPDU: 90 00 [02:00:51]wFMCommunicate OK [02:00:51]SAM_PROTO_ClearQueue done [02:00:51]KKMCreateOFDPacket [02:00:51]OFDProtocolAddRootSTLVToBuf [02:00:51]FM_MakeSignedData [02:00:51]FM_MakeSignedData [02:00:51]SAM_PROTO_SignData [02:00:51]wFMCommunicate request_size=4 [02:00:51]MH_SAM_APDU [02:00:51]CAPDU: 80 0D 01 02 [02:00:51]Write to MH i2c: E2 08 00 A0 1C 80 0D 01 02 00 00 00 00 35 [02:00:51]Write i2c OK [02:00:51]MH_I2C_Read... [02:00:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:00:51]Read from MH i2c: E2 [02:00:51]MH_I2C_Read... [02:00:51]Read from MH i2c: E2 03 00 [02:00:51]MH_I2C_Read... [02:00:51]Read from MH i2c: E2 03 00 A0 1C 00 90 00 30 [02:00:51]RAPDU: 90 00 [02:00:51]wFMCommunicate OK [02:00:51]wFMCommunicate request_size=255 [02:00:51]MH_SAM_APDU [02:00:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D3 23 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 57 E2 00 00 35 04 06 00 [02:00:51]Write to MH i2c: E2 02 01 A1 1C 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 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D3 23 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 57 E2 00 00 35 04 06 00 00 00 A6 [02:00:51]Write i2c OK [02:00:51]MH_I2C_Read... [02:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:00:51]Read from MH i2c: E2 [02:00:51]MH_I2C_Read... [02:00:51]Read from MH i2c: E2 03 00 [02:00:51]MH_I2C_Read... [02:00:51]Read from MH i2c: E2 03 00 A1 1C 00 90 00 31 [02:00:51]RAPDU: 90 00 [02:00:51]wFMCommunicate OK [02:00:51]wFMCommunicate request_size=11 [02:00:51]MH_SAM_APDU [02:00:51]CAPDU: 80 0D 02 02 06 D6 20 FD 7B 4F 32 [02:00:51]Write to MH i2c: E2 0E 00 A2 1C 80 0D 02 02 06 00 D6 20 FD 7B 4F 32 00 00 33 [02:00:51]Write i2c OK [02:00:51]MH_I2C_Read... [02:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:00:51]Read from MH i2c: E2 [02:00:51]MH_I2C_Read... [02:00:51]Read from MH i2c: E2 03 00 [02:00:51]MH_I2C_Read... [02:00:51]Read from MH i2c: E2 03 00 A2 1C 00 90 00 32 [02:00:51]RAPDU: 90 00 [02:00:51]wFMCommunicate OK [02:00:51]wFMCommunicate request_size=4 [02:00:51]MH_SAM_APDU [02:00:51]CAPDU: 80 0D 03 02 [02:00:51]Write to MH i2c: E2 08 00 A3 1C 80 0D 03 02 00 00 00 00 3A [02:00:51]Write i2c OK [02:00:51]MH_I2C_Read... [02:00:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:00:51]Read from MH i2c: E2 [02:00:51]MH_I2C_Read... [02:00:51]Read from MH i2c: E2 0B 00 [02:00:51]MH_I2C_Read... [02:00:51]Read from MH i2c: E2 0B 00 A3 1C 00 C8 58 09 B1 F7 D3 6E 29 90 00 76 [02:00:51]RAPDU: C8 58 09 B1 F7 D3 6E 29 90 00 [02:00:51]wFMCommunicate OK [02:00:51]SAM_PROTO_SignData done [02:00:51]FM_MakeSignedData done [02:00:51]CreateOFDProtocolMessage [02:00:51]wFMCommunicate request_size=4 [02:00:51]MH_SAM_APDU [02:00:51]CAPDU: 80 11 00 00 [02:00:51]Write to MH i2c: E2 08 00 A4 1C 80 11 00 00 00 00 00 00 3A [02:00:51]Write i2c OK [02:00:51]MH_I2C_Read... [02:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:00:52]Read from MH i2c: E2 [02:00:52]MH_I2C_Read... [02:00:52]Read from MH i2c: E2 17 00 [02:00:52]MH_I2C_Read... [02:00:52]Read from MH i2c: E2 17 00 A4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 8D [02:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:00:52]wFMCommunicate OK [02:00:52]CreateOFDProtocolMessage done [02:00:52]OFDSenderStorePacket 57943 [02:00:52]StoreOFDPacket docnum=57943 [02:00:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 0B 80 08 01 5B 1E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D3 23 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 57 E2 00 00 35 04 06 00 D6 20 FD 7B 4F 32 C8 58 09 B1 F7 D3 6E 29 [02:00:52]CheckFolder [02:00:52]dirname=/storage/ofd_packets [02:00:52]CheckFolder done [02:00:52]ProducePacketName [02:00:52]name=ofd_packets/00057943 [02:00:52]NVStorageSaveData ofd_packets/00057943 [02:00:52]File name is /storage/ofd_packets/00057943 [02:00:52]Write 302 bytes [02:00:52]NVStorageSaveData done [02:00:52]OFDSenderStorePacket done [02:00:52]KKMCreateOFDPacket done [02:00:52]NVStorageSaveData kkm_last_timestamp [02:00:52]File name is /storage/kkm_last_timestamp [02:00:52]Write 4 bytes [02:00:52]NVStorageSaveData done [02:00:52]ExternCall_PrintAddStr [02:00:52]wPrintStart [02:00:52]Write to MH i2c: 01 00 00 A5 1C C1 [02:00:52]Write i2c OK [02:00:52]MH_I2C_Read... [02:00:52]Read from MH i2c: 01 [02:00:52]MH_I2C_Read... [02:00:52]Read from MH i2c: 01 07 00 [02:00:52]MH_I2C_Read... [02:00:52]Read from MH i2c: 01 07 00 A5 1C 00 00 00 00 00 FF 0F D6 [02:00:52]RasterBufferAndPrint [02:00:52]line Счет N : (1)543286 [02:00:52]line ИНН: 02508201610067 [02:00:52]line Контрольно-Кассовый Чек [02:00:52]line ПРОДАЖА [02:00:52]line ТРК (МРК, ГНК) : 24 [02:00:52]line Товар: 2710124130 [02:00:52]line SUPER 92-К-5 [02:00:52]line 7.370 * 67.90 [02:00:52]line = 500.42 [02:00:52]line НДС 12% НСП 1% [02:00:52]line > о реализуемом товаре [02:00:52]line ОКРУГЛЕНИЕ: -0.42 [02:00:52]line ИТОГО: 500.00 [02:00:52]line Внесено: 500.00 [02:00:52]line СДАЧА: 0.00 [02:00:52]line НСП 1% : 4.43 [02:00:52]line НДС 12% : 53.14 [02:00:52]line Наличными: 500.00 [02:00:52]line Безнал.: 0.00 [02:00:52]line Место: АЗС № 117 "Партнер Нефть" [02:00:52]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [02:00:52]line СНО: Общий режим [02:00:52]line Чек 27 03.06.2024 02:00 [02:00:52]line Смена: 70 ФФД: 1.0 [02:00:52]line ЗНМ: 0300000048 [02:00:52]line РНМ: 0000000000151680 [02:00:52]line Версия ККМ: v1.0 [02:00:52]line ФМ: 0000000000959414 [02:00:52]line ФД: 57943 [02:00:52]line ФПД: 235437180014386 [02:00:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T020051&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57943&fm=235437180014386&tin=02508201610067®Number=0000000000151680&sum=50000 [02:00:52]OFD Sender: Processing packet 57943 [packets to send 50, broken 49] [02:00:52]ProducePacketName [02:00:52]name=ofd_packets/00057943 [02:00:52]OFD Sender: To server: pG, [02:00:52]CommunicateWithHost lk.salyk.kg:30040 [02:00:52]ConnectInit lk.salyk.kg [02:00:52]written 0, free lines is 4095 [02:00:52]Connected sock=10 [02:00:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 0B 80 08 01 5B 1E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D3 23 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 57 E2 00 00 35 04 06 00 D6 20 FD 7B 4F 32 C8 58 09 B1 F7 D3 6E 29 [02:00:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 56 52 47 00 D0 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 57 E2 00 00 F4 03 04 00 A3 CE 5C 66 B6 04 01 00 00 1E 64 9B 2A 41 F9 E0 CD [02:00:52]CommunicateWithHost err = 0 [02:00:52]CheckOFDResponse [02:00:52]1017 (14) - 77093643461234 [02:00:52]1041 (16) - 0000000000959414 [02:00:52]1040 (4) - 57943 [02:00:52]1012 (4) - 02.06.2024 19:57 [02:00:52]1206 (1) - 0 [02:00:52]OFD Sender: Remove packet 57943 [02:00:52]ProducePacketName [02:00:52]name=ofd_packets/00057943 [02:00:52]NVStorageDeleteData [02:00:52]Write to MH i2c: 01 00 00 D0 1C EC [02:00:52]Write i2c OK [02:00:52]MH_I2C_Read... [02:00:52]Read from MH i2c: 01 [02:00:52]MH_I2C_Read... [02:00:52]Read from MH i2c: 01 07 00 [02:00:52]MH_I2C_Read... [02:00:52]Read from MH i2c: 01 07 00 D0 1C 00 00 00 00 00 AD 0C AC [02:00:52]RasterBufferAndPrint [02:00:52]line [02:00:52]line [02:00:52]line [02:00:52]line [02:00:52]line [02:00:52]written 0, free lines is 3253 [02:00:52]MH_Cut [02:00:52]Write to MH i2c: D1 01 00 D7 1C 01 C5 [02:00:52]Write i2c OK [02:00:52]MH_I2C_Read... [02:00:52]Read from MH i2c: D1 [02:00:52]MH_I2C_Read... [02:00:52]Read from MH i2c: D1 01 00 [02:00:52]MH_I2C_Read... [02:00:52]Read from MH i2c: D1 01 00 D7 1C 00 C4 [02:00:52]Write to MH i2c: 01 00 00 D8 1C F4 [02:00:52]Write i2c OK [02:00:52]MH_I2C_Read... [02:00:53]OFD Sender: No OFD packet to send [02:00:53]*** Cut start [02:00:53]*** Partial cut [02:00:53]*** CUTSNS_PIN = 1 [02:00:53]*** CUTSNS_PIN = 0 [02:00:53]*** Brake cut motor [02:00:54]Read from MH i2c: 01 [02:00:54]MH_I2C_Read... [02:00:54]*** Stop cut motor [02:00:54]*** Cut end [02:00:54]Read from MH i2c: 01 07 00 [02:00:54]MH_I2C_Read... [02:00:54]Read from MH i2c: 01 07 00 D8 1C 00 00 00 00 00 FF 0F 09 [02:00:54]process_action close_receipt done [02:00:54]requested_data is exist [02:00:54]produce_requested_data [02:00:54]requested_item fm.sn is exist - process it [02:00:54]wFMCommunicate request_size=4 [02:00:54]MH_SAM_APDU [02:00:54]CAPDU: 80 11 00 00 [02:00:54]Write to MH i2c: E2 08 00 D9 1C 80 11 00 00 00 00 00 00 6F [02:00:54]Write i2c OK [02:00:54]MH_I2C_Read... [02:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:00:54]Read from MH i2c: E2 [02:00:54]MH_I2C_Read... [02:00:54]Read from MH i2c: E2 17 00 [02:00:54]MH_I2C_Read... [02:00:54]Read from MH i2c: E2 17 00 D9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 C2 [02:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:00:54]wFMCommunicate OK [02:00:54]requested_item fd.num is exist - process it [02:00:54]SAM_PROTO_GetFieldsCounters [02:00:54]wFMCommunicate request_size=4 [02:00:54]MH_SAM_APDU [02:00:54]CAPDU: 80 13 00 00 [02:00:54]Write to MH i2c: E2 08 00 DA 1C 80 13 00 00 00 00 00 00 72 [02:00:54]Write i2c OK [02:00:54]MH_I2C_Read... [02:00:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:00:54]Read from MH i2c: E2 [02:00:54]MH_I2C_Read... [02:00:54]Read from MH i2c: E2 62 00 [02:00:54]MH_I2C_Read... [02:00:54]Read from MH i2c: E2 62 00 DA 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 57 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [02:00:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 57 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:00:54]wFMCommunicate OK [02:00:54]SAM_PROTO_GetFieldsCounters done [02:00:54]requested_item shift.num is exist - process it [02:00:54]requested_item shift.opened is exist - process it [02:00:54]req_shift_opened [02:00:54]FM_GetShiftState [02:00:54]SAM_PROTO_GetShiftState [02:00:54]wFMCommunicate request_size=4 [02:00:54]MH_SAM_APDU [02:00:54]CAPDU: 80 13 01 00 [02:00:54]Write to MH i2c: E2 08 00 DB 1C 80 13 01 00 00 00 00 00 74 [02:00:54]Write i2c OK [02:00:54]MH_I2C_Read... [02:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:00:54]Read from MH i2c: E2 [02:00:54]MH_I2C_Read... [02:00:54]Read from MH i2c: E2 0E 00 [02:00:54]MH_I2C_Read... [02:00:54]Read from MH i2c: E2 0E 00 DB 1C 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 35 [02:00:54]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:00:54]wFMCommunicate OK [02:00:54]SAM_PROTO_GetShiftState done [02:00:54]FM_GetShiftState done [02:00:54]req_shift_opened done [02:00:54]requested_item shift.open_date is exist - process it [02:00:54]req_shift_open_date [02:00:54]req_shift_open_date done [02:00:54]produce_requested_data done [02:00:54]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57943,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [02:00:54]process_action_free close_receipt [02:00:54]json_value_free [02:00:54]json_value_free done [02:00:54]process_json_proto returns [02:00:54]Send response to host [02:00:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57943,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [02:00:54]free response buf [02:00:54]execute_script done [02:00:54]execute_script returns [02:00:54]free content buf [02:00:54]Sock 8.Close socket [02:00:54]Sock 8.Thread stoped [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:04]accept exits with 9 [02:02:04]New connection [02:02:04]New thread 3066592612 created [02:02:04]Thread 3066735972 joined [02:02:04]Waiting for new connection... [02:02:04] Sock 9.Parse request [02:02:04]Sock 9.Check first char [02:02:04]Sock 9.First char is OK [02:02:04]request: POST /json_proto HTTP/1.0 [02:02:04]Method: POST [02:02:04]URL: /json_proto [02:02:04]Method is POST - this is cgi request [02:02:04]url: /json_proto [02:02:04]query_string will be loaded in cgi processing [02:02:04]execute_cgi json_proto POST (null) [02:02:04]execute_cgi path=json_proto method=POST [02:02:04]POST find Content-Length [02:02:04]Host: 172.17.60.68:8080 [02:02:04]Content-Length: 677 [02:02:04]Content-Type: application/json [02:02:04] [02:02:04]POST finish read [02:02:04]Found Content-Length = 677 [02:02:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:02:04]execute_script... [02:02:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:02:04]POST & json_proto [02:02:04]process_json_proto [02:02:04]json parsed OK: [02:02:04]protocol is kg_v1.0 [02:02:04]action value=close_receipt [02:02:04]process_action close_receipt [02:02:04]cmd_close_receipt [02:02:04]MH_GetDate [02:02:04]Write to MH i2c: F0 00 00 DC 1C E7 [02:02:04]Write i2c OK [02:02:04]MH_I2C_Read... [02:02:04]Read from MH i2c: F0 [02:02:04]MH_I2C_Read... [02:02:04]Read from MH i2c: F0 09 00 [02:02:04]MH_I2C_Read... [02:02:04]Read from MH i2c: F0 09 00 DC 1C 00 1D 24 5D 66 8D A7 02 66 90 [02:02:04]GetLastDocTimeStamp 1717380051 [02:02:04]current date 1717380125 [02:02:04]FM_GetShiftState [02:02:04]SAM_PROTO_GetShiftState [02:02:04]wFMCommunicate request_size=4 [02:02:04]MH_SAM_APDU [02:02:04]CAPDU: 80 13 01 00 [02:02:04]Write to MH i2c: E2 08 00 DD 1C 80 13 01 00 00 00 00 00 76 [02:02:04]Write i2c OK [02:02:04]MH_I2C_Read... [02:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:02:04]Read from MH i2c: E2 [02:02:04]MH_I2C_Read... [02:02:04]Read from MH i2c: E2 0E 00 [02:02:04]MH_I2C_Read... [02:02:04]Read from MH i2c: E2 0E 00 DD 1C 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 37 [02:02:04]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:02:04]wFMCommunicate OK [02:02:04]SAM_PROTO_GetShiftState done [02:02:04]FM_GetShiftState done [02:02:04]opened in 1717373417 [02:02:04]opened+sec_in_day 1717459817 [02:02:04]quantity*price = 40006 [02:02:04]sum+1 = 40007 [02:02:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 28 03.06.2024 02:02 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57944 ФПД: 95751036534105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T020205&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57944&fm=95751036534105&tin=02508201610067®Number=0000000000151680&sum=40000 [02:02:05]StoreToDocumentArchive [02:02:05]shift 70 fd 57944 [02:02:05]save to /storage/0070/doc_00057944 [02:02:05]save last doc name /storage/0070/doc_00057944 to /storage/kkm_last_doc_name [02:02:05]save OK [02:02:05]Clear old archive folders... [02:02:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:02:05]tlvbuf is 01AD6530 [02:02:05]SAM_PROTO_ClearQueue [02:02:05]wFMCommunicate request_size=4 [02:02:05]MH_SAM_APDU [02:02:05]CAPDU: 80 09 00 00 [02:02:05]Write to MH i2c: E2 08 00 EA 1C 80 09 00 00 00 00 00 00 78 [02:02:05]Write i2c OK [02:02:05]MH_I2C_Read... [02:02:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:02:05]Read from MH i2c: E2 [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: E2 03 00 [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: E2 03 00 EA 1C 00 90 00 7A [02:02:05]RAPDU: 90 00 [02:02:05]wFMCommunicate OK [02:02:05]SAM_PROTO_ClearQueue done [02:02:05]KKMCreateOFDPacket [02:02:05]OFDProtocolAddRootSTLVToBuf [02:02:05]FM_MakeSignedData [02:02:05]FM_MakeSignedData [02:02:05]SAM_PROTO_SignData [02:02:05]wFMCommunicate request_size=4 [02:02:05]MH_SAM_APDU [02:02:05]CAPDU: 80 0D 01 02 [02:02:05]Write to MH i2c: E2 08 00 EB 1C 80 0D 01 02 00 00 00 00 80 [02:02:05]Write i2c OK [02:02:05]MH_I2C_Read... [02:02:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:02:05]Read from MH i2c: E2 [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: E2 03 00 [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: E2 03 00 EB 1C 00 90 00 7B [02:02:05]RAPDU: 90 00 [02:02:05]wFMCommunicate OK [02:02:05]wFMCommunicate request_size=255 [02:02:05]MH_SAM_APDU [02:02: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1D 24 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 58 E2 00 00 35 04 06 00 57 [02:02:05]Write to MH i2c: E2 02 01 EC 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1D 24 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 58 E2 00 00 35 04 06 00 57 00 00 D1 [02:02:05]Write i2c OK [02:02:05]MH_I2C_Read... [02:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:02:05]Read from MH i2c: E2 [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: E2 03 00 [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: E2 03 00 EC 1C 00 90 00 7C [02:02:05]RAPDU: 90 00 [02:02:05]wFMCommunicate OK [02:02:05]wFMCommunicate request_size=10 [02:02:05]MH_SAM_APDU [02:02:05]CAPDU: 80 0D 02 02 05 15 C6 84 FD 59 [02:02:05]Write to MH i2c: E2 0D 00 ED 1C 80 0D 02 02 05 00 15 C6 84 FD 59 00 00 42 [02:02:05]Write i2c OK [02:02:05]MH_I2C_Read... [02:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:02:05]Read from MH i2c: E2 [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: E2 03 00 [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: E2 03 00 ED 1C 00 90 00 7D [02:02:05]RAPDU: 90 00 [02:02:05]wFMCommunicate OK [02:02:05]wFMCommunicate request_size=4 [02:02:05]MH_SAM_APDU [02:02:05]CAPDU: 80 0D 03 02 [02:02:05]Write to MH i2c: E2 08 00 EE 1C 80 0D 03 02 00 00 00 00 85 [02:02:05]Write i2c OK [02:02:05]MH_I2C_Read... [02:02:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:02:05]Read from MH i2c: E2 [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: E2 0B 00 [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: E2 0B 00 EE 1C 00 D6 52 39 0B FB DD F3 60 90 00 1D [02:02:05]RAPDU: D6 52 39 0B FB DD F3 60 90 00 [02:02:05]wFMCommunicate OK [02:02:05]SAM_PROTO_SignData done [02:02:05]FM_MakeSignedData done [02:02:05]CreateOFDProtocolMessage [02:02:05]wFMCommunicate request_size=4 [02:02:05]MH_SAM_APDU [02:02:05]CAPDU: 80 11 00 00 [02:02:05]Write to MH i2c: E2 08 00 EF 1C 80 11 00 00 00 00 00 00 85 [02:02:05]Write i2c OK [02:02:05]MH_I2C_Read... [02:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:02:05]Read from MH i2c: E2 [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: E2 17 00 [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: E2 17 00 EF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 D8 [02:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:02:05]wFMCommunicate OK [02:02:05]CreateOFDProtocolMessage done [02:02:05]OFDSenderStorePacket 57944 [02:02:05]StoreOFDPacket docnum=57944 [02:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 3A 13 07 01 C7 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1D 24 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 58 E2 00 00 35 04 06 00 57 15 C6 84 FD 59 D6 52 39 0B FB DD F3 60 [02:02:05]CheckFolder [02:02:05]dirname=/storage/ofd_packets [02:02:05]CheckFolder done [02:02:05]ProducePacketName [02:02:05]name=ofd_packets/00057944 [02:02:05]NVStorageSaveData ofd_packets/00057944 [02:02:05]File name is /storage/ofd_packets/00057944 [02:02:05]Write 301 bytes [02:02:05]NVStorageSaveData done [02:02:05]OFDSenderStorePacket done [02:02:05]KKMCreateOFDPacket done [02:02:05]NVStorageSaveData kkm_last_timestamp [02:02:05]File name is /storage/kkm_last_timestamp [02:02:05]Write 4 bytes [02:02:05]NVStorageSaveData done [02:02:05]ExternCall_PrintAddStr [02:02:05]wPrintStart [02:02:05]Write to MH i2c: 01 00 00 F0 1C 0C [02:02:05]Write i2c OK [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: 01 [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: 01 07 00 [02:02:05]MH_I2C_Read... [02:02:05]Read from MH i2c: 01 07 00 F0 1C 00 00 00 00 00 FF 0F 21 [02:02:05]RasterBufferAndPrint [02:02:05]line Счет N : (1)543287 [02:02:05]line ИНН: 02508201610067 [02:02:05]line Контрольно-Кассовый Чек [02:02:05]line ПРОДАЖА [02:02:05]line ТРК (МРК, ГНК) : 42 [02:02:05]line Товар: 2710124130 [02:02:05]line Аи-92-К-5 [02:02:05]line 5.980 * 66.90 [02:02:05]line = 400.06 [02:02:05]line НДС 12% НСП 1% [02:02:05]line > о реализуемом товаре [02:02:05]line ОКРУГЛЕНИЕ: -0.06 [02:02:05]line ИТОГО: 400.00 [02:02:05]line Внесено: 400.00 [02:02:05]line СДАЧА: 0.00 [02:02:05]line НСП 1% : 3.54 [02:02:05]line НДС 12% : 42.48 [02:02:05]line Наличными: 400.00 [02:02:05]line Безнал.: 0.00 [02:02:05]line Место: АЗС № 117 "Партнер Нефть" [02:02:05]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [02:02:05]line СНО: Общий режим [02:02:05]line Чек 28 03.06.2024 02:02 [02:02:05]line Смена: 70 ФФД: 1.0 [02:02:05]line ЗНМ: 0300000048 [02:02:05]line РНМ: 0000000000151680 [02:02:05]line Версия ККМ: v1.0 [02:02:05]line ФМ: 0000000000959414 [02:02:05]line ФД: 57944 [02:02:05]line ФПД: 95751036534105 [02:02:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T020205&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57944&fm=95751036534105&tin=02508201610067®Number=0000000000151680&sum=40000 [02:02:06]OFD Sender: Processing packet 57944 [packets to send 50, broken 49] [02:02:06]ProducePacketName [02:02:06]name=ofd_packets/00057944 [02:02:06]OFD Sender: To server: pG, [02:02:06]CommunicateWithHost lk.salyk.kg:30040 [02:02:06]ConnectInit lk.salyk.kg [02:02:06]written 0, free lines is 4095 [02:02:06]Connected sock=10 [02:02:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 3A 13 07 01 C7 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1D 24 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 58 E2 00 00 35 04 06 00 57 15 C6 84 FD 59 D6 52 39 0B FB DD F3 60 [02:02:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 8C 96 47 00 59 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 58 E2 00 00 F4 03 04 00 EC CE 5C 66 B6 04 01 00 00 FA A7 E7 40 93 53 44 B4 [02:02:06]CommunicateWithHost err = 0 [02:02:06]CheckOFDResponse [02:02:06]1017 (14) - 77093643461234 [02:02:06]1041 (16) - 0000000000959414 [02:02:06]1040 (4) - 57944 [02:02:06]1012 (4) - 02.06.2024 19:58 [02:02:06]1206 (1) - 0 [02:02:06]OFD Sender: Remove packet 57944 [02:02:06]ProducePacketName [02:02:06]name=ofd_packets/00057944 [02:02:06]NVStorageDeleteData [02:02:06]Write to MH i2c: 01 00 00 1B 1D 38 [02:02:06]Write i2c OK [02:02:06]MH_I2C_Read... [02:02:06]Read from MH i2c: 01 [02:02:06]MH_I2C_Read... [02:02:06]Read from MH i2c: 01 07 00 [02:02:06]MH_I2C_Read... [02:02:06]Read from MH i2c: 01 07 00 1B 1D 00 00 00 00 00 A8 0C F3 [02:02:06]RasterBufferAndPrint [02:02:06]line [02:02:06]line [02:02:06]line [02:02:06]line [02:02:06]line [02:02:06]written 0, free lines is 3245 [02:02:06]MH_Cut [02:02:06]Write to MH i2c: D1 01 00 22 1D 01 11 [02:02:06]Write i2c OK [02:02:06]MH_I2C_Read... [02:02:06]Read from MH i2c: D1 [02:02:06]MH_I2C_Read... [02:02:06]Read from MH i2c: D1 01 00 [02:02:06]MH_I2C_Read... [02:02:06]Read from MH i2c: D1 01 00 22 1D 00 10 [02:02:06]Write to MH i2c: 01 00 00 23 1D 40 [02:02:06]Write i2c OK [02:02:06]MH_I2C_Read... [02:02:06]OFD Sender: No OFD packet to send [02:02:07]*** Cut start [02:02:07]*** Partial cut [02:02:07]*** CUTSNS_PIN = 1 [02:02:07]*** CUTSNS_PIN = 0 [02:02:07]*** Brake cut motor [02:02:08]Read from MH i2c: 01 [02:02:08]MH_I2C_Read... [02:02:08]*** Stop cut motor [02:02:08]*** Cut end [02:02:08]Read from MH i2c: 01 07 00 [02:02:08]MH_I2C_Read... [02:02:08]Read from MH i2c: 01 07 00 23 1D 00 00 00 00 00 FF 0F 55 [02:02:08]process_action close_receipt done [02:02:08]requested_data is exist [02:02:08]produce_requested_data [02:02:08]requested_item fm.sn is exist - process it [02:02:08]wFMCommunicate request_size=4 [02:02:08]MH_SAM_APDU [02:02:08]CAPDU: 80 11 00 00 [02:02:08]Write to MH i2c: E2 08 00 24 1D 80 11 00 00 00 00 00 00 BB [02:02:08]Write i2c OK [02:02:08]MH_I2C_Read... [02:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:02:08]Read from MH i2c: E2 [02:02:08]MH_I2C_Read... [02:02:08]Read from MH i2c: E2 17 00 [02:02:08]MH_I2C_Read... [02:02:08]Read from MH i2c: E2 17 00 24 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 0E [02:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:02:08]wFMCommunicate OK [02:02:08]requested_item fd.num is exist - process it [02:02:08]SAM_PROTO_GetFieldsCounters [02:02:08]wFMCommunicate request_size=4 [02:02:08]MH_SAM_APDU [02:02:08]CAPDU: 80 13 00 00 [02:02:08]Write to MH i2c: E2 08 00 25 1D 80 13 00 00 00 00 00 00 BE [02:02:08]Write i2c OK [02:02:08]MH_I2C_Read... [02:02:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:02:08]Read from MH i2c: E2 [02:02:08]MH_I2C_Read... [02:02:08]Read from MH i2c: E2 62 00 [02:02:08]MH_I2C_Read... [02:02:08]Read from MH i2c: E2 62 00 25 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 58 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [02:02:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 58 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:02:08]wFMCommunicate OK [02:02:08]SAM_PROTO_GetFieldsCounters done [02:02:08]requested_item shift.num is exist - process it [02:02:08]requested_item shift.opened is exist - process it [02:02:08]req_shift_opened [02:02:08]FM_GetShiftState [02:02:08]SAM_PROTO_GetShiftState [02:02:08]wFMCommunicate request_size=4 [02:02:08]MH_SAM_APDU [02:02:08]CAPDU: 80 13 01 00 [02:02:08]Write to MH i2c: E2 08 00 26 1D 80 13 01 00 00 00 00 00 C0 [02:02:08]Write i2c OK [02:02:08]MH_I2C_Read... [02:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:02:08]Read from MH i2c: E2 [02:02:08]MH_I2C_Read... [02:02:08]Read from MH i2c: E2 0E 00 [02:02:08]MH_I2C_Read... [02:02:08]Read from MH i2c: E2 0E 00 26 1D 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 81 [02:02:08]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:02:08]wFMCommunicate OK [02:02:08]SAM_PROTO_GetShiftState done [02:02:08]FM_GetShiftState done [02:02:08]req_shift_opened done [02:02:08]requested_item shift.open_date is exist - process it [02:02:08]req_shift_open_date [02:02:08]req_shift_open_date done [02:02:08]produce_requested_data done [02:02:08]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57944,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [02:02:08]process_action_free close_receipt [02:02:08]json_value_free [02:02:08]json_value_free done [02:02:08]process_json_proto returns [02:02:08]Send response to host [02:02:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57944,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [02:02:08]free response buf [02:02:08]execute_script done [02:02:08]execute_script returns [02:02:08]free content buf [02:02:08]Sock 9.Close socket [02:02:08]Sock 9.Thread stoped [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:34]accept exits with 8 [02:02:34]New connection [02:02:34]New thread 3066735972 created [02:02:34]Thread 3066592612 joined [02:02:34]Waiting for new connection... [02:02:34] Sock 8.Parse request [02:02:34]Sock 8.Check first char [02:02:34]Sock 8.First char is OK [02:02:34]request: POST /json_proto HTTP/1.0 [02:02:34]Method: POST [02:02:34]URL: /json_proto [02:02:34]Method is POST - this is cgi request [02:02:34]url: /json_proto [02:02:34]query_string will be loaded in cgi processing [02:02:34]execute_cgi json_proto POST (null) [02:02:34]execute_cgi path=json_proto method=POST [02:02:34]POST find Content-Length [02:02:34]Host: 172.17.60.68:8080 [02:02:34]Content-Length: 681 [02:02:34]Content-Type: application/json [02:02:34] [02:02:34]POST finish read [02:02:34]Found Content-Length = 681 [02:02:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 14.330, "sum" : 500.12, "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" ] } } [02:02:34]execute_script... [02:02:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 14.330, "sum" : 500.12, "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" ] } } [02:02:34]POST & json_proto [02:02:34]process_json_proto [02:02:34]json parsed OK: [02:02:34]protocol is kg_v1.0 [02:02:34]action value=close_receipt [02:02:34]process_action close_receipt [02:02:34]cmd_close_receipt [02:02:34]MH_GetDate [02:02:34]Write to MH i2c: F0 00 00 27 1D 33 [02:02:34]Write i2c OK [02:02:34]MH_I2C_Read... [02:02:34]Read from MH i2c: F0 [02:02:34]MH_I2C_Read... [02:02:34]Read from MH i2c: F0 09 00 [02:02:34]MH_I2C_Read... [02:02:34]Read from MH i2c: F0 09 00 27 1D 00 3B 24 5D 66 8D A7 02 66 FA [02:02:34]GetLastDocTimeStamp 1717380125 [02:02:34]current date 1717380155 [02:02:34]FM_GetShiftState [02:02:34]SAM_PROTO_GetShiftState [02:02:34]wFMCommunicate request_size=4 [02:02:34]MH_SAM_APDU [02:02:34]CAPDU: 80 13 01 00 [02:02:34]Write to MH i2c: E2 08 00 28 1D 80 13 01 00 00 00 00 00 C2 [02:02:34]Write i2c OK [02:02:34]MH_I2C_Read... [02:02:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:02:34]Read from MH i2c: E2 [02:02:34]MH_I2C_Read... [02:02:34]Read from MH i2c: E2 0E 00 [02:02:34]MH_I2C_Read... [02:02:34]Read from MH i2c: E2 0E 00 28 1D 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 83 [02:02:34]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:02:34]wFMCommunicate OK [02:02:34]SAM_PROTO_GetShiftState done [02:02:34]FM_GetShiftState done [02:02:34]opened in 1717373417 [02:02:34]opened+sec_in_day 1717459817 [02:02:34]quantity*price = 50011 [02:02:34]sum+1 = 50013 [02:02:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 29 03.06.2024 02:02 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57945 ФПД: 92843349725297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T020235&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57945&fm=92843349725297&tin=02508201610067®Number=0000000000151680&sum=50000 [02:02:35]StoreToDocumentArchive [02:02:35]shift 70 fd 57945 [02:02:35]save to /storage/0070/doc_00057945 [02:02:35]save last doc name /storage/0070/doc_00057945 to /storage/kkm_last_doc_name [02:02:35]save OK [02:02:35]Clear old archive folders... [02:02:35]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:02:35]tlvbuf is 01AD5E50 [02:02:35]SAM_PROTO_ClearQueue [02:02:35]wFMCommunicate request_size=4 [02:02:35]MH_SAM_APDU [02:02:35]CAPDU: 80 09 00 00 [02:02:35]Write to MH i2c: E2 08 00 35 1D 80 09 00 00 00 00 00 00 C4 [02:02:35]Write i2c OK [02:02:35]MH_I2C_Read... [02:02:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:02:35]Read from MH i2c: E2 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 03 00 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 03 00 35 1D 00 90 00 C6 [02:02:35]RAPDU: 90 00 [02:02:35]wFMCommunicate OK [02:02:35]SAM_PROTO_ClearQueue done [02:02:35]KKMCreateOFDPacket [02:02:35]OFDProtocolAddRootSTLVToBuf [02:02:35]FM_MakeSignedData [02:02:35]FM_MakeSignedData [02:02:35]SAM_PROTO_SignData [02:02:35]wFMCommunicate request_size=4 [02:02:35]MH_SAM_APDU [02:02:35]CAPDU: 80 0D 01 02 [02:02:35]Write to MH i2c: E2 08 00 36 1D 80 0D 01 02 00 00 00 00 CC [02:02:35]Write i2c OK [02:02:35]MH_I2C_Read... [02:02:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:02:35]Read from MH i2c: E2 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 03 00 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 03 00 36 1D 00 90 00 C7 [02:02:35]RAPDU: 90 00 [02:02:35]wFMCommunicate OK [02:02:35]wFMCommunicate request_size=255 [02:02:35]MH_SAM_APDU [02:02:35]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FA 37 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3B 24 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 59 E2 00 00 35 04 06 00 54 70 [02:02:35]Write to MH i2c: E2 02 01 37 1D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FA 37 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3B 24 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 59 E2 00 00 35 04 06 00 54 70 00 00 B1 [02:02:35]Write i2c OK [02:02:35]MH_I2C_Read... [02:02:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:02:35]Read from MH i2c: E2 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 03 00 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 03 00 37 1D 00 90 00 C8 [02:02:35]RAPDU: 90 00 [02:02:35]wFMCommunicate OK [02:02:35]wFMCommunicate request_size=9 [02:02:35]MH_SAM_APDU [02:02:35]CAPDU: 80 0D 02 02 04 C6 E1 50 71 [02:02:35]Write to MH i2c: E2 0C 00 38 1D 80 0D 02 02 04 00 C6 E1 50 71 00 00 3F [02:02:35]Write i2c OK [02:02:35]MH_I2C_Read... [02:02:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:02:35]Read from MH i2c: E2 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 03 00 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 03 00 38 1D 00 90 00 C9 [02:02:35]RAPDU: 90 00 [02:02:35]wFMCommunicate OK [02:02:35]wFMCommunicate request_size=4 [02:02:35]MH_SAM_APDU [02:02:35]CAPDU: 80 0D 03 02 [02:02:35]Write to MH i2c: E2 08 00 39 1D 80 0D 03 02 00 00 00 00 D1 [02:02:35]Write i2c OK [02:02:35]MH_I2C_Read... [02:02:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:02:35]Read from MH i2c: E2 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 0B 00 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 0B 00 39 1D 00 D1 4C F9 84 6C 46 15 5D 90 00 90 [02:02:35]RAPDU: D1 4C F9 84 6C 46 15 5D 90 00 [02:02:35]wFMCommunicate OK [02:02:35]SAM_PROTO_SignData done [02:02:35]FM_MakeSignedData done [02:02:35]CreateOFDProtocolMessage [02:02:35]wFMCommunicate request_size=4 [02:02:35]MH_SAM_APDU [02:02:35]CAPDU: 80 11 00 00 [02:02:35]Write to MH i2c: E2 08 00 3A 1D 80 11 00 00 00 00 00 00 D1 [02:02:35]Write i2c OK [02:02:35]MH_I2C_Read... [02:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:02:35]Read from MH i2c: E2 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 17 00 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: E2 17 00 3A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 24 [02:02:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:02:35]wFMCommunicate OK [02:02:35]CreateOFDProtocolMessage done [02:02:35]OFDSenderStorePacket 57945 [02:02:35]StoreOFDPacket docnum=57945 [02:02:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 16 23 06 01 3D A0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FA 37 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3B 24 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 59 E2 00 00 35 04 06 00 54 70 C6 E1 50 71 D1 4C F9 84 6C 46 15 5D [02:02:35]CheckFolder [02:02:35]dirname=/storage/ofd_packets [02:02:35]CheckFolder done [02:02:35]ProducePacketName [02:02:35]name=ofd_packets/00057945 [02:02:35]NVStorageSaveData ofd_packets/00057945 [02:02:35]File name is /storage/ofd_packets/00057945 [02:02:35]Write 300 bytes [02:02:35]NVStorageSaveData done [02:02:35]OFDSenderStorePacket done [02:02:35]KKMCreateOFDPacket done [02:02:35]NVStorageSaveData kkm_last_timestamp [02:02:35]File name is /storage/kkm_last_timestamp [02:02:35]Write 4 bytes [02:02:35]NVStorageSaveData done [02:02:35]ExternCall_PrintAddStr [02:02:35]wPrintStart [02:02:35]Write to MH i2c: 01 00 00 3B 1D 58 [02:02:35]Write i2c OK [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: 01 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: 01 07 00 [02:02:35]MH_I2C_Read... [02:02:35]Read from MH i2c: 01 07 00 3B 1D 00 00 00 00 00 FF 0F 6D [02:02:35]RasterBufferAndPrint [02:02:35]line Счет N : (1)543285 [02:02:35]line ИНН: 02508201610067 [02:02:35]line Контрольно-Кассовый Чек [02:02:35]line ПРОДАЖА [02:02:35]line ТРК (МРК, ГНК) : 71 [02:02:35]line Товар: 2711190000 [02:02:35]line ГАЗ-К-5 [02:02:35]line 14.330 * 34.90 [02:02:35]line = 500.12 [02:02:35]line НДС 12% НСП 1% [02:02:35]line > о реализуемом товаре [02:02:35]line ОКРУГЛЕНИЕ: -0.12 [02:02:35]line ИТОГО: 500.00 [02:02:35]line Внесено: 500.00 [02:02:35]line СДАЧА: 0.00 [02:02:35]line НСП 1% : 4.43 [02:02:35]line НДС 12% : 53.11 [02:02:35]line Наличными: 500.00 [02:02:35]line Безнал.: 0.00 [02:02:35]line Место: АЗС № 117 "Партнер Нефть" [02:02:35]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [02:02:35]line СНО: Общий режим [02:02:35]line Чек 29 03.06.2024 02:02 [02:02:35]line Смена: 70 ФФД: 1.0 [02:02:35]line ЗНМ: 0300000048 [02:02:35]line РНМ: 0000000000151680 [02:02:35]line Версия ККМ: v1.0 [02:02:35]line ФМ: 0000000000959414 [02:02:35]line ФД: 57945 [02:02:35]line ФПД: 92843349725297 [02:02:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T020235&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57945&fm=92843349725297&tin=02508201610067®Number=0000000000151680&sum=50000 [02:02:36]OFD Sender: Processing packet 57945 [packets to send 50, broken 49] [02:02:36]ProducePacketName [02:02:36]name=ofd_packets/00057945 [02:02:36]OFD Sender: To server: pG, [02:02:36]CommunicateWithHost lk.salyk.kg:30040 [02:02:36]ConnectInit lk.salyk.kg [02:02:36]written 0, free lines is 4095 [02:02:36]Connected sock=9 [02:02:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0E 01 00 00 16 23 06 01 3D A0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FA 37 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3B 24 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 59 E2 00 00 35 04 06 00 54 70 C6 E1 50 71 D1 4C F9 84 6C 46 15 5D [02:02:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 EB 15 47 00 1B E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 59 E2 00 00 F4 03 04 00 0A CF 5C 66 B6 04 01 00 00 9C 20 24 EA 87 A8 E5 89 [02:02:36]CommunicateWithHost err = 0 [02:02:36]CheckOFDResponse [02:02:36]1017 (14) - 77093643461234 [02:02:36]1041 (16) - 0000000000959414 [02:02:36]1040 (4) - 57945 [02:02:36]1012 (4) - 02.06.2024 19:59 [02:02:36]1206 (1) - 0 [02:02:36]OFD Sender: Remove packet 57945 [02:02:36]ProducePacketName [02:02:36]name=ofd_packets/00057945 [02:02:36]NVStorageDeleteData [02:02:36]Write to MH i2c: 01 00 00 66 1D 83 [02:02:36]Write i2c OK [02:02:36]MH_I2C_Read... [02:02:36]Read from MH i2c: 01 [02:02:36]MH_I2C_Read... [02:02:36]Read from MH i2c: 01 07 00 [02:02:36]MH_I2C_Read... [02:02:36]Read from MH i2c: 01 07 00 66 1D 00 00 00 00 00 9F 0C 35 [02:02:36]RasterBufferAndPrint [02:02:36]line [02:02:36]line [02:02:36]line [02:02:36]line [02:02:36]line [02:02:36]written 0, free lines is 3235 [02:02:36]MH_Cut [02:02:36]Write to MH i2c: D1 01 00 6D 1D 01 5C [02:02:36]Write i2c OK [02:02:36]MH_I2C_Read... [02:02:36]Read from MH i2c: D1 [02:02:36]MH_I2C_Read... [02:02:36]Read from MH i2c: D1 01 00 [02:02:36]MH_I2C_Read... [02:02:36]Read from MH i2c: D1 01 00 6D 1D 00 5B [02:02:36]Write to MH i2c: 01 00 00 6E 1D 8B [02:02:36]Write i2c OK [02:02:36]MH_I2C_Read... [02:02:36]OFD Sender: No OFD packet to send [02:02:37]*** Cut start [02:02:37]*** Partial cut [02:02:37]*** CUTSNS_PIN = 1 [02:02:37]*** CUTSNS_PIN = 0 [02:02:37]*** Brake cut motor [02:02:38]Read from MH i2c: 01 [02:02:38]MH_I2C_Read... [02:02:38]*** Stop cut motor [02:02:38]*** Cut end [02:02:38]Read from MH i2c: 01 07 00 [02:02:38]MH_I2C_Read... [02:02:38]Read from MH i2c: 01 07 00 6E 1D 00 00 00 00 00 FF 0F A0 [02:02:38]process_action close_receipt done [02:02:38]requested_data is exist [02:02:38]produce_requested_data [02:02:38]requested_item fm.sn is exist - process it [02:02:38]wFMCommunicate request_size=4 [02:02:38]MH_SAM_APDU [02:02:38]CAPDU: 80 11 00 00 [02:02:38]Write to MH i2c: E2 08 00 6F 1D 80 11 00 00 00 00 00 00 06 [02:02:38]Write i2c OK [02:02:38]MH_I2C_Read... [02:02:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:02:38]Read from MH i2c: E2 [02:02:38]MH_I2C_Read... [02:02:38]Read from MH i2c: E2 17 00 [02:02:38]MH_I2C_Read... [02:02:38]Read from MH i2c: E2 17 00 6F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 59 [02:02:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:02:38]wFMCommunicate OK [02:02:38]requested_item fd.num is exist - process it [02:02:38]SAM_PROTO_GetFieldsCounters [02:02:38]wFMCommunicate request_size=4 [02:02:38]MH_SAM_APDU [02:02:38]CAPDU: 80 13 00 00 [02:02:38]Write to MH i2c: E2 08 00 70 1D 80 13 00 00 00 00 00 00 09 [02:02:38]Write i2c OK [02:02:38]MH_I2C_Read... [02:02:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:02:38]Read from MH i2c: E2 [02:02:38]MH_I2C_Read... [02:02:38]Read from MH i2c: E2 62 00 [02:02:38]MH_I2C_Read... [02:02:38]Read from MH i2c: E2 62 00 70 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 59 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [02:02:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 59 E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:02:38]wFMCommunicate OK [02:02:38]SAM_PROTO_GetFieldsCounters done [02:02:38]requested_item shift.num is exist - process it [02:02:38]requested_item shift.opened is exist - process it [02:02:38]req_shift_opened [02:02:38]FM_GetShiftState [02:02:38]SAM_PROTO_GetShiftState [02:02:38]wFMCommunicate request_size=4 [02:02:38]MH_SAM_APDU [02:02:38]CAPDU: 80 13 01 00 [02:02:38]Write to MH i2c: E2 08 00 71 1D 80 13 01 00 00 00 00 00 0B [02:02:38]Write i2c OK [02:02:38]MH_I2C_Read... [02:02:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:02:38]Read from MH i2c: E2 [02:02:38]MH_I2C_Read... [02:02:38]Read from MH i2c: E2 0E 00 [02:02:38]MH_I2C_Read... [02:02:38]Read from MH i2c: E2 0E 00 71 1D 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 CC [02:02:38]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:02:38]wFMCommunicate OK [02:02:38]SAM_PROTO_GetShiftState done [02:02:38]FM_GetShiftState done [02:02:38]req_shift_opened done [02:02:38]requested_item shift.open_date is exist - process it [02:02:38]req_shift_open_date [02:02:38]req_shift_open_date done [02:02:38]produce_requested_data done [02:02:38]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57945,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [02:02:38]process_action_free close_receipt [02:02:38]json_value_free [02:02:38]json_value_free done [02:02:38]process_json_proto returns [02:02:38]Send response to host [02:02:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57945,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [02:02:38]free response buf [02:02:38]execute_script done [02:02:38]execute_script returns [02:02:38]free content buf [02:02:38]Sock 8.Close socket [02:02:38]Sock 8.Thread stoped [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:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]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:12]accept exits with 10 [02:05:12]New connection [02:05:12]New thread 3066592612 created [02:05:12]Thread 3066735972 joined [02:05:12]Waiting for new connection... [02:05:12] Sock 10.Parse request [02:05:12]Sock 10.Check first char [02:05:12]Sock 10.First char is OK [02:05:12]request: POST /json_proto HTTP/1.0 [02:05:12]Method: POST [02:05:12]URL: /json_proto [02:05:12]Method is POST - this is cgi request [02:05:12]url: /json_proto [02:05:12]query_string will be loaded in cgi processing [02:05:12]execute_cgi json_proto POST (null) [02:05:12]execute_cgi path=json_proto method=POST [02:05:12]POST find Content-Length [02:05:12]Host: 172.17.60.68:8080 [02:05:12]Content-Length: 677 [02:05:12]Content-Type: application/json [02:05:12] [02:05:12]POST finish read [02:05:12]Found Content-Length = 677 [02:05:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543288", "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.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:05:12]execute_script... [02:05: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)543288", "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.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:05:12]POST & json_proto [02:05:12]process_json_proto [02:05:12]json parsed OK: [02:05:12]protocol is kg_v1.0 [02:05:12]action value=close_receipt [02:05:12]process_action close_receipt [02:05:12]cmd_close_receipt [02:05:12]MH_GetDate [02:05:12]Write to MH i2c: F0 00 00 72 1D 7E [02:05:12]Write i2c OK [02:05:12]MH_I2C_Read... [02:05:12]Read from MH i2c: F0 [02:05:12]MH_I2C_Read... [02:05:12]Read from MH i2c: F0 09 00 [02:05:12]MH_I2C_Read... [02:05:12]Read from MH i2c: F0 09 00 72 1D 00 DA 24 5D 66 8D A7 02 66 E4 [02:05:12]GetLastDocTimeStamp 1717380155 [02:05:12]current date 1717380314 [02:05:12]FM_GetShiftState [02:05:12]SAM_PROTO_GetShiftState [02:05:12]wFMCommunicate request_size=4 [02:05:12]MH_SAM_APDU [02:05:12]CAPDU: 80 13 01 00 [02:05:12]Write to MH i2c: E2 08 00 73 1D 80 13 01 00 00 00 00 00 0D [02:05:12]Write i2c OK [02:05:12]MH_I2C_Read... [02:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:05:12]Read from MH i2c: E2 [02:05:12]MH_I2C_Read... [02:05:12]Read from MH i2c: E2 0E 00 [02:05:12]MH_I2C_Read... [02:05:12]Read from MH i2c: E2 0E 00 73 1D 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 CE [02:05:12]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:05:12]wFMCommunicate OK [02:05:12]SAM_PROTO_GetShiftState done [02:05:12]FM_GetShiftState done [02:05:12]opened in 1717373417 [02:05:12]opened+sec_in_day 1717459817 [02:05:12]quantity*price = 29034 [02:05:12]sum+1 = 29036 [02:05:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 30 03.06.2024 02:05 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 ФМ: 0000000000959414 ФД: 57946 ФПД: 60690998450243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T020514&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57946&fm=60690998450243&tin=02508201610067®Number=0000000000151680&sum=29000 [02:05:13]StoreToDocumentArchive [02:05:13]shift 70 fd 57946 [02:05:13]save to /storage/0070/doc_00057946 [02:05:13]save last doc name /storage/0070/doc_00057946 to /storage/kkm_last_doc_name [02:05:13]save OK [02:05:13]Clear old archive folders... [02:05:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:05:13]tlvbuf is 01AD5CE0 [02:05:13]SAM_PROTO_ClearQueue [02:05:13]wFMCommunicate request_size=4 [02:05:13]MH_SAM_APDU [02:05:13]CAPDU: 80 09 00 00 [02:05:13]Write to MH i2c: E2 08 00 80 1D 80 09 00 00 00 00 00 00 0F [02:05:13]Write i2c OK [02:05:13]MH_I2C_Read... [02:05:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:05:13]Read from MH i2c: E2 [02:05:13]MH_I2C_Read... [02:05:13]Read from MH i2c: E2 03 00 [02:05:13]MH_I2C_Read... [02:05:13]Read from MH i2c: E2 03 00 80 1D 00 90 00 11 [02:05:13]RAPDU: 90 00 [02:05:13]wFMCommunicate OK [02:05:13]SAM_PROTO_ClearQueue done [02:05:13]KKMCreateOFDPacket [02:05:13]OFDProtocolAddRootSTLVToBuf [02:05:13]FM_MakeSignedData [02:05:13]FM_MakeSignedData [02:05:13]SAM_PROTO_SignData [02:05:13]wFMCommunicate request_size=4 [02:05:13]MH_SAM_APDU [02:05:13]CAPDU: 80 0D 01 02 [02:05:13]Write to MH i2c: E2 08 00 81 1D 80 0D 01 02 00 00 00 00 17 [02:05:13]Write i2c OK [02:05:13]MH_I2C_Read... [02:05:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:05:13]Read from MH i2c: E2 [02:05:13]MH_I2C_Read... [02:05:13]Read from MH i2c: E2 03 00 [02:05:13]MH_I2C_Read... [02:05:13]Read from MH i2c: E2 03 00 81 1D 00 90 00 12 [02:05:13]RAPDU: 90 00 [02:05:13]wFMCommunicate OK [02:05:13]wFMCommunicate request_size=255 [02:05:13]MH_SAM_APDU [02:05:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 DA 24 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5A E2 00 00 35 04 06 00 37 [02:05:13]Write to MH i2c: E2 02 01 82 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 DA 24 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5A E2 00 00 35 04 06 00 37 00 00 5C [02:05:13]Write i2c OK [02:05:13]MH_I2C_Read... [02:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:05:14]Read from MH i2c: E2 [02:05:14]MH_I2C_Read... [02:05:14]Read from MH i2c: E2 03 00 [02:05:14]MH_I2C_Read... [02:05:14]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [02:05:14]RAPDU: 90 00 [02:05:14]wFMCommunicate OK [02:05:14]wFMCommunicate request_size=10 [02:05:14]MH_SAM_APDU [02:05:14]CAPDU: 80 0D 02 02 05 32 B9 67 58 43 [02:05:14]Write to MH i2c: E2 0D 00 83 1D 80 0D 02 02 05 00 32 B9 67 58 43 00 00 11 [02:05:14]Write i2c OK [02:05:14]MH_I2C_Read... [02:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:05:14]Read from MH i2c: E2 [02:05:14]MH_I2C_Read... [02:05:14]Read from MH i2c: E2 03 00 [02:05:14]MH_I2C_Read... [02:05:14]Read from MH i2c: E2 03 00 83 1D 00 90 00 14 [02:05:14]RAPDU: 90 00 [02:05:14]wFMCommunicate OK [02:05:14]wFMCommunicate request_size=4 [02:05:14]MH_SAM_APDU [02:05:14]CAPDU: 80 0D 03 02 [02:05:14]Write to MH i2c: E2 08 00 84 1D 80 0D 03 02 00 00 00 00 1C [02:05:14]Write i2c OK [02:05:14]MH_I2C_Read... [02:05:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:05:14]Read from MH i2c: E2 [02:05:14]MH_I2C_Read... [02:05:14]Read from MH i2c: E2 0B 00 [02:05:14]MH_I2C_Read... [02:05:14]Read from MH i2c: E2 0B 00 84 1D 00 46 D2 80 7C 60 CB 21 8A 90 00 07 [02:05:14]RAPDU: 46 D2 80 7C 60 CB 21 8A 90 00 [02:05:14]wFMCommunicate OK [02:05:14]SAM_PROTO_SignData done [02:05:14]FM_MakeSignedData done [02:05:14]CreateOFDProtocolMessage [02:05:14]wFMCommunicate request_size=4 [02:05:14]MH_SAM_APDU [02:05:14]CAPDU: 80 11 00 00 [02:05:14]Write to MH i2c: E2 08 00 85 1D 80 11 00 00 00 00 00 00 1C [02:05:14]Write i2c OK [02:05:14]MH_I2C_Read... [02:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:05:14]Read from MH i2c: E2 [02:05:14]MH_I2C_Read... [02:05:14]Read from MH i2c: E2 17 00 [02:05:14]MH_I2C_Read... [02:05:14]Read from MH i2c: E2 17 00 85 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 6F [02:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:05:14]wFMCommunicate OK [02:05:14]CreateOFDProtocolMessage done [02:05:14]OFDSenderStorePacket 57946 [02:05:14]StoreOFDPacket docnum=57946 [02:05:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 77 70 07 01 88 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 DA 24 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5A E2 00 00 35 04 06 00 37 32 B9 67 58 43 46 D2 80 7C 60 CB 21 8A [02:05:14]CheckFolder [02:05:14]dirname=/storage/ofd_packets [02:05:14]CheckFolder done [02:05:14]ProducePacketName [02:05:14]name=ofd_packets/00057946 [02:05:14]NVStorageSaveData ofd_packets/00057946 [02:05:14]File name is /storage/ofd_packets/00057946 [02:05:14]Write 301 bytes [02:05:14]NVStorageSaveData done [02:05:14]OFDSenderStorePacket done [02:05:14]KKMCreateOFDPacket done [02:05:14]NVStorageSaveData kkm_last_timestamp [02:05:14]File name is /storage/kkm_last_timestamp [02:05:14]Write 4 bytes [02:05:14]NVStorageSaveData done [02:05:14]ExternCall_PrintAddStr [02:05:14]wPrintStart [02:05:14]Write to MH i2c: 01 00 00 86 1D A3 [02:05:14]Write i2c OK [02:05:14]MH_I2C_Read... [02:05:14]Read from MH i2c: 01 [02:05:14]MH_I2C_Read... [02:05:14]Read from MH i2c: 01 07 00 [02:05:14]MH_I2C_Read... [02:05:14]Read from MH i2c: 01 07 00 86 1D 00 00 00 00 00 FF 0F B8 [02:05:14]RasterBufferAndPrint [02:05:14]line Счет N : (1)543288 [02:05:14]line ИНН: 02508201610067 [02:05:14]line Контрольно-Кассовый Чек [02:05:14]line ПРОДАЖА [02:05:14]line ТРК (МРК, ГНК) : 12 [02:05:14]line Товар: 2710124130 [02:05:14]line Аи-92-К-5 [02:05:14]line 4.340 * 66.90 [02:05:14]line = 290.35 [02:05:14]line НДС 12% НСП 1% [02:05:14]line > о реализуемом товаре [02:05:14]line ОКРУГЛЕНИЕ: -0.35 [02:05:14]line ИТОГО: 290.00 [02:05:14]line Внесено: 290.00 [02:05:14]line СДАЧА: 0.00 [02:05:14]line НСП 1% : 2.57 [02:05:14]line НДС 12% : 30.83 [02:05:14]line Наличными: 290.00 [02:05:14]line Безнал.: 0.00 [02:05:14]line Место: АЗС № 117 "Партнер Нефть" [02:05:14]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [02:05:14]line СНО: Общий режим [02:05:14]line Чек 30 03.06.2024 02:05 [02:05:14]line Смена: 70 ФФД: 1.0 [02:05:14]line ЗНМ: 0300000048 [02:05:14]line РНМ: 0000000000151680 [02:05:14]line Версия ККМ: v1.0 [02:05:14]line ФМ: 0000000000959414 [02:05:14]line ФД: 57946 [02:05:14]line ФПД: 60690998450243 [02:05:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T020514&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57946&fm=60690998450243&tin=02508201610067®Number=0000000000151680&sum=29000 [02:05:14]OFD Sender: Processing packet 57946 [packets to send 50, broken 49] [02:05:14]ProducePacketName [02:05:14]name=ofd_packets/00057946 [02:05:14]OFD Sender: To server: pG, [02:05:14]CommunicateWithHost lk.salyk.kg:30040 [02:05:14]ConnectInit lk.salyk.kg [02:05:14]written 0, free lines is 4095 [02:05:14]Connected sock=9 [02:05:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 77 70 07 01 88 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 DA 24 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5A E2 00 00 35 04 06 00 37 32 B9 67 58 43 46 D2 80 7C 60 CB 21 8A [02:05:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 AD A0 47 00 17 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5A E2 00 00 F4 03 04 00 A9 CF 5C 66 B6 04 01 00 00 2A 3D D3 3B 0B 0D 22 76 [02:05:14]CommunicateWithHost err = 0 [02:05:14]CheckOFDResponse [02:05:14]1017 (14) - 77093643461234 [02:05:14]1041 (16) - 0000000000959414 [02:05:14]1040 (4) - 57946 [02:05:14]1012 (4) - 02.06.2024 20:01 [02:05:14]1206 (1) - 0 [02:05:14]OFD Sender: Remove packet 57946 [02:05:14]ProducePacketName [02:05:14]name=ofd_packets/00057946 [02:05:14]NVStorageDeleteData [02:05:15]Write to MH i2c: 01 00 00 B1 1D CE [02:05:15]Write i2c OK [02:05:15]MH_I2C_Read... [02:05:15]Read from MH i2c: 01 [02:05:15]MH_I2C_Read... [02:05:15]Read from MH i2c: 01 07 00 [02:05:15]MH_I2C_Read... [02:05:15]Read from MH i2c: 01 07 00 B1 1D 00 00 00 00 00 AF 0C 90 [02:05:15]RasterBufferAndPrint [02:05:15]line [02:05:15]line [02:05:15]line [02:05:15]line [02:05:15]line [02:05:15]written 0, free lines is 3253 [02:05:15]MH_Cut [02:05:15]Write to MH i2c: D1 01 00 B8 1D 01 A7 [02:05:15]Write i2c OK [02:05:15]MH_I2C_Read... [02:05:15]Read from MH i2c: D1 [02:05:15]MH_I2C_Read... [02:05:15]Read from MH i2c: D1 01 00 [02:05:15]MH_I2C_Read... [02:05:15]Read from MH i2c: D1 01 00 B8 1D 00 A6 [02:05:15]Write to MH i2c: 01 00 00 B9 1D D6 [02:05:15]Write i2c OK [02:05:15]MH_I2C_Read... [02:05:15]OFD Sender: No OFD packet to send [02:05:15]*** Cut start [02:05:15]*** Partial cut [02:05:15]*** CUTSNS_PIN = 1 [02:05:16]*** CUTSNS_PIN = 0 [02:05:16]*** Brake cut motor [02:05:16]Read from MH i2c: 01 [02:05:16]MH_I2C_Read... [02:05:16]*** Stop cut motor [02:05:16]*** Cut end [02:05:16]Read from MH i2c: 01 07 00 [02:05:16]MH_I2C_Read... [02:05:16]Read from MH i2c: 01 07 00 B9 1D 00 00 00 00 00 FF 0F EB [02:05:16]process_action close_receipt done [02:05:16]requested_data is exist [02:05:16]produce_requested_data [02:05:16]requested_item fm.sn is exist - process it [02:05:16]wFMCommunicate request_size=4 [02:05:16]MH_SAM_APDU [02:05:16]CAPDU: 80 11 00 00 [02:05:16]Write to MH i2c: E2 08 00 BA 1D 80 11 00 00 00 00 00 00 51 [02:05:16]Write i2c OK [02:05:16]MH_I2C_Read... [02:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:05:16]Read from MH i2c: E2 [02:05:16]MH_I2C_Read... [02:05:16]Read from MH i2c: E2 17 00 [02:05:16]MH_I2C_Read... [02:05:16]Read from MH i2c: E2 17 00 BA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 A4 [02:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:05:16]wFMCommunicate OK [02:05:16]requested_item fd.num is exist - process it [02:05:16]SAM_PROTO_GetFieldsCounters [02:05:16]wFMCommunicate request_size=4 [02:05:16]MH_SAM_APDU [02:05:16]CAPDU: 80 13 00 00 [02:05:16]Write to MH i2c: E2 08 00 BB 1D 80 13 00 00 00 00 00 00 54 [02:05:16]Write i2c OK [02:05:16]MH_I2C_Read... [02:05:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:05:16]Read from MH i2c: E2 [02:05:16]MH_I2C_Read... [02:05:16]Read from MH i2c: E2 62 00 [02:05:16]MH_I2C_Read... [02:05:16]Read from MH i2c: E2 62 00 BB 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 5A E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [02:05:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 5A E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:05:16]wFMCommunicate OK [02:05:16]SAM_PROTO_GetFieldsCounters done [02:05:16]requested_item shift.num is exist - process it [02:05:16]requested_item shift.opened is exist - process it [02:05:16]req_shift_opened [02:05:16]FM_GetShiftState [02:05:16]SAM_PROTO_GetShiftState [02:05:16]wFMCommunicate request_size=4 [02:05:16]MH_SAM_APDU [02:05:16]CAPDU: 80 13 01 00 [02:05:16]Write to MH i2c: E2 08 00 BC 1D 80 13 01 00 00 00 00 00 56 [02:05:16]Write i2c OK [02:05:16]MH_I2C_Read... [02:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:05:16]Read from MH i2c: E2 [02:05:16]MH_I2C_Read... [02:05:16]Read from MH i2c: E2 0E 00 [02:05:16]MH_I2C_Read... [02:05:16]Read from MH i2c: E2 0E 00 BC 1D 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 17 [02:05:16]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:05:16]wFMCommunicate OK [02:05:16]SAM_PROTO_GetShiftState done [02:05:16]FM_GetShiftState done [02:05:16]req_shift_opened done [02:05:16]requested_item shift.open_date is exist - process it [02:05:16]req_shift_open_date [02:05:16]req_shift_open_date done [02:05:16]produce_requested_data done [02:05:16]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57946,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [02:05:16]process_action_free close_receipt [02:05:16]json_value_free [02:05:16]json_value_free done [02:05:16]process_json_proto returns [02:05:16]Send response to host [02:05:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57946,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [02:05:16]free response buf [02:05:16]execute_script done [02:05:16]execute_script returns [02:05:16]free content buf [02:05:16]Sock 10.Close socket [02:05:16]Sock 10.Thread stoped [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:25]accept exits with 8 [02:21:25]New connection [02:21:25]New thread 3066735972 created [02:21:25]Thread 3066592612 joined [02:21:25]Waiting for new connection... [02:21:25] Sock 8.Parse request [02:21:25]Sock 8.Check first char [02:21:25]Sock 8.First char is OK [02:21:25]request: POST /json_proto HTTP/1.0 [02:21:25]Method: POST [02:21:25]URL: /json_proto [02:21:25]Method is POST - this is cgi request [02:21:25]url: /json_proto [02:21:25]query_string will be loaded in cgi processing [02:21:25]execute_cgi json_proto POST (null) [02:21:25]execute_cgi path=json_proto method=POST [02:21:25]POST find Content-Length [02:21:25]Host: 172.17.60.68:8080 [02:21:25]Content-Length: 836 [02:21:25]Content-Type: application/json [02:21:25] [02:21:25]POST finish read [02:21:25]Found Content-Length = 836 [02:21:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:21:25]execute_script... [02:21:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:21:25]POST & json_proto [02:21:25]process_json_proto [02:21:25]json parsed OK: [02:21:25]protocol is kg_v1.0 [02:21:25]action value=close_receipt [02:21:25]process_action close_receipt [02:21:25]cmd_close_receipt [02:21:25]MH_GetDate [02:21:25]Write to MH i2c: F0 00 00 BD 1D C9 [02:21:25]Write i2c OK [02:21:25]MH_I2C_Read... [02:21:25]Read from MH i2c: F0 [02:21:25]MH_I2C_Read... [02:21:25]Read from MH i2c: F0 09 00 [02:21:25]MH_I2C_Read... [02:21:25]Read from MH i2c: F0 09 00 BD 1D 00 A6 28 5D 66 8D A7 02 66 FF [02:21:25]GetLastDocTimeStamp 1717380314 [02:21:25]current date 1717381286 [02:21:25]FM_GetShiftState [02:21:25]SAM_PROTO_GetShiftState [02:21:25]wFMCommunicate request_size=4 [02:21:25]MH_SAM_APDU [02:21:25]CAPDU: 80 13 01 00 [02:21:25]Write to MH i2c: E2 08 00 BE 1D 80 13 01 00 00 00 00 00 58 [02:21:25]Write i2c OK [02:21:25]MH_I2C_Read... [02:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:21:25]Read from MH i2c: E2 [02:21:25]MH_I2C_Read... [02:21:25]Read from MH i2c: E2 0E 00 [02:21:25]MH_I2C_Read... [02:21:25]Read from MH i2c: E2 0E 00 BE 1D 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 19 [02:21:25]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:21:25]wFMCommunicate OK [02:21:25]SAM_PROTO_GetShiftState done [02:21:25]FM_GetShiftState done [02:21:25]opened in 1717373417 [02:21:25]opened+sec_in_day 1717459817 [02:21:25]quantity*price = 100016 [02:21:25]sum+1 = 100018 [02:21:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.17 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.17 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 31 03.06.2024 02:21 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000000959414 ФД: 57947 ФПД: 67619909343181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T022127&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57947&fm=67619909343181&tin=02508201610067®Number=0000000000151680&sum=100017 [02:21:26]StoreToDocumentArchive [02:21:26]shift 70 fd 57947 [02:21:26]save to /storage/0070/doc_00057947 [02:21:26]save last doc name /storage/0070/doc_00057947 to /storage/kkm_last_doc_name [02:21:26]save OK [02:21:26]Clear old archive folders... [02:21:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:21:26]tlvbuf is B6F23870 [02:21:26]SAM_PROTO_ClearQueue [02:21:26]wFMCommunicate request_size=4 [02:21:26]MH_SAM_APDU [02:21:26]CAPDU: 80 09 00 00 [02:21:26]Write to MH i2c: E2 08 00 CB 1D 80 09 00 00 00 00 00 00 5A [02:21:26]Write i2c OK [02:21:26]MH_I2C_Read... [02:21:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:21:26]Read from MH i2c: E2 [02:21:26]MH_I2C_Read... [02:21:26]Read from MH i2c: E2 03 00 [02:21:26]MH_I2C_Read... [02:21:26]Read from MH i2c: E2 03 00 CB 1D 00 90 00 5C [02:21:26]RAPDU: 90 00 [02:21:26]wFMCommunicate OK [02:21:26]SAM_PROTO_ClearQueue done [02:21:26]KKMCreateOFDPacket [02:21:26]OFDProtocolAddRootSTLVToBuf [02:21:26]FM_MakeSignedData [02:21:26]FM_MakeSignedData [02:21:26]SAM_PROTO_SignData [02:21:26]wFMCommunicate request_size=4 [02:21:26]MH_SAM_APDU [02:21:26]CAPDU: 80 0D 01 02 [02:21:26]Write to MH i2c: E2 08 00 CC 1D 80 0D 01 02 00 00 00 00 62 [02:21:26]Write i2c OK [02:21:26]MH_I2C_Read... [02:21:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:21:26]Read from MH i2c: E2 [02:21:26]MH_I2C_Read... [02:21:26]Read from MH i2c: E2 03 00 [02:21:26]MH_I2C_Read... [02:21:26]Read from MH i2c: E2 03 00 CC 1D 00 90 00 5D [02:21:26]RAPDU: 90 00 [02:21:26]wFMCommunicate OK [02:21:26]wFMCommunicate request_size=255 [02:21:26]MH_SAM_APDU [02:21:26]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 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 A7 28 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5B E2 00 00 35 04 06 00 [02:21:26]Write to MH i2c: E2 02 01 CD 1D 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 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 A7 28 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5B E2 00 00 35 04 06 00 00 00 62 [02:21:26]Write i2c OK [02:21:26]MH_I2C_Read... [02:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:21:27]Read from MH i2c: E2 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 03 00 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 03 00 CD 1D 00 90 00 5E [02:21:27]RAPDU: 90 00 [02:21:27]wFMCommunicate OK [02:21:27]wFMCommunicate request_size=11 [02:21:27]MH_SAM_APDU [02:21:27]CAPDU: 80 0D 02 02 06 3D 7F FC AD 17 CD [02:21:27]Write to MH i2c: E2 0E 00 CE 1D 80 0D 02 02 06 00 3D 7F FC AD 17 CD 00 00 BA [02:21:27]Write i2c OK [02:21:27]MH_I2C_Read... [02:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:21:27]Read from MH i2c: E2 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 03 00 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 03 00 CE 1D 00 90 00 5F [02:21:27]RAPDU: 90 00 [02:21:27]wFMCommunicate OK [02:21:27]wFMCommunicate request_size=4 [02:21:27]MH_SAM_APDU [02:21:27]CAPDU: 80 0D 03 02 [02:21:27]Write to MH i2c: E2 08 00 CF 1D 80 0D 03 02 00 00 00 00 67 [02:21:27]Write i2c OK [02:21:27]MH_I2C_Read... [02:21:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:21:27]Read from MH i2c: E2 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 0B 00 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 0B 00 CF 1D 00 97 A4 16 17 2C AA 23 BC 90 00 85 [02:21:27]RAPDU: 97 A4 16 17 2C AA 23 BC 90 00 [02:21:27]wFMCommunicate OK [02:21:27]SAM_PROTO_SignData done [02:21:27]FM_MakeSignedData done [02:21:27]CreateOFDProtocolMessage [02:21:27]wFMCommunicate request_size=4 [02:21:27]MH_SAM_APDU [02:21:27]CAPDU: 80 11 00 00 [02:21:27]Write to MH i2c: E2 08 00 D0 1D 80 11 00 00 00 00 00 00 67 [02:21:27]Write i2c OK [02:21:27]MH_I2C_Read... [02:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:21:27]Read from MH i2c: E2 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 17 00 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 17 00 D0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 BA [02:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:21:27]wFMCommunicate OK [02:21:27]CreateOFDProtocolMessage done [02:21:27]OFDSenderStorePacket 57947 [02:21:27]StoreOFDPacket docnum=57947 [02:21:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 1A 3E 08 01 DB 0B 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 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 A7 28 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5B E2 00 00 35 04 06 00 3D 7F FC AD 17 CD 97 A4 16 17 2C AA 23 BC [02:21:27]CheckFolder [02:21:27]dirname=/storage/ofd_packets [02:21:27]CheckFolder done [02:21:27]ProducePacketName [02:21:27]name=ofd_packets/00057947 [02:21:27]NVStorageSaveData ofd_packets/00057947 [02:21:27]File name is /storage/ofd_packets/00057947 [02:21:27]Write 302 bytes [02:21:27]NVStorageSaveData done [02:21:27]OFDSenderStorePacket done [02:21:27]KKMCreateOFDPacket done [02:21:27]NVStorageSaveData kkm_last_timestamp [02:21:27]File name is /storage/kkm_last_timestamp [02:21:27]Write 4 bytes [02:21:27]NVStorageSaveData done [02:21:27]ExternCall_PrintAddStr [02:21:27]wPrintStart [02:21:27]Write to MH i2c: 01 00 00 D1 1D EE [02:21:27]Write i2c OK [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: 01 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: 01 07 00 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: 01 07 00 D1 1D 00 00 00 00 00 FF 0F 03 [02:21:27]RasterBufferAndPrint [02:21:27]line Счет N : (1)543289 [02:21:27]line ИНН: 02508201610067 [02:21:27]line Контрольно-Кассовый Чек [02:21:27]line ПРОДАЖА [02:21:27]line ТРК (МРК, ГНК) : 24 [02:21:27]line Товар: 2710124130 [02:21:27]line SUPER 92-К-5 [02:21:27]line 14.730 * 67.90 [02:21:27]line = 1000.17 [02:21:27]line НДС 12% НСП 1% [02:21:27]line > о реализуемом товаре [02:21:27]line ИТОГО: 1000.17 [02:21:27]line НСП 1% : 8.85 [02:21:27]line НДС 12% : 106.21 [02:21:27]line Наличными: 0.00 [02:21:27]line Безнал.: 1000.17 [02:21:27]line Место: АЗС № 117 "Партнер Нефть" [02:21:27]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [02:21:27]line СНО: Общий режим [02:21:27]line Чек 31 03.06.2024 02:21 [02:21:27]line Смена: 70 ФФД: 1.0 [02:21:27]line ЗНМ: 0300000048 [02:21:27]line РНМ: 0000000000151680 [02:21:27]line Версия ККМ: v1.0 [02:21:27]line Платежная система: АКБ Кыргызстан [02:21:27]line ФМ: 0000000000959414 [02:21:27]line ФД: 57947 [02:21:27]line ФПД: 67619909343181 [02:21:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T022127&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57947&fm=67619909343181&tin=02508201610067®Number=0000000000151680&sum=100017 [02:21:27]OFD Sender: Processing packet 57947 [packets to send 50, broken 49] [02:21:27]ProducePacketName [02:21:27]name=ofd_packets/00057947 [02:21:27]OFD Sender: To server: pG, [02:21:27]CommunicateWithHost lk.salyk.kg:30040 [02:21:27]ConnectInit lk.salyk.kg [02:21:27]written 0, free lines is 4095 [02:21:27]Connected sock=9 [02:21:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 01 00 00 1A 3E 08 01 DB 0B 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 8A 39 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 A7 28 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5B E2 00 00 35 04 06 00 3D 7F FC AD 17 CD 97 A4 16 17 2C AA 23 BC [02:21:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 53 AE 47 00 D8 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5B E2 00 00 F4 03 04 00 76 D3 5C 66 B6 04 01 00 00 4F C9 5F 53 B5 0E D6 77 [02:21:27]CommunicateWithHost err = 0 [02:21:27]CheckOFDResponse [02:21:27]1017 (14) - 77093643461234 [02:21:27]1041 (16) - 0000000000959414 [02:21:27]1040 (4) - 57947 [02:21:27]1012 (4) - 02.06.2024 20:17 [02:21:27]1206 (1) - 0 [02:21:27]OFD Sender: Remove packet 57947 [02:21:27]ProducePacketName [02:21:27]name=ofd_packets/00057947 [02:21:27]NVStorageDeleteData [02:21:27]Write to MH i2c: 01 00 00 FB 1D 18 [02:21:27]Write i2c OK [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: 01 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: 01 07 00 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: 01 07 00 FB 1D 00 00 00 00 00 B9 0C E4 [02:21:27]RasterBufferAndPrint [02:21:27]line [02:21:27]line [02:21:27]line [02:21:27]line [02:21:27]line [02:21:27]written 0, free lines is 3262 [02:21:27]MH_Cut [02:21:27]Write to MH i2c: D1 01 00 02 1E 01 F2 [02:21:27]Write i2c OK [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: D1 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: D1 01 00 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: D1 01 00 02 1E 00 F1 [02:21:27]Write to MH i2c: 01 00 00 03 1E 21 [02:21:27]Write i2c OK [02:21:27]MH_I2C_Read... [02:21:28]OFD Sender: No OFD packet to send [02:21:28]*** Cut start [02:21:28]*** Partial cut [02:21:28]*** CUTSNS_PIN = 1 [02:21:28]*** CUTSNS_PIN = 0 [02:21:29]*** Brake cut motor [02:21:29]Read from MH i2c: 01 [02:21:29]MH_I2C_Read... [02:21:29]*** Stop cut motor [02:21:29]*** Cut end [02:21:29]Read from MH i2c: 01 07 00 [02:21:29]MH_I2C_Read... [02:21:29]Read from MH i2c: 01 07 00 03 1E 00 00 00 00 00 FF 0F 36 [02:21:29]process_action close_receipt done [02:21:29]requested_data is exist [02:21:29]produce_requested_data [02:21:29]requested_item fm.sn is exist - process it [02:21:29]wFMCommunicate request_size=4 [02:21:29]MH_SAM_APDU [02:21:29]CAPDU: 80 11 00 00 [02:21:29]Write to MH i2c: E2 08 00 04 1E 80 11 00 00 00 00 00 00 9C [02:21:29]Write i2c OK [02:21:29]MH_I2C_Read... [02:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:21:29]Read from MH i2c: E2 [02:21:29]MH_I2C_Read... [02:21:29]Read from MH i2c: E2 17 00 [02:21:29]MH_I2C_Read... [02:21:29]Read from MH i2c: E2 17 00 04 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 EF [02:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:21:29]wFMCommunicate OK [02:21:29]requested_item fd.num is exist - process it [02:21:29]SAM_PROTO_GetFieldsCounters [02:21:29]wFMCommunicate request_size=4 [02:21:29]MH_SAM_APDU [02:21:29]CAPDU: 80 13 00 00 [02:21:29]Write to MH i2c: E2 08 00 05 1E 80 13 00 00 00 00 00 00 9F [02:21:29]Write i2c OK [02:21:29]MH_I2C_Read... [02:21:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:21:29]Read from MH i2c: E2 [02:21:29]MH_I2C_Read... [02:21:29]Read from MH i2c: E2 62 00 [02:21:29]MH_I2C_Read... [02:21:29]Read from MH i2c: E2 62 00 05 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 5B E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [02:21:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 5B E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:21:29]wFMCommunicate OK [02:21:29]SAM_PROTO_GetFieldsCounters done [02:21:29]requested_item shift.num is exist - process it [02:21:29]requested_item shift.opened is exist - process it [02:21:29]req_shift_opened [02:21:29]FM_GetShiftState [02:21:29]SAM_PROTO_GetShiftState [02:21:29]wFMCommunicate request_size=4 [02:21:29]MH_SAM_APDU [02:21:29]CAPDU: 80 13 01 00 [02:21:29]Write to MH i2c: E2 08 00 06 1E 80 13 01 00 00 00 00 00 A1 [02:21:29]Write i2c OK [02:21:29]MH_I2C_Read... [02:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:21:29]Read from MH i2c: E2 [02:21:29]MH_I2C_Read... [02:21:29]Read from MH i2c: E2 0E 00 [02:21:29]MH_I2C_Read... [02:21:29]Read from MH i2c: E2 0E 00 06 1E 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 62 [02:21:29]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:21:29]wFMCommunicate OK [02:21:29]SAM_PROTO_GetShiftState done [02:21:29]FM_GetShiftState done [02:21:29]req_shift_opened done [02:21:29]requested_item shift.open_date is exist - process it [02:21:29]req_shift_open_date [02:21:29]req_shift_open_date done [02:21:29]produce_requested_data done [02:21:29]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57947,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [02:21:29]process_action_free close_receipt [02:21:29]json_value_free [02:21:29]json_value_free done [02:21:29]process_json_proto returns [02:21:29]Send response to host [02:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57947,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [02:21:29]free response buf [02:21:29]execute_script done [02:21:29]execute_script returns [02:21:29]free content buf [02:21:29]Sock 8.Close socket [02:21:29]Sock 8.Thread stoped [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33: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:00]accept exits with 10 [02:34:00]New connection [02:34:00]New thread 3066592612 created [02:34:00]Thread 3066735972 joined [02:34:00]Waiting for new connection... [02:34:00] Sock 10.Parse request [02:34:00]Sock 10.Check first char [02:34:00]Sock 10.First char is OK [02:34:00]request: POST /json_proto HTTP/1.0 [02:34:00]Method: POST [02:34:00]URL: /json_proto [02:34:00]Method is POST - this is cgi request [02:34:00]url: /json_proto [02:34:00]query_string will be loaded in cgi processing [02:34:00]execute_cgi json_proto POST (null) [02:34:00]execute_cgi path=json_proto method=POST [02:34:00]POST find Content-Length [02:34:00]Host: 172.17.60.68:8080 [02:34:00]Content-Length: 800 [02:34:00]Content-Type: application/json [02:34:00] [02:34:00]POST finish read [02:34:00]Found Content-Length = 800 [02:34:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543290", "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.940, "sum" : 330.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 330.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:34:00]execute_script... [02:34:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543290", "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.940, "sum" : 330.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 330.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:34:00]POST & json_proto [02:34:00]process_json_proto [02:34:00]json parsed OK: [02:34:00]protocol is kg_v1.0 [02:34:00]action value=close_receipt [02:34:00]process_action close_receipt [02:34:00]cmd_close_receipt [02:34:00]MH_GetDate [02:34:00]Write to MH i2c: F0 00 00 07 1E 14 [02:34:00]Write i2c OK [02:34:00]MH_I2C_Read... [02:34:00]Read from MH i2c: F0 [02:34:00]MH_I2C_Read... [02:34:00]Read from MH i2c: F0 09 00 [02:34:00]MH_I2C_Read... [02:34:00]Read from MH i2c: F0 09 00 07 1E 00 99 2B 5D 66 8D A7 02 66 40 [02:34:00]GetLastDocTimeStamp 1717381287 [02:34:00]current date 1717382041 [02:34:00]FM_GetShiftState [02:34:00]SAM_PROTO_GetShiftState [02:34:00]wFMCommunicate request_size=4 [02:34:00]MH_SAM_APDU [02:34:00]CAPDU: 80 13 01 00 [02:34:00]Write to MH i2c: E2 08 00 08 1E 80 13 01 00 00 00 00 00 A3 [02:34:00]Write i2c OK [02:34:00]MH_I2C_Read... [02:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:34:00]Read from MH i2c: E2 [02:34:00]MH_I2C_Read... [02:34:00]Read from MH i2c: E2 0E 00 [02:34:00]MH_I2C_Read... [02:34:00]Read from MH i2c: E2 0E 00 08 1E 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 64 [02:34:00]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:34:00]wFMCommunicate OK [02:34:00]SAM_PROTO_GetShiftState done [02:34:00]FM_GetShiftState done [02:34:00]opened in 1717373417 [02:34:00]opened+sec_in_day 1717459817 [02:34:00]quantity*price = 33048 [02:34:00]sum+1 = 33050 [02:34:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 330.49 НСП 1% : 2.92 НДС 12% : 35.10 Наличными: 0.00 Безнал.: 330.49 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 32 03.06.2024 02:34 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57948 ФПД: 195549220610407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T023401&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57948&fm=195549220610407&tin=02508201610067®Number=0000000000151680&sum=33049 [02:34:01]StoreToDocumentArchive [02:34:01]shift 70 fd 57948 [02:34:01]save to /storage/0070/doc_00057948 [02:34:01]save last doc name /storage/0070/doc_00057948 to /storage/kkm_last_doc_name [02:34:01]save OK [02:34:01]Clear old archive folders... [02:34:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:34:01]tlvbuf is 019CEE70 [02:34:01]SAM_PROTO_ClearQueue [02:34:01]wFMCommunicate request_size=4 [02:34:01]MH_SAM_APDU [02:34:01]CAPDU: 80 09 00 00 [02:34:01]Write to MH i2c: E2 08 00 15 1E 80 09 00 00 00 00 00 00 A5 [02:34:01]Write i2c OK [02:34:01]MH_I2C_Read... [02:34:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:34:01]Read from MH i2c: E2 [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: E2 03 00 [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: E2 03 00 15 1E 00 90 00 A7 [02:34:01]RAPDU: 90 00 [02:34:01]wFMCommunicate OK [02:34:01]SAM_PROTO_ClearQueue done [02:34:01]KKMCreateOFDPacket [02:34:01]OFDProtocolAddRootSTLVToBuf [02:34:01]FM_MakeSignedData [02:34:01]FM_MakeSignedData [02:34:01]SAM_PROTO_SignData [02:34:01]wFMCommunicate request_size=4 [02:34:01]MH_SAM_APDU [02:34:01]CAPDU: 80 0D 01 02 [02:34:01]Write to MH i2c: E2 08 00 16 1E 80 0D 01 02 00 00 00 00 AD [02:34:01]Write i2c OK [02:34:01]MH_I2C_Read... [02:34:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:34:01]Read from MH i2c: E2 [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: E2 03 00 [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: E2 03 00 16 1E 00 90 00 A8 [02:34:01]RAPDU: 90 00 [02:34:01]wFMCommunicate OK [02:34:01]wFMCommunicate request_size=255 [02:34:01]MH_SAM_APDU [02:34:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 99 2B 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5C E2 00 00 35 04 06 00 B1 [02:34:01]Write to MH i2c: E2 02 01 17 1E 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 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 99 2B 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5C E2 00 00 35 04 06 00 B1 00 00 E0 [02:34:01]Write i2c OK [02:34:01]MH_I2C_Read... [02:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:34:01]Read from MH i2c: E2 [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: E2 03 00 [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: E2 03 00 17 1E 00 90 00 A9 [02:34:01]RAPDU: 90 00 [02:34:01]wFMCommunicate OK [02:34:01]wFMCommunicate request_size=10 [02:34:01]MH_SAM_APDU [02:34:01]CAPDU: 80 0D 02 02 05 D9 D9 D4 A1 67 [02:34:01]Write to MH i2c: E2 0D 00 18 1E 80 0D 02 02 05 00 D9 D9 D4 A1 67 00 00 48 [02:34:01]Write i2c OK [02:34:01]MH_I2C_Read... [02:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:34:01]Read from MH i2c: E2 [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: E2 03 00 [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: E2 03 00 18 1E 00 90 00 AA [02:34:01]RAPDU: 90 00 [02:34:01]wFMCommunicate OK [02:34:01]wFMCommunicate request_size=4 [02:34:01]MH_SAM_APDU [02:34:01]CAPDU: 80 0D 03 02 [02:34:01]Write to MH i2c: E2 08 00 19 1E 80 0D 03 02 00 00 00 00 B2 [02:34:01]Write i2c OK [02:34:01]MH_I2C_Read... [02:34:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:34:01]Read from MH i2c: E2 [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: E2 0B 00 [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: E2 0B 00 19 1E 00 3F C4 93 03 63 72 B7 D0 90 00 A8 [02:34:01]RAPDU: 3F C4 93 03 63 72 B7 D0 90 00 [02:34:01]wFMCommunicate OK [02:34:01]SAM_PROTO_SignData done [02:34:01]FM_MakeSignedData done [02:34:01]CreateOFDProtocolMessage [02:34:01]wFMCommunicate request_size=4 [02:34:01]MH_SAM_APDU [02:34:01]CAPDU: 80 11 00 00 [02:34:01]Write to MH i2c: E2 08 00 1A 1E 80 11 00 00 00 00 00 00 B2 [02:34:01]Write i2c OK [02:34:01]MH_I2C_Read... [02:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:34:01]Read from MH i2c: E2 [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: E2 17 00 [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: E2 17 00 1A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 05 [02:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:34:01]wFMCommunicate OK [02:34:01]CreateOFDProtocolMessage done [02:34:01]OFDSenderStorePacket 57948 [02:34:01]StoreOFDPacket docnum=57948 [02:34:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 7D 5B 07 01 4A AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 99 2B 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5C E2 00 00 35 04 06 00 B1 D9 D9 D4 A1 67 3F C4 93 03 63 72 B7 D0 [02:34:01]CheckFolder [02:34:01]dirname=/storage/ofd_packets [02:34:01]CheckFolder done [02:34:01]ProducePacketName [02:34:01]name=ofd_packets/00057948 [02:34:01]NVStorageSaveData ofd_packets/00057948 [02:34:01]File name is /storage/ofd_packets/00057948 [02:34:01]Write 301 bytes [02:34:01]NVStorageSaveData done [02:34:01]OFDSenderStorePacket done [02:34:01]KKMCreateOFDPacket done [02:34:01]NVStorageSaveData kkm_last_timestamp [02:34:01]File name is /storage/kkm_last_timestamp [02:34:01]Write 4 bytes [02:34:01]NVStorageSaveData done [02:34:01]ExternCall_PrintAddStr [02:34:01]wPrintStart [02:34:01]Write to MH i2c: 01 00 00 1B 1E 39 [02:34:01]Write i2c OK [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: 01 [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: 01 07 00 [02:34:01]MH_I2C_Read... [02:34:01]Read from MH i2c: 01 07 00 1B 1E 00 00 00 00 00 FF 0F 4E [02:34:01]RasterBufferAndPrint [02:34:01]line Счет N : (1)543290 [02:34:01]line ИНН: 02508201610067 [02:34:01]line Контрольно-Кассовый Чек [02:34:01]line ПРОДАЖА [02:34:01]line ТРК (МРК, ГНК) : 22 [02:34:01]line Товар: 2710124130 [02:34:01]line Аи-92-К-5 [02:34:01]line 4.940 * 66.90 [02:34:01]line = 330.49 [02:34:01]line НДС 12% НСП 1% [02:34:01]line > о реализуемом товаре [02:34:01]line ИТОГО: 330.49 [02:34:01]line НСП 1% : 2.92 [02:34:01]line НДС 12% : 35.10 [02:34:01]line Наличными: 0.00 [02:34:01]line Безнал.: 330.49 [02:34:01]line Место: АЗС № 117 "Партнер Нефть" [02:34:01]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [02:34:01]line СНО: Общий режим [02:34:01]line Чек 32 03.06.2024 02:34 [02:34:01]line Смена: 70 ФФД: 1.0 [02:34:01]line ЗНМ: 0300000048 [02:34:01]line РНМ: 0000000000151680 [02:34:01]line Версия ККМ: v1.0 [02:34:01]line Платежная система: O! деньги [02:34:01]line ФМ: 0000000000959414 [02:34:01]line ФД: 57948 [02:34:01]line ФПД: 195549220610407 [02:34:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T023401&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57948&fm=195549220610407&tin=02508201610067®Number=0000000000151680&sum=33049 [02:34:02]OFD Sender: Processing packet 57948 [packets to send 50, broken 49] [02:34:02]ProducePacketName [02:34:02]name=ofd_packets/00057948 [02:34:02]OFD Sender: To server: pG, [02:34:02]CommunicateWithHost lk.salyk.kg:30040 [02:34:02]ConnectInit lk.salyk.kg [02:34:02]written 0, free lines is 4095 [02:34:02]Connected sock=9 [02:34:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 7D 5B 07 01 4A AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 99 2B 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5C E2 00 00 35 04 06 00 B1 D9 D9 D4 A1 67 3F C4 93 03 63 72 B7 D0 [02:34:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 06 6E 47 00 44 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 39 35 39 34 31 34 10 04 04 00 5C E2 00 00 F4 03 04 00 69 D6 5C 66 B6 04 01 00 00 4F 34 5F 1A 37 B3 1B F7 [02:34:02]CommunicateWithHost err = 0 [02:34:02]CheckOFDResponse [02:34:02]1017 (14) - 77093643461234 [02:34:02]1041 (16) - 0000000000959414 [02:34:02]1040 (4) - 57948 [02:34:02]1012 (4) - 02.06.2024 20:30 [02:34:02]1206 (1) - 0 [02:34:02]OFD Sender: Remove packet 57948 [02:34:02]ProducePacketName [02:34:02]name=ofd_packets/00057948 [02:34:02]NVStorageDeleteData [02:34:02]Write to MH i2c: 01 00 00 45 1E 63 [02:34:02]Write i2c OK [02:34:02]MH_I2C_Read... [02:34:02]Read from MH i2c: 01 [02:34:02]MH_I2C_Read... [02:34:02]Read from MH i2c: 01 07 00 [02:34:02]MH_I2C_Read... [02:34:02]Read from MH i2c: 01 07 00 45 1E 00 00 00 00 00 B8 0C 2E [02:34:02]RasterBufferAndPrint [02:34:02]line [02:34:02]line [02:34:02]line [02:34:02]line [02:34:02]line [02:34:02]written 0, free lines is 3263 [02:34:02]MH_Cut [02:34:02]Write to MH i2c: D1 01 00 4C 1E 01 3C [02:34:02]Write i2c OK [02:34:02]MH_I2C_Read... [02:34:02]Read from MH i2c: D1 [02:34:02]MH_I2C_Read... [02:34:02]Read from MH i2c: D1 01 00 [02:34:02]MH_I2C_Read... [02:34:02]Read from MH i2c: D1 01 00 4C 1E 00 3B [02:34:02]Write to MH i2c: 01 00 00 4D 1E 6B [02:34:02]Write i2c OK [02:34:02]MH_I2C_Read... [02:34:03]OFD Sender: No OFD packet to send [02:34:03]*** Cut start [02:34:03]*** Partial cut [02:34:03]*** CUTSNS_PIN = 1 [02:34:03]*** CUTSNS_PIN = 0 [02:34:03]*** Brake cut motor [02:34:04]Read from MH i2c: 01 [02:34:04]MH_I2C_Read... [02:34:04]*** Stop cut motor [02:34:04]*** Cut end [02:34:04]Read from MH i2c: 01 07 00 [02:34:04]MH_I2C_Read... [02:34:04]Read from MH i2c: 01 07 00 4D 1E 00 00 00 00 00 FF 0F 80 [02:34:04]process_action close_receipt done [02:34:04]requested_data is exist [02:34:04]produce_requested_data [02:34:04]requested_item fm.sn is exist - process it [02:34:04]wFMCommunicate request_size=4 [02:34:04]MH_SAM_APDU [02:34:04]CAPDU: 80 11 00 00 [02:34:04]Write to MH i2c: E2 08 00 4E 1E 80 11 00 00 00 00 00 00 E6 [02:34:04]Write i2c OK [02:34:04]MH_I2C_Read... [02:34:04]Read from MH i2c: E2 [02:34:04]MH_I2C_Read... [02:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:34:04]Read from MH i2c: E2 17 00 [02:34:04]MH_I2C_Read... [02:34:04]Read from MH i2c: E2 17 00 4E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 39 [02:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:34:04]wFMCommunicate OK [02:34:04]requested_item fd.num is exist - process it [02:34:04]SAM_PROTO_GetFieldsCounters [02:34:04]wFMCommunicate request_size=4 [02:34:04]MH_SAM_APDU [02:34:04]CAPDU: 80 13 00 00 [02:34:04]Write to MH i2c: E2 08 00 4F 1E 80 13 00 00 00 00 00 00 E9 [02:34:04]Write i2c OK [02:34:04]MH_I2C_Read... [02:34:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:34:04]Read from MH i2c: E2 [02:34:04]MH_I2C_Read... [02:34:04]Read from MH i2c: E2 62 00 [02:34:04]MH_I2C_Read... [02:34:04]Read from MH i2c: E2 62 00 4F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 5C E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [02:34:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 5C E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:34:04]wFMCommunicate OK [02:34:04]SAM_PROTO_GetFieldsCounters done [02:34:04]requested_item shift.num is exist - process it [02:34:04]requested_item shift.opened is exist - process it [02:34:04]req_shift_opened [02:34:04]FM_GetShiftState [02:34:04]SAM_PROTO_GetShiftState [02:34:04]wFMCommunicate request_size=4 [02:34:04]MH_SAM_APDU [02:34:04]CAPDU: 80 13 01 00 [02:34:04]Write to MH i2c: E2 08 00 50 1E 80 13 01 00 00 00 00 00 EB [02:34:04]Write i2c OK [02:34:04]MH_I2C_Read... [02:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:34:04]Read from MH i2c: E2 [02:34:04]MH_I2C_Read... [02:34:04]Read from MH i2c: E2 0E 00 [02:34:04]MH_I2C_Read... [02:34:04]Read from MH i2c: E2 0E 00 50 1E 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 AC [02:34:04]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:34:04]wFMCommunicate OK [02:34:04]SAM_PROTO_GetShiftState done [02:34:04]FM_GetShiftState done [02:34:04]req_shift_opened done [02:34:04]requested_item shift.open_date is exist - process it [02:34:04]req_shift_open_date [02:34:04]req_shift_open_date done [02:34:04]produce_requested_data done [02:34:04]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57948,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [02:34:04]process_action_free close_receipt [02:34:04]json_value_free [02:34:04]json_value_free done [02:34:04]process_json_proto returns [02:34:04]Send response to host [02:34:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57948,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [02:34:04]free response buf [02:34:04]execute_script done [02:34:04]execute_script returns [02:34:04]free content buf [02:34:04]Sock 10.Close socket [02:34:04]Sock 10.Thread stoped [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:42]accept exits with 8 [02:35:42]New connection [02:35:42]New thread 3066735972 created [02:35:42]Thread 3066592612 joined [02:35:42]Waiting for new connection... [02:35:42] Sock 8.Parse request [02:35:42]Sock 8.Check first char [02:35:42]Sock 8.First char is OK [02:35:42]request: POST /json_proto HTTP/1.0 [02:35:42]Method: POST [02:35:42]URL: /json_proto [02:35:42]Method is POST - this is cgi request [02:35:42]url: /json_proto [02:35:42]query_string will be loaded in cgi processing [02:35:42]execute_cgi json_proto POST (null) [02:35:42]execute_cgi path=json_proto method=POST [02:35:42]POST find Content-Length [02:35:42]Host: 172.17.60.68:8080 [02:35:42]Content-Length: 800 [02:35:42]Content-Type: application/json [02:35:42] [02:35:42]POST finish read [02:35:42]Found Content-Length = 800 [02:35:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543291", "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.90, "quantity" : 7.700, "sum" : 515.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 515.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:35:42]execute_script... [02:35:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543291", "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.90, "quantity" : 7.700, "sum" : 515.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 515.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:35:42]POST & json_proto [02:35:42]process_json_proto [02:35:42]json parsed OK: [02:35:42]protocol is kg_v1.0 [02:35:42]action value=close_receipt [02:35:42]process_action close_receipt [02:35:42]cmd_close_receipt [02:35:42]MH_GetDate [02:35:42]Write to MH i2c: F0 00 00 51 1E 5E [02:35:42]Write i2c OK [02:35:42]MH_I2C_Read... [02:35:42]Read from MH i2c: F0 [02:35:42]MH_I2C_Read... [02:35:42]Read from MH i2c: F0 09 00 [02:35:42]MH_I2C_Read... [02:35:42]Read from MH i2c: F0 09 00 51 1E 00 00 2C 5D 66 8D A7 02 66 F2 [02:35:42]GetLastDocTimeStamp 1717382041 [02:35:42]current date 1717382144 [02:35:42]FM_GetShiftState [02:35:42]SAM_PROTO_GetShiftState [02:35:42]wFMCommunicate request_size=4 [02:35:42]MH_SAM_APDU [02:35:42]CAPDU: 80 13 01 00 [02:35:42]Write to MH i2c: E2 08 00 52 1E 80 13 01 00 00 00 00 00 ED [02:35:42]Write i2c OK [02:35:42]MH_I2C_Read... [02:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:35:42]Read from MH i2c: E2 [02:35:42]MH_I2C_Read... [02:35:42]Read from MH i2c: E2 0E 00 [02:35:42]MH_I2C_Read... [02:35:42]Read from MH i2c: E2 0E 00 52 1E 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 AE [02:35:42]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:35:42]wFMCommunicate OK [02:35:42]SAM_PROTO_GetShiftState done [02:35:42]FM_GetShiftState done [02:35:42]opened in 1717373417 [02:35:42]opened+sec_in_day 1717459817 [02:35:42]quantity*price = 51513 [02:35:42]sum+1 = 51514 [02:35:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 515.13 НСП 1% : 4.56 НДС 12% : 54.70 Наличными: 0.00 Безнал.: 515.13 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 33 03.06.2024 02:35 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57949 ФПД: 236747472536695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T023544&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57949&fm=236747472536695&tin=02508201610067®Number=0000000000151680&sum=51513 [02:35:44]StoreToDocumentArchive [02:35:44]shift 70 fd 57949 [02:35:44]save to /storage/0070/doc_00057949 [02:35:44]save last doc name /storage/0070/doc_00057949 to /storage/kkm_last_doc_name [02:35:44]save OK [02:35:44]Clear old archive folders... [02:35:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:35:44]tlvbuf is 01B19710 [02:35:44]SAM_PROTO_ClearQueue [02:35:44]wFMCommunicate request_size=4 [02:35:44]MH_SAM_APDU [02:35:44]CAPDU: 80 09 00 00 [02:35:44]Write to MH i2c: E2 08 00 5F 1E 80 09 00 00 00 00 00 00 EF [02:35:44]Write i2c OK [02:35:44]MH_I2C_Read... [02:35:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:35:44]Read from MH i2c: E2 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: E2 03 00 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: E2 03 00 5F 1E 00 90 00 F1 [02:35:44]RAPDU: 90 00 [02:35:44]wFMCommunicate OK [02:35:44]SAM_PROTO_ClearQueue done [02:35:44]KKMCreateOFDPacket [02:35:44]OFDProtocolAddRootSTLVToBuf [02:35:44]FM_MakeSignedData [02:35:44]FM_MakeSignedData [02:35:44]SAM_PROTO_SignData [02:35:44]wFMCommunicate request_size=4 [02:35:44]MH_SAM_APDU [02:35:44]CAPDU: 80 0D 01 02 [02:35:44]Write to MH i2c: E2 08 00 60 1E 80 0D 01 02 00 00 00 00 F7 [02:35:44]Write i2c OK [02:35:44]MH_I2C_Read... [02:35:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:35:44]Read from MH i2c: E2 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: E2 03 00 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: E2 03 00 60 1E 00 90 00 F2 [02:35:44]RAPDU: 90 00 [02:35:44]wFMCommunicate OK [02:35:44]wFMCommunicate request_size=255 [02:35:44]MH_SAM_APDU [02:35:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 00 2C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5D E2 00 00 35 04 06 00 D7 [02:35:44]Write to MH i2c: E2 02 01 61 1E 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 14 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 00 2C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5D E2 00 00 35 04 06 00 D7 00 00 19 [02:35:44]Write i2c OK [02:35:44]MH_I2C_Read... [02:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:35:44]Read from MH i2c: E2 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: E2 03 00 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: E2 03 00 61 1E 00 90 00 F3 [02:35:44]RAPDU: 90 00 [02:35:44]wFMCommunicate OK [02:35:44]wFMCommunicate request_size=10 [02:35:44]MH_SAM_APDU [02:35:44]CAPDU: 80 0D 02 02 05 52 11 00 84 77 [02:35:44]Write to MH i2c: E2 0D 00 62 1E 80 0D 02 02 05 00 52 11 00 84 77 00 00 62 [02:35:44]Write i2c OK [02:35:44]MH_I2C_Read... [02:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:35:44]Read from MH i2c: E2 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: E2 03 00 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: E2 03 00 62 1E 00 90 00 F4 [02:35:44]RAPDU: 90 00 [02:35:44]wFMCommunicate OK [02:35:44]wFMCommunicate request_size=4 [02:35:44]MH_SAM_APDU [02:35:44]CAPDU: 80 0D 03 02 [02:35:44]Write to MH i2c: E2 08 00 63 1E 80 0D 03 02 00 00 00 00 FC [02:35:44]Write i2c OK [02:35:44]MH_I2C_Read... [02:35:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:35:44]Read from MH i2c: E2 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: E2 0B 00 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: E2 0B 00 63 1E 00 6A C7 4E 4B 3E 42 DD C7 90 00 EB [02:35:44]RAPDU: 6A C7 4E 4B 3E 42 DD C7 90 00 [02:35:44]wFMCommunicate OK [02:35:44]SAM_PROTO_SignData done [02:35:44]FM_MakeSignedData done [02:35:44]CreateOFDProtocolMessage [02:35:44]wFMCommunicate request_size=4 [02:35:44]MH_SAM_APDU [02:35:44]CAPDU: 80 11 00 00 [02:35:44]Write to MH i2c: E2 08 00 64 1E 80 11 00 00 00 00 00 00 FC [02:35:44]Write i2c OK [02:35:44]MH_I2C_Read... [02:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:35:44]Read from MH i2c: E2 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: E2 17 00 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: E2 17 00 64 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 4F [02:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:35:44]wFMCommunicate OK [02:35:44]CreateOFDProtocolMessage done [02:35:44]OFDSenderStorePacket 57949 [02:35:44]StoreOFDPacket docnum=57949 [02:35:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 34 0A 07 01 D7 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 00 2C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5D E2 00 00 35 04 06 00 D7 52 11 00 84 77 6A C7 4E 4B 3E 42 DD C7 [02:35:44]CheckFolder [02:35:44]dirname=/storage/ofd_packets [02:35:44]CheckFolder done [02:35:44]ProducePacketName [02:35:44]name=ofd_packets/00057949 [02:35:44]NVStorageSaveData ofd_packets/00057949 [02:35:44]File name is /storage/ofd_packets/00057949 [02:35:44]Write 301 bytes [02:35:44]NVStorageSaveData done [02:35:44]OFDSenderStorePacket done [02:35:44]KKMCreateOFDPacket done [02:35:44]NVStorageSaveData kkm_last_timestamp [02:35:44]File name is /storage/kkm_last_timestamp [02:35:44]Write 4 bytes [02:35:44]NVStorageSaveData done [02:35:44]ExternCall_PrintAddStr [02:35:44]wPrintStart [02:35:44]Write to MH i2c: 01 00 00 65 1E 83 [02:35:44]Write i2c OK [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: 01 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: 01 07 00 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: 01 07 00 65 1E 00 00 00 00 00 FF 0F 98 [02:35:44]RasterBufferAndPrint [02:35:44]line Счет N : (1)543291 [02:35:44]line ИНН: 02508201610067 [02:35:44]line Контрольно-Кассовый Чек [02:35:44]line ПРОДАЖА [02:35:44]line ТРК (МРК, ГНК) : 12 [02:35:44]line Товар: 2710124130 [02:35:44]line Аи-92-К-5 [02:35:44]line 7.700 * 66.90 [02:35:44]line = 515.13 [02:35:44]line НДС 12% НСП 1% [02:35:44]line > о реализуемом товаре [02:35:44]line ИТОГО: 515.13 [02:35:44]line НСП 1% : 4.56 [02:35:44]line НДС 12% : 54.70 [02:35:44]line Наличными: 0.00 [02:35:44]line Безнал.: 515.13 [02:35:44]line Место: АЗС № 117 "Партнер Нефть" [02:35:44]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [02:35:44]line СНО: Общий режим [02:35:44]line Чек 33 03.06.2024 02:35 [02:35:44]line Смена: 70 ФФД: 1.0 [02:35:44]line ЗНМ: 0300000048 [02:35:44]line РНМ: 0000000000151680 [02:35:44]line Версия ККМ: v1.0 [02:35:44]line Платежная система: O! деньги [02:35:44]line ФМ: 0000000000959414 [02:35:44]line ФД: 57949 [02:35:44]line ФПД: 236747472536695 [02:35:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T023544&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57949&fm=236747472536695&tin=02508201610067®Number=0000000000151680&sum=51513 [02:35:44]OFD Sender: Processing packet 57949 [packets to send 50, broken 49] [02:35:44]ProducePacketName [02:35:44]name=ofd_packets/00057949 [02:35:44]OFD Sender: To server: pG, [02:35:44]CommunicateWithHost lk.salyk.kg:30040 [02:35:44]ConnectInit lk.salyk.kg [02:35:44]written 0, free lines is 4095 [02:35:45]Connected sock=9 [02:35:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 34 0A 07 01 D7 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 00 2C 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5D E2 00 00 35 04 06 00 D7 52 11 00 84 77 6A C7 4E 4B 3E 42 DD C7 [02:35:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 7A B1 47 00 E4 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5D E2 00 00 F4 03 04 00 CF D6 5C 66 B6 04 01 00 00 D7 83 6B 8B BC A6 56 43 [02:35:45]CommunicateWithHost err = 0 [02:35:45]CheckOFDResponse [02:35:45]1017 (14) - 77093643461234 [02:35:45]1041 (16) - 0000000000959414 [02:35:45]1040 (4) - 57949 [02:35:45]1012 (4) - 02.06.2024 20:32 [02:35:45]1206 (1) - 0 [02:35:45]OFD Sender: Remove packet 57949 [02:35:45]ProducePacketName [02:35:45]name=ofd_packets/00057949 [02:35:45]NVStorageDeleteData [02:35:45]Write to MH i2c: 01 00 00 8F 1E AD [02:35:45]Write i2c OK [02:35:45]MH_I2C_Read... [02:35:45]Read from MH i2c: 01 [02:35:45]MH_I2C_Read... [02:35:45]Read from MH i2c: 01 07 00 [02:35:45]MH_I2C_Read... [02:35:45]Read from MH i2c: 01 07 00 8F 1E 00 00 00 00 00 B6 0C 76 [02:35:45]RasterBufferAndPrint [02:35:45]line [02:35:45]line [02:35:45]line [02:35:45]line [02:35:45]line [02:35:45]written 0, free lines is 3259 [02:35:45]MH_Cut [02:35:45]Write to MH i2c: D1 01 00 96 1E 01 86 [02:35:45]Write i2c OK [02:35:45]MH_I2C_Read... [02:35:45]Read from MH i2c: D1 [02:35:45]MH_I2C_Read... [02:35:45]Read from MH i2c: D1 01 00 [02:35:45]MH_I2C_Read... [02:35:45]Read from MH i2c: D1 01 00 96 1E 00 85 [02:35:45]Write to MH i2c: 01 00 00 97 1E B5 [02:35:45]Write i2c OK [02:35:45]MH_I2C_Read... [02:35:45]OFD Sender: No OFD packet to send [02:35:46]*** Cut start [02:35:46]*** Partial cut [02:35:46]*** CUTSNS_PIN = 1 [02:35:46]*** CUTSNS_PIN = 0 [02:35:46]*** Brake cut motor [02:35:46]Read from MH i2c: 01 [02:35:46]MH_I2C_Read... [02:35:46]*** Stop cut motor [02:35:46]*** Cut end [02:35:46]Read from MH i2c: 01 07 00 [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: 01 07 00 97 1E 00 00 00 00 00 FF 0F CA [02:35:46]process_action close_receipt done [02:35:46]requested_data is exist [02:35:46]produce_requested_data [02:35:46]requested_item fm.sn is exist - process it [02:35:46]wFMCommunicate request_size=4 [02:35:46]MH_SAM_APDU [02:35:46]CAPDU: 80 11 00 00 [02:35:46]Write to MH i2c: E2 08 00 98 1E 80 11 00 00 00 00 00 00 30 [02:35:46]Write i2c OK [02:35:46]MH_I2C_Read... [02:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:35:46]Read from MH i2c: E2 [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: E2 17 00 [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: E2 17 00 98 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 83 [02:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:35:46]wFMCommunicate OK [02:35:46]requested_item fd.num is exist - process it [02:35:46]SAM_PROTO_GetFieldsCounters [02:35:46]wFMCommunicate request_size=4 [02:35:46]MH_SAM_APDU [02:35:46]CAPDU: 80 13 00 00 [02:35:46]Write to MH i2c: E2 08 00 99 1E 80 13 00 00 00 00 00 00 33 [02:35:46]Write i2c OK [02:35:46]MH_I2C_Read... [02:35:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:35:47]Read from MH i2c: E2 [02:35:47]MH_I2C_Read... [02:35:47]Read from MH i2c: E2 62 00 [02:35:47]MH_I2C_Read... [02:35:47]Read from MH i2c: E2 62 00 99 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 5D E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [02:35:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 5D E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:35:47]wFMCommunicate OK [02:35:47]SAM_PROTO_GetFieldsCounters done [02:35:47]requested_item shift.num is exist - process it [02:35:47]requested_item shift.opened is exist - process it [02:35:47]req_shift_opened [02:35:47]FM_GetShiftState [02:35:47]SAM_PROTO_GetShiftState [02:35:47]wFMCommunicate request_size=4 [02:35:47]MH_SAM_APDU [02:35:47]CAPDU: 80 13 01 00 [02:35:47]Write to MH i2c: E2 08 00 9A 1E 80 13 01 00 00 00 00 00 35 [02:35:47]Write i2c OK [02:35:47]MH_I2C_Read... [02:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:35:47]Read from MH i2c: E2 [02:35:47]MH_I2C_Read... [02:35:47]Read from MH i2c: E2 0E 00 [02:35:47]MH_I2C_Read... [02:35:47]Read from MH i2c: E2 0E 00 9A 1E 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 F6 [02:35:47]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:35:47]wFMCommunicate OK [02:35:47]SAM_PROTO_GetShiftState done [02:35:47]FM_GetShiftState done [02:35:47]req_shift_opened done [02:35:47]requested_item shift.open_date is exist - process it [02:35:47]req_shift_open_date [02:35:47]req_shift_open_date done [02:35:47]produce_requested_data done [02:35:47]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57949,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [02:35:47]process_action_free close_receipt [02:35:47]json_value_free [02:35:47]json_value_free done [02:35:47]process_json_proto returns [02:35:47]Send response to host [02:35:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57949,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [02:35:47]free response buf [02:35:47]execute_script done [02:35:47]execute_script returns [02:35:47]free content buf [02:35:47]Sock 8.Close socket [02:35:47]Sock 8.Thread stoped [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:43]accept exits with 10 [02:53:43]New connection [02:53:43]New thread 3066592612 created [02:53:43]Thread 3066735972 joined [02:53:43]Waiting for new connection... [02:53:43] Sock 10.Parse request [02:53:43]Sock 10.Check first char [02:53:43]Sock 10.First char is OK [02:53:43]request: POST /json_proto HTTP/1.0 [02:53:43]Method: POST [02:53:43]URL: /json_proto [02:53:43]Method is POST - this is cgi request [02:53:43]url: /json_proto [02:53:43]query_string will be loaded in cgi processing [02:53:43]execute_cgi json_proto POST (null) [02:53:43]execute_cgi path=json_proto method=POST [02:53:43]POST find Content-Length [02:53:43]Host: 172.17.60.68:8080 [02:53:43]Content-Length: 800 [02:53:43]Content-Type: application/json [02:53:43] [02:53:43]POST finish read [02:53:43]Found Content-Length = 800 [02:53:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.930, "sum" : 196.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 196.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:53:43]execute_script... [02:53:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.930, "sum" : 196.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 196.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:53:43]POST & json_proto [02:53:43]process_json_proto [02:53:43]json parsed OK: [02:53:43]protocol is kg_v1.0 [02:53:43]action value=close_receipt [02:53:43]process_action close_receipt [02:53:43]cmd_close_receipt [02:53:43]MH_GetDate [02:53:43]Write to MH i2c: F0 00 00 9B 1E A8 [02:53:43]Write i2c OK [02:53:43]MH_I2C_Read... [02:53:43]Read from MH i2c: F0 [02:53:43]MH_I2C_Read... [02:53:43]Read from MH i2c: F0 09 00 [02:53:43]MH_I2C_Read... [02:53:43]Read from MH i2c: F0 09 00 9B 1E 00 38 30 5D 66 8D A7 02 66 78 [02:53:43]GetLastDocTimeStamp 1717382144 [02:53:43]current date 1717383224 [02:53:43]FM_GetShiftState [02:53:43]SAM_PROTO_GetShiftState [02:53:43]wFMCommunicate request_size=4 [02:53:43]MH_SAM_APDU [02:53:43]CAPDU: 80 13 01 00 [02:53:43]Write to MH i2c: E2 08 00 9C 1E 80 13 01 00 00 00 00 00 37 [02:53:43]Write i2c OK [02:53:43]MH_I2C_Read... [02:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:53:43]Read from MH i2c: E2 [02:53:43]MH_I2C_Read... [02:53:43]Read from MH i2c: E2 0E 00 [02:53:43]MH_I2C_Read... [02:53:43]Read from MH i2c: E2 0E 00 9C 1E 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 F8 [02:53:43]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:53:43]wFMCommunicate OK [02:53:43]SAM_PROTO_GetShiftState done [02:53:43]FM_GetShiftState done [02:53:43]opened in 1717373417 [02:53:43]opened+sec_in_day 1717459817 [02:53:43]quantity*price = 19601 [02:53:43]sum+1 = 19603 [02:53:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 196.02 НСП 1% : 1.73 НДС 12% : 20.82 Наличными: 0.00 Безнал.: 196.02 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 СНО: Общий режим Чек 34 03.06.2024 02:53 Смена: 70 ФФД: 1.0 ЗНМ: 0300000048 РНМ: 0000000000151680 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959414 ФД: 57950 ФПД: 252324067434886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T025344&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57950&fm=252324067434886&tin=02508201610067®Number=0000000000151680&sum=19602 [02:53:44]StoreToDocumentArchive [02:53:44]shift 70 fd 57950 [02:53:44]save to /storage/0070/doc_00057950 [02:53:44]save last doc name /storage/0070/doc_00057950 to /storage/kkm_last_doc_name [02:53:44]save OK [02:53:44]Clear old archive folders... [02:53:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:53:44]tlvbuf is 01B19020 [02:53:44]SAM_PROTO_ClearQueue [02:53:44]wFMCommunicate request_size=4 [02:53:44]MH_SAM_APDU [02:53:44]CAPDU: 80 09 00 00 [02:53:44]Write to MH i2c: E2 08 00 A9 1E 80 09 00 00 00 00 00 00 39 [02:53:44]Write i2c OK [02:53:44]MH_I2C_Read... [02:53:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:53:44]Read from MH i2c: E2 [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: E2 03 00 [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: E2 03 00 A9 1E 00 90 00 3B [02:53:44]RAPDU: 90 00 [02:53:44]wFMCommunicate OK [02:53:44]SAM_PROTO_ClearQueue done [02:53:44]KKMCreateOFDPacket [02:53:44]OFDProtocolAddRootSTLVToBuf [02:53:44]FM_MakeSignedData [02:53:44]FM_MakeSignedData [02:53:44]SAM_PROTO_SignData [02:53:44]wFMCommunicate request_size=4 [02:53:44]MH_SAM_APDU [02:53:44]CAPDU: 80 0D 01 02 [02:53:44]Write to MH i2c: E2 08 00 AA 1E 80 0D 01 02 00 00 00 00 41 [02:53:44]Write i2c OK [02:53:44]MH_I2C_Read... [02:53:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:53:44]Read from MH i2c: E2 [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: E2 03 00 [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: E2 03 00 AA 1E 00 90 00 3C [02:53:44]RAPDU: 90 00 [02:53:44]wFMCommunicate OK [02:53:44]wFMCommunicate request_size=255 [02:53:44]MH_SAM_APDU [02:53:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 38 30 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5E E2 00 00 35 04 06 00 E5 [02:53:44]Write to MH i2c: E2 02 01 AB 1E 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 72 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 38 30 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5E E2 00 00 35 04 06 00 E5 00 00 29 [02:53:44]Write i2c OK [02:53:44]MH_I2C_Read... [02:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:53:44]Read from MH i2c: E2 [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: E2 03 00 [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: E2 03 00 AB 1E 00 90 00 3D [02:53:44]RAPDU: 90 00 [02:53:44]wFMCommunicate OK [02:53:44]wFMCommunicate request_size=10 [02:53:44]MH_SAM_APDU [02:53:44]CAPDU: 80 0D 02 02 05 7C C6 68 61 86 [02:53:44]Write to MH i2c: E2 0D 00 AC 1E 80 0D 02 02 05 00 7C C6 68 61 86 00 00 DF [02:53:44]Write i2c OK [02:53:44]MH_I2C_Read... [02:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:53:44]Read from MH i2c: E2 [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: E2 03 00 [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: E2 03 00 AC 1E 00 90 00 3E [02:53:44]RAPDU: 90 00 [02:53:44]wFMCommunicate OK [02:53:44]wFMCommunicate request_size=4 [02:53:44]MH_SAM_APDU [02:53:44]CAPDU: 80 0D 03 02 [02:53:44]Write to MH i2c: E2 08 00 AD 1E 80 0D 03 02 00 00 00 00 46 [02:53:44]Write i2c OK [02:53:44]MH_I2C_Read... [02:53:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:53:44]Read from MH i2c: E2 [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: E2 0B 00 [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: E2 0B 00 AD 1E 00 04 95 F7 18 AC E1 27 7B 90 00 1E [02:53:44]RAPDU: 04 95 F7 18 AC E1 27 7B 90 00 [02:53:44]wFMCommunicate OK [02:53:44]SAM_PROTO_SignData done [02:53:44]FM_MakeSignedData done [02:53:44]CreateOFDProtocolMessage [02:53:44]wFMCommunicate request_size=4 [02:53:44]MH_SAM_APDU [02:53:44]CAPDU: 80 11 00 00 [02:53:44]Write to MH i2c: E2 08 00 AE 1E 80 11 00 00 00 00 00 00 46 [02:53:44]Write i2c OK [02:53:44]MH_I2C_Read... [02:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:53:44]Read from MH i2c: E2 [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: E2 17 00 [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: E2 17 00 AE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 99 [02:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:53:44]wFMCommunicate OK [02:53:44]CreateOFDProtocolMessage done [02:53:44]OFDSenderStorePacket 57950 [02:53:44]StoreOFDPacket docnum=57950 [02:53:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 DD 0B 07 01 0C 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 72 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 38 30 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5E E2 00 00 35 04 06 00 E5 7C C6 68 61 86 04 95 F7 18 AC E1 27 7B [02:53:44]CheckFolder [02:53:44]dirname=/storage/ofd_packets [02:53:44]CheckFolder done [02:53:44]ProducePacketName [02:53:44]name=ofd_packets/00057950 [02:53:44]NVStorageSaveData ofd_packets/00057950 [02:53:44]File name is /storage/ofd_packets/00057950 [02:53:44]Write 301 bytes [02:53:44]NVStorageSaveData done [02:53:44]OFDSenderStorePacket done [02:53:44]KKMCreateOFDPacket done [02:53:44]NVStorageSaveData kkm_last_timestamp [02:53:44]File name is /storage/kkm_last_timestamp [02:53:44]Write 4 bytes [02:53:44]NVStorageSaveData done [02:53:44]ExternCall_PrintAddStr [02:53:44]wPrintStart [02:53:44]Write to MH i2c: 01 00 00 AF 1E CD [02:53:44]Write i2c OK [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: 01 [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: 01 07 00 [02:53:44]MH_I2C_Read... [02:53:44]Read from MH i2c: 01 07 00 AF 1E 00 00 00 00 00 FF 0F E2 [02:53:44]RasterBufferAndPrint [02:53:44]line Счет N : (1)543292 [02:53:44]line ИНН: 02508201610067 [02:53:44]line Контрольно-Кассовый Чек [02:53:44]line ПРОДАЖА [02:53:44]line ТРК (МРК, ГНК) : 32 [02:53:44]line Товар: 2710124130 [02:53:44]line Аи-92-К-5 [02:53:44]line 2.930 * 66.90 [02:53:44]line = 196.02 [02:53:44]line НДС 12% НСП 1% [02:53:44]line > о реализуемом товаре [02:53:44]line ИТОГО: 196.02 [02:53:44]line НСП 1% : 1.73 [02:53:44]line НДС 12% : 20.82 [02:53:44]line Наличными: 0.00 [02:53:44]line Безнал.: 196.02 [02:53:44]line Место: АЗС № 117 "Партнер Нефть" [02:53:44]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1, 42.500140, 78.386597 [02:53:44]line СНО: Общий режим [02:53:44]line Чек 34 03.06.2024 02:53 [02:53:44]line Смена: 70 ФФД: 1.0 [02:53:44]line ЗНМ: 0300000048 [02:53:44]line РНМ: 0000000000151680 [02:53:44]line Версия ККМ: v1.0 [02:53:44]line Платежная система: O! деньги [02:53:44]line ФМ: 0000000000959414 [02:53:44]line ФД: 57950 [02:53:44]line ФПД: 252324067434886 [02:53:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T025344&type=1&operation_type=1&fn_number=0000000000959414&fd_number=57950&fm=252324067434886&tin=02508201610067®Number=0000000000151680&sum=19602 [02:53:45]OFD Sender: Processing packet 57950 [packets to send 50, broken 49] [02:53:45]ProducePacketName [02:53:45]name=ofd_packets/00057950 [02:53:45]OFD Sender: To server: pG, [02:53:45]CommunicateWithHost lk.salyk.kg:30040 [02:53:45]ConnectInit lk.salyk.kg [02:53:45]written 0, free lines is 4095 [02:53:45]Connected sock=9 [02:53:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0F 01 00 00 DD 0B 07 01 0C 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 72 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 38 30 5D 66 0E 04 04 00 46 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5E E2 00 00 35 04 06 00 E5 7C C6 68 61 86 04 95 F7 18 AC E1 27 7B [02:53:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 4F 00 00 00 CA B6 47 00 4D 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 10 04 04 00 5E E2 00 00 F4 03 04 00 08 DB 5C 66 B6 04 01 00 00 89 00 3E D7 5F CB FA 5B [02:53:45]CommunicateWithHost err = 0 [02:53:45]CheckOFDResponse [02:53:45]1017 (14) - 77093643461234 [02:53:45]1041 (16) - 0000000000959414 [02:53:45]1040 (4) - 57950 [02:53:45]1012 (4) - 02.06.2024 20:50 [02:53:45]1206 (1) - 0 [02:53:45]OFD Sender: Remove packet 57950 [02:53:45]ProducePacketName [02:53:45]name=ofd_packets/00057950 [02:53:45]NVStorageDeleteData [02:53:45]Write to MH i2c: 01 00 00 D9 1E F7 [02:53:45]Write i2c OK [02:53:45]MH_I2C_Read... [02:53:45]Read from MH i2c: 01 [02:53:45]MH_I2C_Read... [02:53:45]Read from MH i2c: 01 07 00 [02:53:45]MH_I2C_Read... [02:53:45]Read from MH i2c: 01 07 00 D9 1E 00 00 00 00 00 C6 0C D0 [02:53:45]RasterBufferAndPrint [02:53:45]line [02:53:45]line [02:53:45]line [02:53:45]line [02:53:45]line [02:53:45]written 0, free lines is 3276 [02:53:45]MH_Cut [02:53:45]Write to MH i2c: D1 01 00 E0 1E 01 D0 [02:53:45]Write i2c OK [02:53:45]MH_I2C_Read... [02:53:45]Read from MH i2c: D1 [02:53:45]MH_I2C_Read... [02:53:45]Read from MH i2c: D1 01 00 [02:53:45]MH_I2C_Read... [02:53:45]Read from MH i2c: D1 01 00 E0 1E 00 CF [02:53:45]Write to MH i2c: 01 00 00 E1 1E FF [02:53:45]Write i2c OK [02:53:45]MH_I2C_Read... [02:53:46]OFD Sender: No OFD packet to send [02:53:46]*** Cut start [02:53:46]*** Partial cut [02:53:46]*** CUTSNS_PIN = 1 [02:53:46]*** CUTSNS_PIN = 0 [02:53:46]*** Brake cut motor [02:53:47]Read from MH i2c: 01 [02:53:47]MH_I2C_Read... [02:53:47]*** Stop cut motor [02:53:47]*** Cut end [02:53:47]Read from MH i2c: 01 07 00 [02:53:47]MH_I2C_Read... [02:53:47]Read from MH i2c: 01 07 00 E1 1E 00 00 00 00 00 FF 0F 14 [02:53:47]process_action close_receipt done [02:53:47]requested_data is exist [02:53:47]produce_requested_data [02:53:47]requested_item fm.sn is exist - process it [02:53:47]wFMCommunicate request_size=4 [02:53:47]MH_SAM_APDU [02:53:47]CAPDU: 80 11 00 00 [02:53:47]Write to MH i2c: E2 08 00 E2 1E 80 11 00 00 00 00 00 00 7A [02:53:47]Write i2c OK [02:53:47]MH_I2C_Read... [02:53:47]Read from MH i2c: E2 [02:53:47]MH_I2C_Read... [02:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:53:47]Read from MH i2c: E2 17 00 [02:53:47]MH_I2C_Read... [02:53:47]Read from MH i2c: E2 17 00 E2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 CD [02:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 90 00 [02:53:47]wFMCommunicate OK [02:53:47]requested_item fd.num is exist - process it [02:53:47]SAM_PROTO_GetFieldsCounters [02:53:47]wFMCommunicate request_size=4 [02:53:47]MH_SAM_APDU [02:53:47]CAPDU: 80 13 00 00 [02:53:47]Write to MH i2c: E2 08 00 E3 1E 80 13 00 00 00 00 00 00 7D [02:53:47]Write i2c OK [02:53:47]MH_I2C_Read... [02:53:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:53:47]Read from MH i2c: E2 [02:53:47]MH_I2C_Read... [02:53:47]Read from MH i2c: E2 62 00 [02:53:47]MH_I2C_Read... [02:53:47]Read from MH i2c: E2 62 00 E3 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 5E E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [02:53:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 31 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 31 36 38 30 10 04 04 00 5E E2 00 00 0E 04 04 00 46 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:53:47]wFMCommunicate OK [02:53:47]SAM_PROTO_GetFieldsCounters done [02:53:47]requested_item shift.num is exist - process it [02:53:47]requested_item shift.opened is exist - process it [02:53:47]req_shift_opened [02:53:47]FM_GetShiftState [02:53:47]SAM_PROTO_GetShiftState [02:53:47]wFMCommunicate request_size=4 [02:53:47]MH_SAM_APDU [02:53:47]CAPDU: 80 13 01 00 [02:53:47]Write to MH i2c: E2 08 00 E4 1E 80 13 01 00 00 00 00 00 7F [02:53:47]Write i2c OK [02:53:47]MH_I2C_Read... [02:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:53:47]Read from MH i2c: E2 [02:53:47]MH_I2C_Read... [02:53:47]Read from MH i2c: E2 0E 00 [02:53:47]MH_I2C_Read... [02:53:47]Read from MH i2c: E2 0E 00 E4 1E 00 09 00 01 E9 09 5D 66 00 00 00 00 90 00 40 [02:53:47]RAPDU: 09 00 01 E9 09 5D 66 00 00 00 00 90 00 [02:53:47]wFMCommunicate OK [02:53:47]SAM_PROTO_GetShiftState done [02:53:47]FM_GetShiftState done [02:53:47]req_shift_opened done [02:53:47]requested_item shift.open_date is exist - process it [02:53:47]req_shift_open_date [02:53:47]req_shift_open_date done [02:53:47]produce_requested_data done [02:53:47]produce_requested_data return {"fm.sn":"0000000000959414","fd.num":57950,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417} [02:53:47]process_action_free close_receipt [02:53:47]json_value_free [02:53:47]json_value_free done [02:53:47]process_json_proto returns [02:53:47]Send response to host [02:53:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959414","fd.num":57950,"shift.num":70,"shift.opened":1,"shift.open_date":1717373417}}} [02:53:47]free response buf [02:53:47]execute_script done [02:53:47]execute_script returns [02:53:47]free content buf [02:53:47]Sock 10.Close socket [02:53:47]Sock 10.Thread stoped [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